Ubuntu Printer Sharing With Windows XP Client



Before we assume that the printer is running on Ubuntu. Sharing that printer can be accessed using a Windows machine as the client can use Samba. So for the first time we first check whether samba package already installed on the system.

$ sudo apt-cache search samba

If you already installed it will appear:

$ samba - a LanManager-like file and printer server for Unix
$ samba-common - Samba common files used by both the server and the client
$ samba-dbg - Samba debugging symbols
$ samba-doc - Samba documentation
$ samba-doc-pdf - Samba documentation (PDF format)
$ smbclient - a LanManager-like simple client for Unix
$ smbfs - mount and umount commands for the smbfs (for kernels> = than 2.2.x)

if not installed use the command:

$ sudo apt-get install samba smbfs

When the can is already installed, be directly edit the file /etc/samba/smb.conf:


$ sudo gedit /etc/samba/smb.conf

edit or add the following line:


# add in the [General]:
printcap name = cups
printing = cups
security = share

# Add in the [printers]:
[printers]
browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
path = /tmp

then save the changes and restart samba service with the command:


$ sudo /etc/init.d/samba restart


See the results from the Windows XP client with the addition of a printer, enter control panel/ printers/add the network printer. Browse the network printer. Then follow the steps to live as normal printer settings.

source:
http://linux.or.id/node/2964

Happy Testing...!!!

No comments:

Post a Comment

Please Comment...!!