sudo apt-get update sudo apt-get install samba samba-common-bin (press Y)editing samba config file:
sudo nano /etc/samba/smb.confFind line with wins "support = no" and change to "wins support = yes" In the end of the file paste the following definitions. We are sharing two volumes "home" and "media1". Home is smaller and files will be periodically backed up. media is larger but without redundancy.
[home] comment=Home path=/home/pi/mnt/home browseable=Yes writeable=Yes only guest=no create mask=0777 directory mask=0777 public=no [media1] comment=media1 path=/home/pi/mnt/media1 browseable=Yes writeable=Yes only guest=no create mask=0777 directory mask=0777 public=noGive a password for samba user pi
sudo smbpasswd -a pi