At the prompt enter the following command to install the SAMBA server applications:
sudo apt-get install samba
To mount Windows filesystems using SMB, you will also need smbfs. Enter the command:
sudo apt-get install smbfs