Printers

Easy printer sharing in GNOME

Do you need to share out printers from your Linux machine? If so, Jack Wallen has a simple set up that will have you printing from remote machines in no time.
Do you remember how challenging sharing printers could be back when you had to manually configure your smb.conf file to include shared printers? Well, those days are over with the latest incarnations of the GNOME desktop. Like folder sharing, printer sharing has been made very simple and can be done completely within a GUI. Let's see just how this is done. Assumptions

I will assume that you already have the printer attached to the local machine and it is printing just fine. I will also assume the machine the printer is attached to is the Linux machine that will share the printer out. If that is all the case, you are ready to begin the sharing process.

How to share out a printer

The first thing to do is to click System | Administration | Printing. When this new window opens, right-click the printer you want to share and select Properties. From the Properties window click the Policies tab (see Figure A) and then make sure the following are checked:
  • Enabled
  • Accepting Jobs
  • Shared

Figure A

Once you have those items checked, click OK.

The next step is to configure the CUPS server settings. To do this go back to the main Printing window and click Server | Settings. In this new window (see Figure B) make sure the following items are checked:
  • Publish shared printers connected to this system.
  • Allow printing from the network.

The rest of the settings are optional.

Figure B

Once you click OK your printer should be ready to use by remote machines. Of course how you connect to this shared printer will be dictated by the operating system you are trying to connect from.

Issues

Obviously there may be issues - depending upon the OS you are using. For example if you are connecting from a Windows 7 operating system, you may need to make a single change to your smb.conf file (yes, there will be a manual edit in this case). The edit in question is this:

  1. Search for the [printers] section.
  2. Change the line browseable = no to browseable = yes.
  3. Restart Samba.

That's it. Once you make that change you should be able to then see your Printers from Windows machines.

Final thoughts

Sharing out printers used to be a challenge for Linux users. Thanks to modern desktops like GNOME (and a much easier to administer Samba), printer sharing has become far easier than it once was.

About

Jack Wallen is an award-winning writer for TechRepublic and Linux.com. He’s an avid promoter of open source and the voice of The Android Expert. For more news about Jack Wallen, visit his website getjackd.net.

4 comments
venerable Architect
venerable Architect

I have one issue when I use any of my Linux (Ubuntu) boxes for sharing a printer. That is the driver does not seem to share it's status (amount of Ink). I have Canon iP5300 and iP9000-professional printers. They both have the capability of letting me know when ink is running out. But it seems that this is only available for their Windows drivers. So I must use a Windows box to share the printers on my network. Have you any suggestions on how to improve this situation ?

mwclarke1
mwclarke1

Which Distro and Version was that example of ?

cdaaawg
cdaaawg

Have you tried installing the gui based mtink or terminal based ttink? Although targeted to Epson printers, some HP and Canon models are supported. It may be worth a try if you don't find anything else. mtink is in the ubuntu repos, I'm not sure about other distros.

jlwallen
jlwallen

terribly sorry i left that out. the distro I was using was Ubuntu 10.10. i tested it on Fedora 14 and it worked as well.

Editor's Picks