Today I will show you how to set up a print server on Ubuntu 12.04 LTS using Samba. Samba is really good for sharing files and folders but it can also be used to share printers very easily too. This tutorial will work on both the desktop and server variants.
First thing is to install the packages we need – Samba and smbfs. So open up a terminal and type:
sudo apt-get install samba
Type your root password when prompted. Then install smbfs by typing:
sudo apt-get install smbfs
and then type your root password again.
We now have to configure the smb.conf file which contains all the samba settings. In a terminal type:
sudo nano /etc/samba/smb.conf
Locate the line WORKROUP = WORKGROUP and change it to the name of your network. So for instance mine would be changed to WORKGROUP = Ubuntu_home.
Save the file and exit.
We now need to restart the samba service so in a terminal type:
sudo service smbd restart
Now we have to check the configuration so far. In a terminal type:
If everything is configured correctly then you shouldn’t receive any error messages and your server is ready to go.
Install samba and smbfs either using the package manager or the terminal. We need to edit the Workgroup field in smb.conf to the name of your network (e.g Ubuntu_home). Restart the samba service and install your printer.
We have to change the workgroup to Ubuntu_home and then add your printer.
About the Author
Hi I am Chris Wakefield the owner of ComTech IT Support. I provide Windows and Linux based IT Support, laptop repairs and computer repairs to both business and personal clients in and around Stirling.
For a list of what I can offer you why not visit my website www.comtech247.net where you will find a list of my services, testimonials, blog and much more.