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

Use CUPS to print to any PostScript printer System
I have been annoyed at various printer manufacturers for not making MacOS X drivers available. With the inclusion of CUPS in 10.2, connecting these orphaned printers is a breeze. It took me all of seven or eight minutes to figure this out, so kudos to the people at CUPS and Apple for having the presence of mind to implement CUPS in 10.2. Read the rest of the article for the very detailed how-to.

The printer that caused me no end of heartache is used as an example. I am not certain as to who might be using this How To, so I might insult your intelligence in places. I beg forgiveness in advance. And, of course, if there are any problems with the procedure here, please contact me. Here is the procedure to add any PostScript printer connected to your Mac:
  1. Connect the printer to your computer with a USB cable (or a Parallel to USB cable).

  2. Turn the printer on and ensure that it is set for a parallel interface and to accept Postscript - consult the printer manual to be sure.

  3. Start or restart your computer.

  4. Obtain a copy of the PPD for the printer from the manufacturer. If you cannot find one for it, this is not a problem, just skip this and the next step.

  5. Place a copy of the PPD in /Library -> Printers -> PPDs -> Contents -> Resources -> en.lproj. Of course, if you are using MacOS X in another language and your PPD is in this other language, place the PPD in the appropriate folder. E.g., if you are using French and you have a French PPD, place the PPD in /Library -> Printers -> PPDs -> Contents -> Resources -> fr.lproj. If you don't have permissions for this folder, instructions to set permissions are available elsewhere on this site.

  6. Launch the Terminal which is found in /Applications/Utilities/

  7. At the prompt, enter lpinfo -v, and something that looks like this will be displayed:
      network pap
    network socket
    direct usb://HEWLETT-PACKARD/DESKJET%20840C?serial=CN0981R2VSLB
    direct usb://KYOCERA%20MITA/FS1800?serial=0
    network http
    network ipp
    network lpd
    direct usb
  8. Identify the line that corresponds to the printer you are trying to install. Write it down or copy it to the clipboard without the word "direct". This is your printer's URI. We'll use the Kyocera Mita printer as an example. If you don't see your printer, make sure the printer is on and restart the computer. Repeat the last step. If you still can't see the printer you wish to install, you are stuck. If your computer cannot see the printer at all, you're out of luck.

  9. Launch your browser (if IE doesn't work, try OmniWeb or Navigator). Enter localhost:631 in the address bar and hit Enter

  10. You are now in the CUPS administration module. Click "Manage Printers"

  11. Click "Add Printer".

  12. Now enter a name for the printer, a location, and a description. The name will be the name that CUPS publishes as a queue if you share your printer, e.g., "Lassie", the location is unsurprisingly, the physical location of the printer, e.g., "In my office", and the description can be the make and model of the printer, e.g. "Kyocera Mita FS-1800". The description can be anything by which you wish to identify the printer to yourself.

  13. Click "Continue".

  14. Pop up the Device: menu and select "USB Printer (usb)".

  15. Click "Continue".

  16. This is where you need to put the URI you discovered above. Either paste it or type it in.

  17. Click "Continue".

  18. In the Make: list, select "Raw".

  19. Click "Continue".

  20. In the Model: list, select "Raw Queue (en)".

  21. Click "Continue".

  22. CUPS reports that your printer has now been added, but we have to point it at the right PPD and enable the extra features of the printer. You can now quit your browser.

  23. Launch Print Center in /Applications/Utilities/

  24. You should see your printer listed in the Printer List under the description you entered above, e.g., "Kyocera Mita FS-1800".

  25. Select it then select Show Info from the menu bar under the Printers menu.

  26. Pop up the menu under the printer description - it should say "Name & Location", and select "PPD".

  27. Pop up the menu beside "Printer Model" and select the manufacturer of the printer you are installing. If you could not find a PPD for this printer, Select "Generic" and skip the step for "Installable options".

  28. Select, in the list, the model of printer you are installing.

  29. Click "Apply changes".

  30. Pop up the menu under the printer description again and select "Installable Options".

  31. Select the specifics of your printer. Consult your manual.

  32. Click "Apply changes" then click the button at the far left of that window's title bar.
You are done. Print something. If all has gone well, then you've just made life easier for yourself or a colleague or loved one. Rejoice!
    •    
  • Currently 1.75 / 5
  You rated: 2 / 5 (4 votes cast)
 
[38,357 views]  

Use CUPS to print to any PostScript printer | 22 comments | Create New Account
Click here to return to the 'Use CUPS to print to any PostScript printer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Permission
Authored by: vinluc on Aug 27, '02 09:35:38AM
Another Mac user (Henry Richter) sent me this info when trying to access cups. For some reason the software via the browser kept giving me permission errors:

Either try another browser instead of Internet Exporer (e.g.
Mozilla) or use the following URL syntax: "http://user:passwd@localhost:631". Replace "user" with "root" and "passwd" with your root password.


[ Reply to This | # ]
Permission
Authored by: tres on Aug 27, '02 06:22:53PM

If you're using IE, make sure you put the http:// at the head of your request.

For some reason Mac IE was built not to view anything but port 80 & port 443 as http.



[ Reply to This | # ]
Needs printer sharing enabled?
Authored by: Anonymous on Aug 27, '02 12:35:01PM
I cannot connect to the CUPS web interface unless Printer Sharing is enabled in the Sharing preference pane of the System Preferences program.

Anyone who can't get that step to work should enable Printer Sharing and then try again.

Also, the above comment may be in error. I have no problem accessing the CUPS page from IE with the URL http://localhost:631 -- no need for the user and pass information. Perhaps this is necessary for non-administrative users, though.

Zach

[ Reply to This | # ]
Needs printer sharing enabled?
Authored by: vinluc on Aug 27, '02 12:44:58PM

That was my first thought, so I logged back in as "root" but the permission thing persisted, until I added my user and pswd as noted above. Thanks for the share printer tip...



[ Reply to This | # ]
What about over a network?
Authored by: tomdarch on Aug 27, '02 07:40:44PM

Personally, I'm stuck with an Epson 1520, which does not have an OS X driver. Would this be likely to work with the 1520 running under Epson's windows PostScript software RIP over a network? (yeah, I know that there's supposedly a hack to use a different Epson driver, but I can't get into architosh.com forums to find it, and who knows if it will work with 10.2) I guess that part of the issue is whether Epson's software RIP 'appears' to be a postscript printer on the network.



[ Reply to This | # ]
What about over a network?
Authored by: guzk on Jun 20, '03 03:58:07PM

I´m using a 1520 on an appletalk network, the answer to my problems was on gimp print FAQ point 9 (http://gimp-print.sourceforge.net/p_FAQ_OS_X.php3#tcpip), if yours is shared with Win PC´s maybe is on a TCP/IP network so check point 7



[ Reply to This | # ]
Anyone tried SMB printing?
Authored by: joel on Aug 28, '02 12:06:27AM

I tried muddling my way through setting up printing over SMB. Here's what I found so far

1) You need to use Mozilla to access the CUPS setup screen (http://localhost:631/). IE 5.2 kept giving me permission errors. I also enabled the root password along the way (see the MacOSXHints article on enabling root)
2) I found a good tutorial on CUPS at http://mumford1.dyndns.org/~bs7452/linuxhelp/cups.html. There were a couple things that were different on OS X.
The backend folder was in /usr/libexec/cups/backend/
I used ln -s /usr/bin/smbspool smb to make the softlink to add smb into the backend directory
To restart cups, I did a ps -aux | grep cupsd to find the process ID, then a kill on that process ID, and finally ran /usr/sbin/cupsd
All of this was done as root.

Anyway, I was able to walk through the Web interface but "print test page" failed. So, I'm not sure if it was an authentication issue or if I simply did something wrong.



[ Reply to This | # ]
Anyone tried SMB printing?
Authored by: joel on Sep 05, '02 02:15:20PM
So it turns out that it really did work. I found out from another thread that printing a test page doesn't work for some unknown reason. I had never bothered to try it from a regular app. So, last night, I was able to print "hello world" from textedit over Airport over SMB to my HP LaserJet 4L (which is PCL, not PostScript) connected via Parallel to my Windows 2000 machine in my office. Phew!

[ Reply to This | # ]
CUPS & Print servers
Authored by: sbk on Aug 29, '02 05:06:22PM

I don't know if this is possible, but I'm trying to get my Epson Stylus Colr 600 working through a built in print server in my Wireless router (SBC Barricade 7004 AWBR).

The print server says it doesn't work with Macs but it supports Linux (Line Printer Daemon) and CUPs supports the Epson printer...

Any ideas on how to get this configured?

These are the instuctions from the SMC support page for Linux..
Yes, the Barricade provides Line Printer Daemon. Users of Linux have to set up /etc/printcap and the queue name is "lp". The following is an example for Red Hat


Linux release 5.1:

# /etc/printcap

hp6p::sd=/var/spool/lpd/hp6p::rm=192.168.123.254::rp=lp::lp=/dev/null::sh:

hp2100::sd=/var/spool/lpd/hp2100::rm=192.168.123.253::rp=lp::lp=/dev/null::sh:



[ Reply to This | # ]
CUPS & Print servers
Authored by: schreib on Sep 29, '02 11:12:04PM

I figured out how to print to a printer attached to a SMC Barricade 7004ABR through CUPS from Mac OS X 10.2.

Go to Print Center, select Add New Printer, select IP Printing, enter the appropriate IP to the Printer's Address box, uncheck Use Default Queue on Server, in the Queue Name box type LPT1, then select the correct printer model (whether it is one of Apple's included drivers or one added by Gimp-Print).

It turns out that the Linux instructions were not what helped me figure this out but rather the Windows 2000 and XP instructions. The direct-to-IP printing on Windows requires the same type of configuration.

I have not tested this extensively, but it has worked with both Word v.X and Preview. One thing I have noticed is that it prints an extra blank sheet plus a job banner sheet with my userid at the end of the job. I would like to figure out how to get rid of that.

Allen



[ Reply to This | # ]
CLBP 360PS Printer
Authored by: radar on Sep 02, '02 11:24:49PM

I am connected by ethernet cable (apple talk) to the printer....can I still use this method?

Thanks,
Ray Redd
radar@speakeasy.net



[ Reply to This | # ]
forbidden access
Authored by: ateazz on Sep 03, '02 05:22:16AM

Hi guys,
I try to use the cups printing over the network.
But if I go to the browser and try to "add printers", it says forbidden (no access to the server). This also happens when am logged in as root.
Am I doing something wrong???



[ Reply to This | # ]
forbidden access:just try gimprint
Authored by: oem on Sep 03, '02 02:58:50PM
I'm now printing on My Epson 3000 via ethernet under Jaguar 10.2.

All this simply with 'CUPS&gimpprint' you can found here

just install the .pkg. Restart. et voilà.

there is an article here
or in french here

a list of printers

hardmac.com=macbidouille.com = a very good french MacosXhints-like site)


NB: hopefully I have not to wait for Epson to take care of me and the drivers I'm (we are) waiting for more than a year now and that I guess I(we) will never get. I though I had a 'professional' printer maybe I thought bad.
this is exactly why I'm so happy the Mac joined the UNIX community or could we say the Unix community joins the Mac community.
More geeks = more solutions :)


[ Reply to This | # ]
forbidden access:just try gimprint
Authored by: oem on Sep 03, '02 03:00:41PM
I'm now printing on My Epson 3000 via ethernet under Jaguar 10.2.

All this simply with 'CUPS&gimpprint' you can found here

just install the .pkg. Restart. et voilà.

there is an article here
or in french here

a list of printers

hardmac.com=macbidouille.com = a very good french MacosXhints-like site)


NB: hopefully I have not to wait for Epson to take care of me and the drivers I'm (we are) waiting for more than a year now and that I guess I(we) will never get. I though I had a 'professional' printer maybe I thought bad.
this is exactly why I'm so happy the Mac joined the UNIX community or could we say the Unix community joins the Mac community.
More geeks = more solutions :)


[ Reply to This | # ]
better with the links !
Authored by: oem on Sep 03, '02 03:06:12PM

OOooopppssssSorry for multiposts

info is here :
<http://gimp-print.sourceforge.net/index.php3>

printer list is here :
<http://gimp-print.sourceforge.net/p_Supported_Printers.php3>

how-to article can be found here :
<http://www.allosx.com/1030154694/index_html>

enjoy color printing with unsupported printers ;-D



[ Reply to This | # ]
better with the links !
Authored by: ateazz on Sep 04, '02 04:54:39AM

thnx for the info



[ Reply to This | # ]
forbidden access
Authored by: nick2588 on Sep 05, '02 06:29:39PM

I have the same problem! I can go one link deep inthe CUPS admin pages, but no more! I can see the printer list, but not add or configure printers via the web. :-(

Permissions problem?
I'm using a beta version, if that matters.



[ Reply to This | # ]
forbidden access
Authored by: florian on Oct 13, '02 06:07:16AM
I finally found the reason for this problem that was bugging me, too: In /etc/cups/cupsd.conf it says somewhere: ... Order Deny,Allow Deny From All Allow From 127.0.0.1 ... The solution is to simply access the cups admin pages via http://127.0.0.1:631 instead of http://localhost:631. cheerio, f l o r i a n

[ Reply to This | # ]
forbidden access
Authored by: mgrady on Sep 27, '04 03:23:26PM

I was defeated by CUPS access controls too. I found the following works:

Edit the cupsd.conf in /etc/cupsd

Comment out the following lines, right at the end of the file:

#Encryption Required
#<Limit GET>
#AuthType Basic
#AuthClass System
#</Limit>

This removes the requirement for a password and class of "system" to modify and/or add printers.

I did use http://127.0.0.1:631/ to access CUPS, and did not retry with localhost:631, but since it worked...

mjg



[ Reply to This | # ]
forbidden access
Authored by: ThFatController on Nov 30, '04 06:09:00PM

It doesn't work for me, though. I've tried using 127.0.0.1:631, I've tried using different browsers, I've tried editing the cupsd.conf file - nothing. After opening localhost:631 I can select the "Printers" tab but I am not allowed to add a new printer. CUPS doesnt accept my username or "root" or "admin" or "lp" with my password. As I am root I don't see what else I can do to access the CUPS administration area!

Please help!



[ Reply to This | # ]
forbidden access
Authored by: ThFatController on Nov 30, '04 06:20:24PM

Okay, I am the first one to admit that I am a bit too hasty sometimes... Of course, after editing the cupsd.conf file you'll have to restart the cups daemon to make things work. Well, yet another problem solved :-)



[ Reply to This | # ]
Use CUPS to print to any PostScript printer
Authored by: vicstevens on Jun 20, '03 03:17:49PM

Does CUPS work for network printers?



[ Reply to This | # ]