Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a Brother HL-2040 plugged into my Ubuntu 10.04 machine and an HP DeskJet 6540 plugged into a Windows 7 machine on the same network. Out of the box the Windows machine does not see the Ubuntu-attached printer and the Ubuntu machine does not see the Windows-attached printer.

I right clicked and Shared each printer on its own machine. I selected System --> Administration --> Printing --> Server --> Settings and checked the publish printer and show other printer options. I believe I set up sharing on the Windows machine as well. Still, neither machine see the other printer.

How do I set up printer sharing, so that each machine can see the other printer?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

This is a two part question, requiring 2 part answer.

First, Windows -> Ubuntu:

To begin with, you need to make sure that your windows host allows connecting to the printers. There are various things that could disallow access, the most common one being Windows Firewall.

Here is a quick howto

Now that you have a working share on your windows host, you need to add the printer to your Ubuntu host. This can be accomplished by going to System -> Administration -> Printing and by selecting the + Add button. From there the wizard will guide you through adding the printer. You will need to know the IP address or name of the windows host and name of the printer being shared to complete the wizard.

Next Ubuntu -> Windows:

The easiest way to accomplish this is by using IPP share to connect to the printer. Start by enabling Internet Printing Client as described in this knowledge base article

browsing to http://IP.OF.UBUNTU.HOST:631/printers/ and select the printer you wish to connect to and make a note of the full URL of the printer. Now go to Printers and Faxes on the windows host and start adding a network printer. At one point of the installation wizard you will be asked for the location of the printer, in the IPP field enter the address for the printer found on the webpage.

When the wizard asks for the driver to be used for the printer, use the CUPS Windows driver available from CUPS download page

Continue through the wizard and fill in the rest of the information normally.

You can also use the native driver for the printer, but you will then need to edit the CUPS mimetype support to include RAW printing which is done by editing /etc/cups/mime.convs file and uncommenting this line:

application/octet-stream application/vnd.cups-raw 0

You will also need to edit /etc/cups/mime.types and uncomment the line

application/octet-stream

After editing the files and restarting CUPS, you are able to print with native drivers as well.

share|improve this answer
    
If both computers are in the same subnet, you don't need to use the IP.OF.UBUNTU.HOST, the machine name will usually just work. –  Javier Rivera Aug 2 '10 at 7:08
    
Hostname will work if you have some name service that allows you to resolve the name. This isn't always the case so I went for the IP address which is a safe bet.. then again, IP address can change due to dhcp and things like that –  Ressu Aug 2 '10 at 7:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.