PDA

View Full Version : [ubuntu] Printing to Windows shared printer from Ubuntu



lsutiger
May 15th, 2008, 10:22 PM
I have search the forum for a while and could not find a definate answer to my question.
My coworker and I share a printer that is connected to his Windows XP box. I finally had enough of the wacky things windows was doing to me so I had a Ubuntu Box I had been working on for some time and decided to make that my workstation. I am trying to connect to the printer on his computer. We are in a W2K3 domain, JFYI. When I go to System--> Administration-->Printing, click on new printer, Windows printer via SAMBA, Browse, I can see his computer but not the printer.

Is there something that we need to do on the XP side?

Thanx in advance!

bill516
May 15th, 2008, 11:12 PM
Hmmm, I just got done wrestling with this very same little bear on my home network, admittedly a simpler environment than yours might be.

Two things to check:

Make certain that on the XP side the printer has been marked for sharing. If it has not you will not see it.

If the windows firewall on the XP machine(or some other for that matter) is on, turn it off briefly for testing purposes.

I doubt this last is the culprit, partly because Windows firewall should allow sharing and partly because you can see the XP machine.

But worth a check, perhaps.

lsutiger
May 16th, 2008, 09:00 PM
Firewall is not on. Printer is definitely shared.

Not much information about this subject out there.

avtolle
May 16th, 2008, 09:22 PM
https://help.ubuntu.com/community/WindowsXPPrinter worked for me. Hope this helps you.

cb951303
May 16th, 2008, 09:37 PM
BTW there has been some bug in accessing windows computers in 8.04
unfortunately using winxp computer name to access shared folders and printers does not work. in printer configuration try something like this


smb://XXX.XXX.XXX.XXX/printer_name

where XXX.XXX.XXX.XXX is the local IP address of the windows machine, it worked for me

lsutiger
May 16th, 2008, 10:13 PM
Thanx for the input, but no dice on using the IP.

I did a lil troubleshooting. The computers that are logged on to the domain are the ones where I can not see the printer.
Anybody have a solution for this?

cb951303
May 17th, 2008, 10:48 AM
that may not be related but did you try adding yourself to the "sambashare" group?

lsutiger
May 20th, 2008, 03:40 PM
Thanx for the advice. Now it has gotten worse!

I added myself to the samba group. Now when I go to Printers-->New Printer, Select Windows printer via Samba, I see the domain, but now it shows only my computer on the domain.
Wow!

cb951303
May 21st, 2008, 07:49 AM
Thanx for the advice. Now it has gotten worse!

I added myself to the samba group. Now when I go to Printers-->New Printer, Select Windows printer via Samba, I see the domain, but now it shows only my computer on the domain.
Wow!

as I said earlier don't try to connect via domains but try IP addresses instead

lsutiger
May 21st, 2008, 02:53 PM
Thanx, but IP doesn't work either. Attached is the screenshot of the printer config. The name of the printer is exactly as it is on that computer.

Mudre
May 21st, 2008, 04:35 PM
I kind of have the same problem. I'm a newbie on linux (not on computers in general), and just installed Hardy Heron on my workstation.

Shared printer on XP-box on LAN.
I have Samba up and running ok i think. Can connect to the network, see other Windows comps and access their shared folders no problem.
Trying to add printer from the System-> Administration -> Printing menu, select New Printer -> Windows printer via SAMBA, browse, it finds the XP-box, and it finds the printer too, no problem.
Except it does_not_print..! Printer is a Canon multifunction MF5700 series, which is supposedly unsupported under Linux. Have tried the first 10 other drivers, but absolutely nothing happens. The printer is shared ok (others can access it from win-boxes), no firewall blocking, Bidirectional Talk turned off. Using IP-address instead of //Domain/Computername/ doesn't help.

Any ideas??

lsutiger
May 22nd, 2008, 08:03 PM
OK..I can now print a test page. But no other application can I print from!
Now this is freaky-deaky....What should I do?

While doing stuff today, I went back and tried to print something from Gedit. In the print dialog box this was listed under status:
/usr/lib/cups/backend/smb failed

Another clue on what may fix the problem?

cb951303
May 23rd, 2008, 02:55 PM
Thanx, but IP doesn't work either. Attached is the screenshot of the printer config. The name of the printer is exactly as it is on that computer.

can you try with "smb://" instead of "smb:///"

lsutiger
May 30th, 2008, 03:30 AM
Since we are in a domain, I tried smb://<domain>/i.p.a.dress/<name of printer>

Works like a charm. Thanx for all of your posts!

Hey Mudre, any luck?

lsutiger
May 30th, 2008, 09:14 PM
AARRGGHH!!!
I was trying to ge the pdf file generator working (cups-pdf). I followed the advice from this thred (http://ubuntuforums.org/showthread.php?t=801187&page=2). After that, I was no longer able to print to the windows shared printer. The previous post instructed to completely remove cups-pdf and ghostscript, the reinstall in the reverse order. I did notice that when I removed ghostscript, there were a lot more packages removed than what was reinstalled.

Any clues?

lsutiger
June 1st, 2008, 06:12 PM
??

lsutiger
June 3rd, 2008, 06:31 PM
After a large update I did today, I am able to print a test page again, but can not print from any application....again!

Any clues??

LaneLester
June 8th, 2008, 08:49 PM
BTW there has been some bug in accessing windows computers in 8.04
unfortunately using winxp computer name to access shared folders and printers does not work. in printer configuration try something like this


smb://XXX.XXX.XXX.XXX/printer_name

where XXX.XXX.XXX.XXX is the local IP address of the windows machine, it worked for me

That just worked for me in connecting Xubuntu 8.04 to a printer on a Vista machine. I did not have to add myself to sambausers.

I prefer to set up printers with Firefox pointed to http://localhost:631/

Lane