sudo apt-get install samba samba-common system-config-samba python-glade2
Here is what the above code is Doing:
1. sudo apt-get update – This updates the list of available packages and their versions, but it does not install or upgrade any packages.
2. sudo apt-get upgrade – This actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed. This will install some updates; Ubuntu won’t install every available update.
3. sudo apt-get install samba samba-common system-config-samba python-glade2 – This installs the Samba server and the Samba GUI.