NetworkPrintingFromWinXP

Differences between revisions 15 and 16
Revision 15 as of 2006-06-15 18:32:50
Size: 1881
Editor: c-67-171-42-23
Comment:
Revision 16 as of 2006-06-15 19:45:05
Size: 2021
Editor: 66
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
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. By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP and Windows 2000 computers can print to it. This document has been tested with Ubuntu versions 5.10 and 6.06.
Line 3: Line 3:
1) Install the printer on the Ubuntu box by using the printer wizard. 1) Install the printer on the Ubuntu computer by using the printer wizard.
Line 5: Line 5:
2) Open a terminal 2) Open a terminal.
Line 7: Line 7:
3) Modify /etc/cups/cupsd.conf with your favourite editor (the following examples use gedit) 3) Modify /etc/cups/cupsd.conf with your favourite editor, for example
Line 9: Line 9:
sudo gedit /etc/cups/cupsd.conf
}}}
sudo gedit /etc/cups/cupsd.conf}}}
or
{{{
sudo nano -w /etc/cups/cupsd.conf}}}
Line 22: Line 24:
Also set which TCP port that the printer system will accept connections on. In Breezy add this line under Network Options part of the file (somewhere around line 420), or in Drapper add the following line to the ports.conf file: Also set which TCP port that the printer system will accept connections on.  In Ubuntu 5.10 (Breezy) add this line under the Network Options part of the file (somewhere around line 420), or in Ubuntu 6.06 (Dapper) add the following line to {{{/etc/cups/cups.d/ports.conf}}}:
Line 34: Line 36:
5) Save the file and exit the editor. Now restart the printing system. Type the following: {{{
sudo /etc/init.d/cupsys restart
}}}
5) Save the file and exit the editor. Now restart the printing system with this command: {{{
sudo /etc/init.d/cupsys restart}}}
Line 38: Line 39:
6) Now add the printer to the Windows client by using the Windows "Add Printer" Wizard. Type in the following in the printer URL: 6) Now add the printer to the Windows computer by using the Windows "Add Printer" Wizard. Type in the following in the printer URL:
Line 40: Line 41:
http://192.168.0.100:631/printers/Deskjet-940C
}}}
http://192.168.0.100:631/printers/Deskjet-940C}}}

By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP and Windows 2000 computers can print to it. This document has been tested with Ubuntu versions 5.10 and 6.06.

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

2) Open a terminal.

3) Modify /etc/cups/cupsd.conf with your favourite editor, for example

sudo gedit /etc/cups/cupsd.conf

or

sudo nano -w /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. In Ubuntu 5.10 (Breezy) add this line under the Network Options part of the file (somewhere around line 420), or in Ubuntu 6.06 (Dapper) add the following line to /etc/cups/cups.d/ports.conf:

 Port 631

and comment out:

 Listen 127.0.0.1:631

5) Save the file and exit the editor. Now restart the printing system with this command:

sudo /etc/init.d/cupsys restart

6) Now add the printer to the Windows computer 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

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