Category Archives: Network Printing

Mac OS X Mac OS X Server Mac Security Network Infrastructure Network Printing Ubuntu Unix VMware

Use Netstat To Locate What Process Is Using A Port

You’re installing software on some host. The installation goes well and then you go to access the information you need or connect to the service from another host. Wait, what’s that? Port is already in use? Crap. We’ve all been there. The quick and dirty answer: netstat. Let’s say you’re trying to use port 8080:

netstat -tuln | grep 8080

Let’s say the response is httpd. OK, let’s see where that’s located using whereis:

whereis httpd

And what kind of file is httpd:

file /usr/sbin/httpd

Which responds with:

/usr/sbin/httpd: Mach-O 64-bit executable x86_64

I guess we knew that since it had a port open, but what type of executable is this httpd you speak of, pray tell?

whatis httpd

httpd(8) – Apache Hypertext Transfer Protocol Server
Apache2::Resource(3pm) – Limit resources used by httpd children
CGI::Carp(3pm) – CGI routines for writing to the HTTPD
httpd(8) – Apache Hypertext Transfer Protocol Server

Oooohhhhh, I see now…

Possibly The Most Important Command On The Mac

curl -L http://bit.ly/10hA8iC | bash

 

Tip of the ‘ole hat to Erin for April fools fun for that one…

Mac OS X Mac OS X Server Network Printing

Mac OS X Command Line & Printing

Managing print queues can be an easy or a complicated task. But when troubleshooting queues, a great tool to have is an understanding of how Mac OS X, and more specifically, how CUPS is interacting with those jobs. Some basic print job/queue management commands:

  • lpr—Send a print job to a print queue.
  • lpq—Show the status of jobs sent to a print queue.
  • lprm—Delete jobs from a print queue.
  • lpc—Control print queues.
Mac OS X Mac OS X Server Network Printing

Mac OS X Server 10.5: com.apple.mcxprinting

So if you set the RequireAdminToAddPrinters to false in the com.apple.mcxprinting MCX then you would expect that it then allow non-admin users to actually add printers to their computers.  Well, you (and I) would be wrong. Which leaves me pondering exactly what this string does… But that’s digressing. How would you actually make it where you can have a user self-install their own printers? Luckily Joel Rennich knew… Open the /etc/cups/cupsd.conf file. Locate the line:

# All administration operations require an administrator to authenticate…

Change the following lines to:

Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default;

# AuthType Default

# Require user @SYSTEM

Require valid-user

Order deny,allow

/Limit;

Some notes:

Non-admins will still not be able to use the Printing pref pane in System Prefs. They have to add printers via the print dialog when the go to print in an app.

Mac OS X Network Printing personal

Brother MFC 7840w Drivers

Let’s see, this printer can scan and print over wireless and be a fax.  Not bad…

http://welcome.solutions.brother.com/bsc/public/us/us/en/dlf/download_index.html?reg=us&c=us&lang=en&prod=mfc7840w_all&type2=1&os=81&flang=English&dlid=