Monday, September 30, 2013

[SOLVED] Share folders between Linux Mint computers

If you want to share a folder on a Mint machine, and to access it both from Windows and from Linux computer, you have to follow these simple steps:

INSTALLATION (on every Linux machine):
  • open a Terminal (CTRL+ALT+T)
  • install Samba:  sudo apt-get install samba
  • create a login to access shared folders:  sudo smbpasswd -a <whateverYouWant>  and insert a password for it when asked
FOLDER SHARING (on every Linux machine you want to share some folder of)
  • make a backup of the Samba configuration file on your home folder:  sudo cp /etc/samba/smb.conf ~
  • edit the configuration file:  sudo gedit /etc/samba/smb.conf
  • for every folder you want to share, append something like this at the very end of the file:
    [nameOfSharedFolder]
    path = /path/to/shared/folder
    available = yes
    valid users = theUserYouCreatedInTheStepAbove
    read only = no
    browsable=yes
    public = yes

    eventually changing the values on the right-hand side of the = sign, and the name in the square brackets.
  • if you want to share the folder with another linux machine, add this line just after the line starting with "workgroup = ...": name resolve order = bcast host lmhosts wins
  • save and close the text editor
  • restart Samba:  sudo service smbd restart
  • check that there are no errors:  sudo testparm
Wait some minutes and then everything should work. If you have other questions just post a comment, I'll answer as soon as possible.

No comments:

Post a Comment