Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm sure it might be a very easy way to do this, but I haven't found how... I have two machines with Ubuntu 10.10 on the same network (just workgroup, no domain involved). On one of them I have shared a folder through Nautilus Folder Sharing. When opening the Network place on the second machine, I cannot see the first one listed, just Windows Network and when going into this folder I can see the Workgroup though when trying to go into it I get an Unable to mount. Failed to retrieve share list from server error.

Is it required to do something else when sharing the folder through Nautilus?

share|improve this question
using smb://<machine name>/<share folder> from Run Application dialog, I can reach the shared location with Nautilus – Anero Dec 3 '10 at 23:10
1  

4 Answers

up vote 11 down vote accepted

Method 1:
You can use SAMBA for file sharing(but samba is mostly used to share files between linux and windows machines)

  • In terminal type the following gksudo gedit /etc/samba/smb.conf

  • Add the line usershare owner only = False to the [global] section.

  • Go to Places>>Computer.

  • Right click the folder you want to share and choose Sharing Options. alt text

  • Check the box that says Share this folder.

  • Write your share name and check the box that says Allow other people to write in this folder.

  • Now you should be able to see and access the shared folder from your network.

Method 2:
You can use Openssh run the following to install it,

sudo apt-get install openssh-server openssh-client

Now goto Places menu and choose Connect to Server

(In oneiric (11.10), click desktop and use the menu at the top: File --> Connect to Server)

alt text

  • In the Service type: Select SSH

  • In Server: give the IP address of the PC where the info is on.

  • In Port: give 22.

  • Now in Folder: Pick the folder you wish to share.

  • In User Name: give the username of the pc you are connected to.

  • Click Connect after that you will get a windows where you have to enter a password of the PC you are trying to connect to.

  • Now you have read/write permissions.

share|improve this answer
3  
Graphical programs should not be run with sudo. The correct way is to use kdesudo in KDE for running GUI programs as root, or gksu/gksudo in GNOME. Running graphical programs as root has the potential to cause serious issues, that is why the wrappers are provided. Read this Arch mailing list thread for a serious issue that you could encounter trying to trick sudo into launching a GUI mail-archive.com/arch@archlinux.org/msg04963.html – aneeshep Dec 4 '10 at 5:50
@aneeshep Thanks for the information :) – karthick87 Dec 4 '10 at 7:12
2  
I can't find Connect To Server in Ubuntu 11.04. Where is it – Benjamin May 8 '11 at 4:15
I am not sure where it is in ubuntu 11.04. I think you should rise a question :) – karthick87 May 8 '11 at 13:59
SSH are a much better solution than the old and clunky Samba. In 11.04 and further the "Connect to server..." menu have moved to Nautilus File-menu. – Anders Wallenquist Apr 23 '12 at 14:42

There are many ways to share files b/w two Linux systems. The most easy and common way is SSH.

Method 1: SSH

Install ssh on both systems.

sudo apt-get install openssh-server openssh-client

Then Go to 'Places' menu and select 'Connect to server'.

alt text

Method 2: use giver

Giver allows you to drag and drop files to users on your network. It will also automatically detect other Giver users on your network.

When you drag a file, or multiple files, to a user represented by an avatar on the Giver window, the files are automatically transferred. The recipient of the files is warned that a user wishes to send files. The user can accept or decline them.

To install giver in ubuntu: sudo apt-get install giver

share|improve this answer

Once you set up an SSH server on one machine, you can simply connect to the other one via Nautilus by typing sftp://192.168.1.3 (or whatever the actual IP number of the other machine is) in the location bar (invoked with CTRL-L).

share|improve this answer

if no Windows machines involved - only Linux, you can use NFS (more native for linux)

nfs shares

long story short:

on server: in /etc/exports you put the folders need to be exported

on the clients: mount the share (auto in /etc/fstab or manual- CLI or nautilus)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.