1. Install samba and smbfs
  2. Make folder /mnt/share
  3. Make file /etc/cifspw and fill it with username= and password=
  4. $ sudo chmod 600 /etc/cifspw
  5. Edit /etc/fstab: //ip/share /mnt/share cifs exec,credentials=/etc/cifspw 0 0
  6. $ sudo mount -a