Samba is an open source software suite which provides file and print services. This can be installed using a few commands, or using our installation script at the bottom of this post.
The first thing that you need to do is install the Samba and samba-common packages.
sudo apt-get install samba samba-common
You will then want to make sure that python-glade2 is installed.
sudo apt-get install python-glade2
After that, you will want to install the Samba configuration tool.
sudo apt-get install system-config-samba
You then need to add a user account for the Samba user. You can use any name you would like.
sudo useradd sambauser
You will also want to create a user for you to log into your Samba server when you connect.
sudo smbpasswd -a sambauser
You will also want to run the Samba Configuration tool to set up the folders that you want to share. You can find that in your system’s app tray or you can start it by using the following command.
You are also able to download the installation script we created to help you automate installing that. This was tested on Ubuntu 12.04, so I cannot guarantee that it will work on anything but that. If you need it to work on your OS, let us know what you’re using and we’ll get a script set up for it.
Download the installation script here:
You need to make the permissions for this executable (something like chmod 755 installsamba.sh), then run:
Let us know how it works for you! If you like it and it helps you, feel free to share!
If you would like to see the source code for that, you can see it here:
Chris June 5th, 2012
Posted In: How To