NetworkPrintingFromWinXP

Differences between revisions 11 and 12
Revision 11 as of 2006-02-17 22:26:41
Size: 1827
Editor: 66
Comment: formatting
Revision 12 as of 2006-02-17 22:52:43
Size: 1826
Editor: 66
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
{{{sudo gedit /etc/cups/cupsd.conf}}} {{{
sudo gedit /etc/cups/cupsd.conf
}}}
Line 23: Line 25:
Line 25: Line 26:
Line 31: Line 31:
Line 33: Line 32:
Line 36: Line 34:
5) Save the file and exit the editor. Now restart the printing system. Type the following:
{{{
5) Save the file and exit the editor. Now restart the printing system. Type the following:  {{{
Line 41: Line 38:
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: 6) Now add the printer to the Windows client by using the Windows "Add Printer" Wizard. Type in the following in the printer URL:
Line 43: Line 40:
127.0.0.1 localhost
192.168.1.100 printer-server
http://192.168.0.100:631/printers/Deskjet-940C
}}}
Replace "192.168.0.100" with the IP adress of the Ubuntu box.
Replace "Deskjet-940C" with your printer's name.

If you add this entry to C:\WINDOWS\system32\drivers\etc\hosts
{{{
192.168.0.100 printer-server
}}}, replacing "192.168.0.100" with the IP adress of the Ubuntu box, then you can use a URL like {{{
http://printer-server:631/printers/Deskjet-940C
Line 47: Line 52:
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 "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

By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP and Windows 2000 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) Now add the printer to the Windows client by using the Windows "Add Printer" Wizard. Type in the following in the printer URL:

http://192.168.0.100:631/printers/Deskjet-940C

Replace "192.168.0.100" with the IP adress of the Ubuntu box. Replace "Deskjet-940C" with your printer's name.

If you add this entry to C:\WINDOWS\system32\drivers\etc\hosts

192.168.0.100   printer-server

, replacing "192.168.0.100" with the IP adress of the Ubuntu box, then you can use a URL like

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

CategoryDocumentation CategoryCleanup

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