For Windows XP and later clients, there is nothing to install.
For the Linux server:
sudo apt-get install samba
To define a share (in this example, the home folders), edit the /etc/samba/smb.cnf file:
Make home directories shared, browsable, read-write:
[homes] comment = Home Directories browseable = yes read only =no create mask = 0775 directory mask = 0775 valid users = %S
Define the password for a share user:
Reload Samba configuration:
sudo /etc/init.d/samba reload
We just saw the most basic capability of Samba.
Other things you can do: