-   Linux - Networking (
-   -   Printing to linux from XP (

Madd the Sane 01-26-2007 02:29 PM

Printing to linux from XP
I have an openSuSE 10.2 box and I want to print from a Windows XP computer to that computer, but whenever I try to do so, it says that it can't find it or something. Also, when I try to use

, it says that it couldn't copy the Windows 2000 Drivers. Help would be appreciated.

xjlittle 01-26-2007 07:54 PM

Make an entry in the hosts file on the windows machine or use the ip address to connect to it.

See the man page for cupsaddsmb on how to use the command at

Madd the Sane 01-26-2007 10:42 PM

I should have been more specific, probably. I'm able to see the computer and printer in network neighborhood, so I doubt that's the issue

glorsplitz 01-26-2007 11:23 PM worked for me

Electro 01-26-2007 11:42 PM

To print from Windows 2000/XP when the printer is attached to a computer running Linux.
1) Download CUPS for Windows
2) Share the drivers using SAMBA but do not use printers or print$ to do this. Use a normal directory.
3) Make sure the printer is shared in CUPS
4) In Windows, go to the control panel and add a new printer.
5) In the add new printer dialog box, select the URL radio button.
6) In the text box type http://[IP_adress_of_CUPS_server]:631/printers/[printer_name]
7) When the driver dialog box shows up, select have disk.
8) Browse for CUPS for Windows driver that is shared through SAMBA.
9) Continue through a few messages about it is not digitally signed by Microsoft.
10) Change the properties of the printer so Windows does not spool it. Let CUPS spool, so your pages does not mix with other print jobs from other users.

In step 6, the IP address to the CUPS server can be changed to a name. You will have to edit the host file in Windows before adding the Linux printer.

I can never setup SAMBA to add the CUPS for Windows drivers to its database. People said that cupsaddsmb is the easiest to use. That is loads of bull. The stupid utility cupsaddsmb uses rpcclient and it said it should work, but it does not. I tried several times with the correct syntax, but the utility does not work at all. DAM SAMBA developers using proprietary database files that can not be edited easily.

My way is the easiest and it can be setup for multiple printers very easily with out the need for SAMBA. Also it is possible to print securely over the internet using SSL or https. Printing directly to CUPS is less over head and safer.

Madd the Sane 02-10-2007 08:27 PM

That hint didn't help. Cups spins its wheels for a while, then the job disappears. If it helps any, the page amount is always unknown. :confused:

Electro 02-10-2007 10:13 PM

If your cupsd.conf is correct it should work unless you did something wrong installing the Windows driver.

Set LogLevel to either debug or debug2 in cupsd.conf.

Madd the Sane 02-10-2007 10:55 PM

Okay, here's my log of printing one item: See if you can make heads or tails of it.


A lot of unneeded code...

Madd the Sane 02-16-2007 05:41 PM

Nevermind, It was on the Linux Server. However, I can't print to color on it remotely. I fixed it by changing the driver to MS Publisher color. This makes me think that it's a bug with the CUPS drivers…

Madd the Sane 02-16-2007 05:57 PM

Or not. :( Next Question: Why is my printer printing in Black and white? It's capable of printing in color.

All times are GMT -5. The time now is 09:41 PM.