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

Printing to shared Linux printers via CUPS Network
I was looking at some of the previous hints and did not find anything useful as far as printing to a shared printer (CUPS) in Linux. I have an old Pentium that is set up as my Samba / share / printer / etc. Currently, Windows can print to it fine via Samba (check the docs - with newer Samba versions, it requires adding two lines to the smb.conf file). As far as adding the printer to your Mac (OS X 10.2.6), it's really easy (after you figure it out). Start by going to http://localhost:631/ with your favorite browser. Go to the Administration section and click on Add Printer. On the first screen with Name, Location, and Description, most of this is irrelevant. Pick a name, enter some descriptive info, and click Continue.

On the next screen, click the Device pop-up menu and select "Internet printing protocol (http)" and click continue. On the next screen, for the Device URI, enter http://192.168.1.1:631/printers/deskjet. Of course, you'll need to change the IP and name of the printer (mine is deskjet) to match your setup.

Then, make sure you select a driver that matches up with your printer, so you can change some of the printing options. I'm using a DeskJet 3420. Really inexpensive and works great.

Hope this helps someone out.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[15,336 views]  

Printing to shared Linux printers via CUPS | 4 comments | Create New Account
Click here to return to the 'Printing to shared Linux printers via CUPS' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Printing to shared Linux printers via CUPS
Authored by: MattHaffner on Sep 30, '03 02:27:52PM

Normally, you don't even have to do this. Here at work our deptarment's 10+ printers all show up on my PowerBook without any work on my part. Make sure the 'Show printers connected to other computers' button in the Preferences of Print Center and any CUPS printers on your subnet should appear automatically. When you use a Print dialog box, there will be a 'Shared Printers >' submenu below your manually added printers in the Printer pulldown menu. If you want one of the shared printers to always be in your primary list as well, just make sure it has the checkbox checked next to it in Print Center.

If it doesn't show up, your CUPS server may not be configured for broadcasting/sharing (but this is normally the default setting for a CUPS distribution). Check the /etc/cups/cupsd.conf file on the Linux server and explore the Browse* options (particularly the BrowseInterval option). You can find more information on setting these in the CUPS admin documentation, conveniently located on any CUPS-enabled machine (like OS X):

http://localhost:631/sam.html

If your printer(s) is(/are) located on different subnets, you can use the method described in the tip, or if you want to use CUPS browsing system, you'll need to tweak the /etc/cups/cupsd.conf file on your OS X machine by uncommenting and editing the BrowsePoll line to include the server machine's address.

One final note... Unfortunately, you may not be able to print to a shared Linux CUPS printer with some Adobe products (PS and Illustrator, especially). The current version of these apps still send print jobs out as PICT encapsulated postscript (also tagged as "pictwps"), and the Linux CUPS does not have a proper filter for this data type. The easiest solution is to bypass the CUPS server if the printer is connected via Ethernet by manually adding a printer in Print Center. Of course you loose all the benefits of group queue reporting, accounting, etc. if you do this. The real fix has already been incorporated into the latest CUPS software release, if I read thing correctly, by pre-processing the output on OS X before sending to the remote server. I haven't personally tried to get this working under OS X though. Maybe this will be fixed in Panther, although it may cease to be a problem in newer versions of the applications as well, especially if they go Cocoa instead of Carbon.



[ Reply to This | # ]
Same thing here - no config rqd.
Authored by: gxw on Sep 30, '03 08:48:29PM

I have a Mandrake installation with CUPS installed and a Laserjet 6L on the parallel port. This printer auto-magically showed up in the print center on OS X without me having to do any configuration at all on OS X. The configuration on Linux. box was just to install a laserjet 6 driver (the driver is actually a laserjet4+ghostscript driver - it was the recommended choice of when I installed Mandrake).

It's sweet the way it works.



[ Reply to This | # ]
Printing to shared Linux printers via CUPS
Authored by: fiverlocker on Oct 01, '03 07:08:08AM

Thank You, Thank You, Thank You! After weeks of fiddling with the settings and trying to decipher the crappy documentation I finally can print to my Epson Photo off my Linux server. Now let's see if it'll also work with my old HP G55 which seems unshareable...

Btw, my Mac also shows a printer on the linux box automagically both in Print Center and the CUPs web interface, but can't actually print to it. There seems to be a problem with an invalid name, which I don't have the authority to change either on the Mac or on Linux. Ho-hum, so much for automatic discovery of resources.



[ Reply to This | # ]
Printing to shared Linux printers via CUPS
Authored by: stevevm on Oct 01, '03 08:49:04AM

I spent some time on the weekend trying to do this as well. The printer I'm using is a Canon S820 for which linux does not have a very good driver. So i set up a raw queue on my linux box and i can see it on my iBook. I have the canon drivers installed on the ibook and it will detect and properly use them when i try to access the printer via usb. Unforunately they do not show up in the list of available printer types under Print Centre when trying to configure the raw linux printer. If i select other, it wants me to choose some file, does anyone know what this file is suppose to be?



[ Reply to This | # ]