NetworkPrintingFromWinXP

Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2005-06-04 09:13:23
Size: 785
Editor: adsl-213-190-44-43
Comment: imported from the old wiki
Revision 9 as of 2006-01-29 19:00:30
Size: 1811
Editor: 161
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= NetworkPrintingFromWinXP = By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP clients can print to it.
Line 3: Line 3:
Greetings: 1) Install the printer on the Ubuntu box by using the printer wizard.
Line 5: Line 5:
I was able to connect to a printer from a Windows XP box to an Ubuntu server running CUPS (IPP) by doing the following three steps: (the [FrequentlyAskedQuestions] page seems to be missing step 3.) 2) Open a terminal
Line 7: Line 7:
1)modify /etc/cups/cupsd.conf (modify the / tag because the drilled(sub-tags) seem to be inherited) 3) Modify /etc/cups/cupsd.conf with your favourite editor (the following examples use gedit)
{{{sudo gedit /etc/cups/cupsd.conf}}}

4) In this file, edit the first <Location> tag to allow connections from your network. Assuming that your network use adresses starting with "192.168.0." you add the following: (you only need to modify the top level (first) Location tag because other Location tags seem to inherit permissions)
Line 13: Line 16:
#the line below allows access to the LAN subnet :) #Modify 192.168.0.* to match your configuration.
Line 17: Line 20:
Also set which TCP port that the printer system will accept connections on. Add this line under Network Options part of the file (somewhere around line 420):
Line 18: Line 22:
2) restart the cups daemon {{{

 Port 631

}}}

and comment out:

{{{

 Listen 127.0.0.1:631

}}}

5) Save the file and exit the editor. Now restart the printing system. Type the following:
Line 23: Line 41:
3)modify C:\WINDOWS\system32\drivers\etc\hosts (Win XP wont recognize the IP address so you need to map the ubuntu hostname to it.) 6)The printing system on the Ubuntu box should be set up by now. On your Windows client, modify the file C:\WINDOWS\system32\drivers\etc\hosts and add the following to it:
Line 26: Line 44:
192.168.1.100 ubuntu 192.168.1.100 printer-server
Line 28: Line 46:

Of course, replace "192.168.1.100" with the IP adress of the Ubuntu box.
7)Now add the printer to the Windows client by using the Windows XP "Add Printer" Wizard. Type in the following in the printer URL:
{{{
http://printer-server:631/printers/DeskJet-940C
}}}
Replace "DeskJet-940C" with your printer's name

CategoryDocumentation CategoryCleanup

By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP clients can print to it.

1) Install the printer on the Ubuntu box by using the printer wizard.

2) Open a terminal

3) Modify /etc/cups/cupsd.conf with your favourite editor (the following examples use gedit) sudo gedit /etc/cups/cupsd.conf

4) In this file, edit the first <Location> tag to allow connections from your network. Assuming that your network use adresses starting with "192.168.0." you add the following: (you only need to modify the top level (first) Location tag because other Location tags seem to inherit permissions)

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#Modify 192.168.0.* to match your configuration.
Allow From 192.168.0.*
</Location>

Also set which TCP port that the printer system will accept connections on. Add this line under Network Options part of the file (somewhere around line 420):

 Port 631

and comment out:

 Listen 127.0.0.1:631

5) Save the file and exit the editor. Now restart the printing system. Type the following:

sudo /etc/init.d/cupsys restart

6)The printing system on the Ubuntu box should be set up by now. On your Windows client, modify the file C:\WINDOWS\system32\drivers\etc\hosts and add the following to it:

127.0.0.1       localhost
192.168.1.100   printer-server

Of course, replace "192.168.1.100" with the IP adress of the Ubuntu box. 7)Now add the printer to the Windows client by using the Windows XP "Add Printer" Wizard. Type in the following in the printer URL:

http://printer-server:631/printers/DeskJet-940C

Replace "DeskJet-940C" with your printer's name

CategoryDocumentation CategoryCleanup

NetworkPrintingFromWinXP (last edited 2008-08-06 16:14:10 by localhost)