NetworkPrintingFromWinXP

Differences between revisions 7 and 8
Revision 7 as of 2005-08-07 04:37:48
Size: 1309
Editor: S0106000000cc07fc
Comment: add category documentation, cleanup
Revision 8 as of 2006-01-10 14:53:34
Size: 1692
Editor: gw
Comment: Rewrote language, but not checked if the guide actually works
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Greetings: 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:
Mixing Ubuntu and Windows, I was able to "Network Print" from a from a Windows XP box to an Ubuntu Workstation (local printer) by trying the following 5 steps: (these directions are slightly adapted from the FrequentlyAskedQuestions page). 1) Install the printer on the Ubuntu box by using the printer wizard.
Line 5: Line 5:
1) Use the ubuntu "printing" wizard to add the local printer to your Ubuntu Workstation. 2) Open a terminal
Line 7: Line 7:
2)modify /etc/cups/cupsd.conf (you only need to modify the top level (first) Location tag because other Location tags seem to inherit permissions) 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
Allow From 192.168.1.*
#Modify 192.168.0.* to match your configuration.
Allow From 192.168.0.*
Line 17: Line 20:
 also set the port to listen on all interfaces (you might want to network through serial cables :( Also set which TCP port that the printer system will accept connections on. Add this line to the top of the file:
Line 19: Line 23:
#Port 80
#Port 443
Line 22: Line 25:
#
#Listen 127.0.0.1:631
Line 26: Line 28:
3) restart the cups daemon 5) Save the file and exit the editor. Now restart the printing system. Type the following:
Line 31: Line 33:
4)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 37: Line 39:
5)add the printer using the Windows XP "add printer" wizard and use the following url for the network connection 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:
Line 41: Line 44:
Replace "DeskJet-940C" with your printer's name

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 to the top of the file:

 Port 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   ubuntu

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://ubuntu: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)