Showing posts with label shared folder. Show all posts
Showing posts with label shared folder. Show all posts

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.

Friday, February 18, 2011

Ubuntu: sharing folders with Windows

These simple steps are taken from the Ubuntu Official Documentation:
  1. Press Applications → Accessories → Terminal to open a Terminal.
  2. Type shares-admin and press Enter to open Shared Folders.
  3. You may receive a message which says Sharing services are not installed. If this happens, ensure that the two checkboxes in the message box are checked and press Install services. Sharing service support will then be downloaded and installed; this may take a while.
  4. Press the  button and enter your password in the Password field.
  5. Press the Authenticate button.
  6. Select the Shared Folders tab and press Add.
  7. Select the location of the folder you wish to share by changing the Path option.
  8. Choose Windows networks (SMB) from the Share through option.
  9. Enter a name and comment for the shared folder.
  10. If you would like people accessing the shared folder to be able to add, change and remove files in the folder, uncheck Read only. If you leave Read only checked, people will only be able to view files in the folder.
  11. Press Share to make the shared folder available. Other people on the same network (LAN) as you should now be able to access the folder.
Maybe the Windows pc has to be restarted...