Ubuntu Guide For Windows Users: Connecting To Shared Printers On Windows Computers

42

ubuntulogo.jpgFor Windows users setting up and sharing printers on Windows Computers, the process is simple. On Ubuntu or Kubuntu the process is also very easy. Zeroconf and print sharing let you browse the local network for available services. Both are now simple to setup and maintain requiring nothing more than checking a box to enable the feature.

This tutorial will show you how to setup and connect your Ubuntu or Kubuntu computer to a shared printer on Windows XP or Vista.

Creating the Printer Share On Windows

1. Make sure the Windows computer that you will share the printer from has a printer installed and is functioning.

2. Next, share the printer on your XP Computer by clicking on Start \ Settings \ Printers and Faxes.

On Vista, click on Start \ Control Panel \ Printers.

Then right click on the printer and select Properties. In the Properties window of the printer, click on the Sharing tab.

NOTE: Screen shot is from XP, and all configuration will be similar on Vista.

ubuntuptr1.png

3. Click on the Share this printer radio button and enter a Share name. Click OK when finished.

Additionally you will want to find the IP Address of your computer, by clicking Start \ Run (on both XP and Vista) and in the Run box, type cmd.

At the command prompt, type ipconfig and make a note of the IP Address.


Setup Printer In Ubuntu

1. Logon to your Ubuntu computer and click on System \ Administration \ Printing from the menu on the Panel.

2. In the Printers window, double click on New Printer.

3. Then in Step 1 of 3, select Network Printer for Printer Type (arrow) and select Windows Printer SMB (circled). If an Authentication windows pop-up, click Cancel until it's disappears.

ubuntuptr2.png

Enter the IP Address (from Step 3) in the Host field, and share name of the printer (from Step 3) in the Printer field. If neccassary enter the Username and Password you use to log on to your Windows Xp computer. Click Forward to continue.

4. In Step 2 of 3, select the Manufacturer from the pull down arrow, then printer model. Make sure recommended appears in the Driver field. Click Forward to continue.

5. In Step 3 of 3, enter a Name, Description, and Location if necessary. Click Apply to finish.

The printer will now appear in the Printers window. To test, either print a document or right click on the printer, select Properties and click on the Print a Test Page button.

ubuntuptr3.png

To view the printer queue, double click on the printer.


Setup Printer In Kubuntu

1. Logon to your Kubuntu computer and Click on K Menu \ Settings \Printing.

2. In the Printers window, double click on New Printer.

3. Then in Step 1 of 3, select Network Printer for Printer Type (arrow) and select Windows Printer SMB (circled). If an Authentication windows pop-up, click Cancel until it's dissappears.

ubuntuptr4.png


Enter the IP Address (from Step 3) in the Host field, and share name of the printer (from Step 3) in the Printer field. If neccassary enter the Username and Password you use to log on to your Windows Xp computer. Click Forward to continue.

4. In Step 2 of 3, select the Manufacturer from the pull down arrow, then printer model. Make sure recommended appears in the Driver field. Click Forward to continue.

5. In Step 3 of 3, enter a Name, Description, and Location if neccassary. Click Apply to finish.

The printer will now appear in the Printers window. To test, either print a document or right click on the printer, select Properties and click on the Print a Test Page button.

ubuntuptr5.png


To view the printer queue, double click on the printer.

You are now able to print in Ubuntu or Kubuntu to a shared printer in Windows. Just make sure the Windows computer is running when you want to Print. If Windows is not running the print job will remain in the queue in Ubuntu or Kubuntu until the Windows computer is back online.

Comments on Ubuntu Guide For Windows Users: Connecting To Shared Printers On Windows Computers Leave a Comment

August 26, 2007

Mike @ 2:43 pm #

Nice tutorial, but what you say has actually nothing to do with Ubuntu. You are using Gnome and KDE CUPS tools which are available for all Linux distributions. Configuring printers that way is not Ubuntu only feature at all. Eg. in that Ubuntu screenshot you are using gnome-cups-manager. You can configure shared printers exactly the same way eg. in Debian Etch and any other distribution which has those tools. I say this because sometimes it feels annoying when many people write tutorials and say it's specifically for the Ubuntu even if there is nothing Ubuntu specific in the tutorial.

Anyway tutorial is nice.

Danna @ 3:28 pm #

I have done all as detailed, and my xp desktop and the hp office 5110 is up and printing. however, the printer does not print, so all I can figure is that I have done something wrong.

The test print from Ubuntu is data type RAW, and prints from the XP are NT EML 1.008

Additionally, the only way to clear the printer queue is to reboot…how painful to reboot XP

Any help would be great.
thanks,
Danna

September 2, 2007

April @ 8:36 pm #

I used the tutorial and I thought things were going well. When I attempted to print a test page the printer sounded as if it were about to start printing and stopped. I thought I would try again (5x) and still nothing. I checked the print jobs on the Vista machine and had 5 print jobs in queue. I could not cancel them and had to eventually delete the printer and reinstall it to clear the spool. My printer, which is an HP all in one, is hooked to a windows vista box. I am trying to print from my laptop with Ubuntu Feisty installed. Any additional suggestions?

September 8, 2007

Rafael @ 12:56 pm #

Funny thing, I have the same printer and the same Ubuntu and the same thing happens. The solution should also be the same, I think.

Rafael @ 1:11 pm #

Found the solution on https://help.ubuntu.com/community/WindowsXPPrinter. You only need to

1. Go to Control panel -> Printers & faxes
2. Right-click on Printer -> Properties -> Ports tab
3. Uncheck "enable bidirectional support"

April @ 5:00 pm #

Did the solution work for you? I have not tried it yet but was just wondering if it worked.

October 24, 2007

Mark @ 9:03 pm #

i'm using a HP D1420 (cheapie) and disabling bidirectional support was exactly what i needed! thanks!! oh, and it seems it needs to print out in "normal" mode and setting paper size to "letter" (instead of A4) seemed to make it work, not sure if it was a fluke or if it really helped.. but thats what i did. heh. =)

October 25, 2007

April @ 8:33 pm #

Thanks for the reply. I am now willing to give it another try.

November 20, 2007

justin @ 6:00 am #

thanks this helped a lot!!!

April @ 7:20 pm #

justin did this work for you? I still haven't taken the time to try it again.

January 17, 2008

tordz_leoj @ 9:29 pm #

i am trying to share ubuntu printer to windows xp, but i can't connect it! any suggestions that know the steps on how?

tordz_leoj @ 9:32 pm #

eventually im am using the latest version of ubuntu 7.10…

February 11, 2008

james @ 9:17 pm #

where can I keep all printed documents like windows can do "Keep printed documents"?
or where can I know if the documents printed or not? If confused me a lot

March 18, 2008

Tamas @ 9:39 pm #

I think certain HP printers (or older versions of HPLIP) work as described in the tutorial. I had a Deskjet 890C hooked up to a WinXP computer and used an 2.7 something HPLIP. No problem with installing or sharing the printer on a LAN-connected Ununtu computer. I bought a new HP photosmart C4280 for the XP and installed the latest 2.8.2 HPLIP on Ubuntu. Forget it. HPLIP 2.8.2 will not allow to share the printer and earlier versions of HPLIP will not drive the C4280. I'm still struggling with the whole thing. Everything is installed properly and I can share files with the XP but not the printer. The Ubuntu refuses to acknowledge that there is any device connected to the XP and gives a BadDevice…166, Major Op Code 146 message when I try to install a new printer. The printer, by the way works, if I physically connect it to the Ubuntu computer. If anybody out there has a solution, I would sure like to know it.

March 22, 2008

Phil @ 1:54 pm #

When I get to test page I get error "There was an error during the CUPS operation: 'client-error-document-format-not-supported'"
I am using the generic print driver as I can't find one for a Lexmark x4250
Help!

May 22, 2008

Bob Foley @ 11:58 am #

G'day! Today I found the solution I've needed for WEEKS: who'd've believed it would be something as simple as a checkbox?! Grrr!!

June 11, 2008

Matt Williams @ 10:06 pm #

This helped me, but only because it said to do something that the wizard does not really make intuitive. I was able to browse the windows network, see my pc, and see the printer share all using the wizard, and it assigned the address of smb:/workgroup/pcname/sharename (not literally, but by name. Taking from step 3 here, I edited the URL and replaced workgroup/pcname with the ip address of the pc that is sharing the printer. Voila, problem fixed. But why could I browse the network just fine when adding the printer, but then the job would never reach the printer? Is there some setup in Samaba or the network properties that I can change to allow name resolution outside of the add printer wizard?

September 30, 2008

JJ @ 2:00 pm #

Just what I needed – Thanks

March 16, 2009

Rajamani @ 9:05 am #

hai
plase help me.i am domain user.i have logging in domain user that is not have administrator permission.but my printer have sharing.how add the printer to ubundu

March 25, 2009

Dave @ 12:38 pm #

Hi, I've been having trouble with getting this all set up and was hoping that maybe someone could help me. I have Vista Business on my pc and ubuntu 8.10 on my laptop. My problem is that whilst the screenshot above is all nice and pretty and looks exactly like every tutorial and forum that I have seen describes. However it looks absolutely nothing like what I see when I open my printer manager. Screenshot: http://img124.imageshack.us/my.php?image=screenshottpm.png Does anyone know how to change or configure this to be like the one above or have any idea how to set up the printer share using this manager? Thanks.

June 13, 2009

RJC @ 1:16 pm #

Dave:

You're in the right place. Try taking the name of the workgroup that the windows computer is in, the name of the windows computer, and the shared name of the printer and put them in the box labeled "smb://" as "[WORKGROUP]/[COMPUTER-NAME]/[PRINTER-NAME]". That was all I needed to do. Based on the comments above, you might also try using the ip address of the windows computer, "[IP ADDRESS]/[PRINTER-NAME]". I believe the Verify button will check if a connection can be made with the settings you supply.

July 3, 2009

Chris @ 7:36 am #

I have an Epson USB printer networked through a BT Homehub. It works fine on three separate computers however, I have to disable "bidirectional support" in Windows XP for it to print more than one document. This is fine for windows but I can find no way of disabling "bidirectional support" in Ubuntu so on these machines I have to turn off the printer and turn it back on again after each document is printed.

PLEASE does anyone know how to disable "bidirectional support" in Ubuntu (in Windows it is in the printer properties port settings)

July 12, 2009

James Craig @ 11:19 pm #

AWW shucks! 9.04 did not give me those screens. Still trying to get printer sharing and hard drive sharing to work.

July 27, 2009

ANWAR KEMAL @ 5:02 pm #

Same here, JAMES CRAIG!!!I also tried the suggestions made be Matt Williams & RJC, but they don't work. Ubuntu 9.04 tries to search for drivers…in my case for CANON MP 130…& doesn't find it so gives me generic text-only printer and its driver. In the end, when prompted to test-print a page, says. "There was an error during the CUPS operation: 'client-error-document-format-not-supported.' I don't have a clue what that means!!! I sure hope, someone has found the answer and makes the effort writing down that here.
Millions of thanks to all who contribute with tutorials on this site. I'm a real newbie and have learnt a lot from the tutorials and suggestions from WTN. Keep up the wonderful work!!!

July 30, 2009

James Craig @ 9:45 pm #

So far I have been unable to get any Ubuntu PCs to share anything! I tried all the tricks above for Ubuntu 9.04.
If I use a Windows XP box for my gateway to the INTERNET any Ubuntu PC or Windows PC on my network can access the INTERNET. Windows PCs can share hard drives and printers connected to any Windows PC but Ubuntu does not share anything to or from themselves or Windows.
Conclusion; I am not doing something right or networking with Ubuntu needs more time to develop networking for small business or large business networks in the world.
I have a wired and wireless network with Verizon wireless broadband VIA the pc 5750 WWAN modem.
My small business needs Ubuntu to work so I don't have to keep sending my small profit to M.S.

August 26, 2009

sharva @ 5:11 am #

I installed hp printer with hplip3.9.8 to ubuntu. Now it's printing in html/xml/txt
but I need to use ms office & open org. Pls help me on this problem.

September 28, 2009

Ace @ 7:29 am #

I am going nuts here. I have an Epson Stylus CX6000 hooked up to my Ubuntu 9.04 PC. I can share it with other Ubuntu computers on my network, but not Vista. I tried putting in the network address when setting up the printer, but it still doesn't work. Any ideas?

November 24, 2009

Dave @ 3:27 pm #

Help! I,m a windows person new to Ubuntu and I'm trying to connect linux laptop to printer on my home network (works fine with windows vista laptops). I have something called cups server on the linux machine that is configured to talk to network printer at office. However on home network all I get is a cryptic message:

"There was an error during the CUPS operation: 'client-error-forbidden'."

What does this mean? What is forbidden? Me or the printer…

Any suggestions are welcome.

January 15, 2010

spruit @ 8:19 am #

Is there a way to configure the printer in Ubuntu without using the ip address of the Windows pc. I have dynamic ips…

Nordite @ 5:50 pm #

@Danna: I can almost connect to mine. I get as far as [Workgroup]/Laptop/but does not see the printer. Has anyone seen this before?

April @ 6:37 pm #

I am using ubuntu 9.10 with a HP printer and have installed the hp linux printing and imaging system (hplip) through synaptic and am able to print wireless. Works great for me.

January 16, 2010

Nordite @ 1:45 pm #

I installed the HPlip but that did not work

April 16, 2010

Kartik HEgde @ 10:50 pm #

Thanks Man Its Working

May 26, 2010

ciprut @ 5:13 am #

How to install driver for canon pixma ip1980 ?

July 16, 2010

Aya @ 8:55 am #

Thank you so much for this guide! I did not know how to use a printer through hamachi VPN… Thanks to you, I was able to install the printer and print documents right from all computers connected to the network.. Thanks again pal!

July 20, 2010

mdkhan @ 2:40 am #

not shareble , i have configured one default ip address and default gateway , resolve.conf dns in ubuntu 8.10 desktop server. through this default ip address. in windows xp when i was assigning in default gateway preffered dns and alternate dns server i am unable to connect internet in widows xp. plz help me how do i able to connect internet.

August 7, 2010

Sas @ 2:19 pm #

Hey there I have a lexmark 4550 which im trying to configure as a network shared printer I have used a driver for a x463de as the x4550 did not work even after downloading, the x463de driver seems to trigger my Printer but nothing actually prints any ideas?

Cheers
Sas Parmar.

November 5, 2010

Mick @ 6:12 am #

You guys make working with UBUNTU so simple with your easy to follow instructions. Thank you

November 25, 2010

flyingscot @ 6:25 am #

Disabling bidirectional support is what fixed it for me.
(HP Laserjet 1020 on XP Pro, shared with Ubuntu and other Windows PC's)
Just confirming for whoever finds this helpful !

See also :
https://help.ubuntu.com/community/WindowsXPPrinter

June 16, 2011

SRIREDDY @ 2:07 am #

iam using ubuntu 10.04.i want to print from ubuntu(linux) to windows xp which is connected to hp lasejet2300d.but my linux mechine could not able to print through widows xp.i followed all steps but i could't print….
please anybody tel solution

September 15, 2011

Andy @ 3:33 am #

What worked for me was unchecking the 'bidirectional print' on the Windows side, and setting the Samba Printer to print greyscale. I think when it tried to print colour it came up against an empty colour cartridge and just printed nothing, although the head moved as if it was printing.

Leave a Comment

Fields marked by an asterisk (*) are required.

Subscribe without commenting