For sharing a local printer connected with Ubuntu os in the windows network we need to setup a samba server.For this first install samba in our server linux system.
apt-get install samba
apt-get install samba-common
apt-get install smbclient
apt-get install smbfs
edit the file smb.conf
sudo vim /etc/samba/smb.conf
[printers]
comment = All Printers
browseable = yes
path = /tmp
printable = yes
public = yes
writable = yes
create mode = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
To define SAMBA network users for your Ubuntu system, you may use the smbpasswd command.
smbpasswd -a bipin
where “bipin” is a user in the samba server
restart samba
sudo /etc/init.d/samba restart
Enjoy Printing!!!!!!
