Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Shell script to delete all printers Printers
The following shell script will delete all printers. Make sure the file is executable after you create it (chmod ugo+x /path/to/delPrinters.sh).


#!/bin/sh

for printer in `lpstat -p | awk '{print $2}'`
do
echo Deleting $printer
lpadmin -x $printer
done
  Post a comment  •  Comments (3)  
  • Currently 2.57 / 5
  You rated: 4 / 5 (7 votes cast)
 
[7,656 views]  View Printable Version
Installing Epson Drivers in 10.7 Printers
Epson requires the user to download drivers for their printers from Apple. Often, Apple Software Update will report the drivers are not available at this time and send the user to Epson. Finding current drivers is difficult and registering the printer to the newly installed drivers requires one simple step...not covered in any instructions.

First, the user must be have an admin account. Download the drivers from http://support.apple.com/kb/DL1398 and open the install package. Follow the instructions to install the drivers.

Second, shut down the system and plug the printer in via USB.

Third, restart and log into an admin account.

Forth, (the simple, overlooked step) DISCONNECT FROM INTERNET

Fifth, If your system offers a dialog to add your printer, follow the instructions. If not, then open System Preferences/Printers & Scanners. Click on the + to add your printer.

OSX, unconnected from the Internet, should find the drivers you installed in the first step.

Sixth, Turn on your wireless services and repeat step 5 for your printer if it is connected wirelessly.

Apparently, OSX will check the Internet first for a new printer even if the drivers are installed and find installed drivers only if the Internet is unavailable.
  Post a comment  •  Comments (0)  
  • Currently 3.00 / 5
  You rated: 2 / 5 (4 votes cast)
 
[7,176 views]  View Printable Version
Create default printer presets for multiple users Printers
I was tasked with setting up a company's new printers and had to struggle with creating a default set presets that also used a PIN number login for accounting. This needed to be pushed out to the current user base, in real time, and without interrupting anyone's ability to print. Here's how I did it.

Tools:

  • CUPS server web interface to set the printer defaults
  • ARD to install the drivers
  • lpadmin to add the printer (We're using LPD on a Windows 2008 R2 server)
  • ARD to copy the cups PPDs

1. Create the default settings:

In Terminal, run this command: sudo cupsctl WebInterface=yes
In a web browser, go to: http://localhost:631/admin

2. Install the drivers (.pkg files via ARD)

3. Add the printer using lpadmin:

lpadmin -p SweetNewPrinter-7535-clr -L "Department" -E -v lpd://WindowsServer/SweetNewPrinter-7535-clr -P /Library/Printers/PPDs/Contents/Resources/Xerox\ WC\ 7535.gz -o printer-is-shared=false

4. Copy the default cups PPDs via ARD (set permissions to: root:_lp):

/private/etc/cups/ppd/"SweetNewPrinter.ppd"

It took about an hour to set this up for 200 end users, with no scripting required.

  Post a comment  •  Comments (9)  
  • Currently 3.25 / 5
  You rated: 1 / 5 (4 votes cast)
 
[8,674 views]  View Printable Version
Maintenance Utility for HP designjet 130nr Printers
Apple broke Hewlett-Packard maintenance utility under Snow Leopard for Designjet 130nr and 130 (and maybe for 30 and 100 series too).

Under Snow Leopard there's no way for HP130nr and HP130 user to access the maintenance utility and therefore perform color calibration, print checks and so on. HP says they have no plan to give people the right utility and suggest us to use the front control panel on the printer.

Luckily there's a workaround to gain access to the maintenance web page: download and install System Maintenance Utility for Designjet 111 H.06.00 Utility for OS X 10.6 from the HP suport site.

After installation, launching System Maintenance Utility and choosing your printer will allow you to access it via the web interface all the good things to maintain your Deskjet printer.

[crarko adds: I haven't tested this one. It may take a bit of hunting to find the above utility on the HP site. I think this link might work. Snow Leopard broke a number of printer utilities; if someone has this printer along with Lion please let us know if the situation has improved (or not).]
  Post a comment  •  Comments (5)  
  • Currently 2.75 / 5
  You rated: 1 / 5 (4 votes cast)
 
[7,696 views]  View Printable Version
Print from page 2 onwards Printers
Sometimes you want to print avoiding some cover page. Here a simple way to do it.

When sending something to the printer the OS X Print dialog provides many useful options. One of them is selecting the range of pages to be printed. I often find myself wanting to use that to avoid printing a (few) useless coversheet(s).

However, one is seemingly forced to fill in both a starting and ending range. If you don't know how many pages the document has that can be annoying (and you won't be able to see it once you've selected the option to print a range!). One solution, which I used for a few years, is to enter a very large number, such as 999, in the box. This works.

But a simpler solution is to leave that end field blank. Actually, if you enter the starting page, hit TAB then DELETE, then ENTER you are all set and have sent your job quickly to the printer from your starting page to the end of the document.

[crarko adds: Simple enough, and obviously the starting page number needn't be two. The actual tip here is that it's not necessary to know the ending page number. I tried it with a print to PDF and it works as described. I'm sure this has been around a long time but perhaps it will be new and useful for someone.]
  Post a comment  •  Comments (3)  
  • Currently 2.55 / 5
  You rated: 1 / 5 (11 votes cast)
 
[4,377 views]  View Printable Version
10.7: Use Dell 5130cdn laser printer Printers
I own a Dell Color Laser printer model 5130cdn and it has performed very well under Mac OS X 10.6 or lower. However, under Lion the printer went into a paused state after every job; resuming the printer triggered a duplicate job and a further pause. The only workaround was to delete the job before resuming the printer.

Dell issued a new driver as of 11/1/2011, in theory Lion compatible. However, it did not fix the problem on my system if the printer was added from the 'Print' pane of System Preferences, choosing from the 'Default' tab. A Dell technical analyst walked me through a fix and it may be useful to others.

It will be important to know the IP address of the printer, particularly if you have more than one networked printer. There are several ways to get the address, here is one: open the Terminal.app from Applications/Utilities, type arp -a, and press Return. You will see a list, and it should include an item similar to:

dell9cf14a.local (10.0.1.106) at 8:0:37:9c:f1:4a on en1 ifscope [ethernet]

In my case the IP address is 10.0.1.106, but this will depend on your network setup. Then do the following steps:
  • Download the driver installer for OS 10.7 from Dell.com and run it.
  • As a precaution, use the driver installer to uninstall any earlier version by selecting 'Uninstall' from the pulldown menu. When that is complete, do not close the installer, but rather select 'Easy Install' and run it again.
  • From System Preferences, 'Print' pane, delete the current Dell 5130cdn printer and then proceed to add a printer.
  • Do not select the Dell printer from the 'Default' tab.
  • Click the 'IP' tab and change the 'Protocol' pulldown to 'Line Printer Daemon.'
  • The 'Address' pulldown should list your printer's IP address, as determined earlier: select it.
  • The 'Print Using' pulldown will likely default to a generic driver at this point. Enter a name and location for the printer if you like and then change the 'Print Using' pulldown to 'Select Printer Software...'. In the search bar of the resulting dialog enter 'Dell', choose the correct driver, dismiss the dialog and add the printer.
You should be good to go.

[crarko adds: Printer drivers have often been one of the more painful parts of an OS upgrade. I do remember going through gyrations like this with printers under both Leopard and Snow Leopard installs. It sounds like Dell was pretty quick getting a fix out; some vendors have taken more than six months to upgrade Mac drivers in the past.]
  Post a comment  •  Comments (4)  
  • Currently 2.80 / 5
  You rated: 1 / 5 (5 votes cast)
 
[7,336 views]  View Printable Version
Opening a printer proxy from the Print dialog Printers
I've had a number of PDF documents to print all at once with standard printer settings. I know that I can drag and drop them on to the printer proxy which then prints them out on the printer without opening the Print dialog each time.

As I usually don't have the printer proxies in my dock or on my Desktop and rarely in the Recent Applications Dock item, I typically opened and printed at least one of the PDF documents from Preview or Acrobat Reader to open the desired printer proxy.

It turned out that it is actually not necessary to print a document.

If you you already have opened an arbitrary application which supports printing and has an open document (e.g. a web browser) open the Print dialog there.

From within the print dialog hold down the Command and Option keys while selecting your desired printer from the popup button. The printer proxy of the selected printer opens immediately.

I don't know if this behavior is supported for Systems prior to Mac OS X 10.6 Snow Leopard and for 10.7 Lion.

[crarko adds: I tested this, and it works as described, in 10.7.2.]
  Post a comment  •  Comments (5)  
  • Currently 3.25 / 5
  You rated: 2 / 5 (4 votes cast)
 
[5,672 views]  View Printable Version
Print after Shutdown without Logging in Printers
Often I send a document to the print queue before I have access or am connected to a printer, so I can close it and be done with it. However, sometimes I forget to print and then shutdown without printing. This is quite obviously a pain as you have to start up again, log back in, and open the print queue.

And so it would turn out Mac OS X (10.6) has got our backs here. If you shutdown your computer with an item still in the print queue, and then connect your printer (I've only tried this via USB so wireless may or may not work), then startup your computer again, at the login screen, before even logging in or doing anything, your document will print automatically.

[crarko adds: I think I've done this with networked printers as well, maybe ethernet only. As long the printer becomes available before the queue times out, things will behave normally.]
  Post a comment  •  Comments (2)  
  • Currently 3.20 / 5
  You rated: 2 / 5 (5 votes cast)
 
[3,785 views]  View Printable Version
10.7: MacPorts CUPS-PDF 2.5.1 not printing Printers
The MacPorts CUPS-PDF 2.5.1 port would not produce a printer, the 'backend' part. In Terminal, I found the file /usr/libexec/cups/backend/cups-pdf is set up as a symlink (root:wheel) to file /opt/local/libexec/cups/backend/cups-pdf (my_user-id:staff).

I finally did as follows:
  • Renamed the symlink file with a '_x' suffix.
  • Copied the actual file /opt/local/libexec/cups/backend/cups-pdf over to the folder /usr/libexec/cups/backend/.
  • Typed in sudo chown root:wheel /usr/libexec/cups/backend/cups-pdf.
And now, MacPorts CUPS-PDF produces PDFs.

[crarko adds: I haven't tested this one. It's strange that the symlink should break like that. I suppose it's a permissions issue.]
  Post a comment  •  Comments (5)  
  • Currently 2.67 / 5
  You rated: 2 / 5 (6 votes cast)
 
[6,724 views]  View Printable Version
10.7: Open print jobs Printers
In older versions of OS X, you could use Quick Look to view print jobs in a queue. In Lion, you can now not only view them but also open them -- this is great if you have a print job which did not print for some reason; you can open it in Preview (or other programs) and then save it.

[crarko adds: A handy new feature. The 'Open in Preview' option is a button in the upper right-hand part of the Quick Look window.]
  Post a comment  •  Comments (2)  
  • Currently 1.40 / 5
  You rated: 1 / 5 (40 votes cast)
 
[4,405 views]  View Printable Version