I was recently asked how to share folders between two Linux PCs. I didn’t know off-hand but I said I’d look into it. To research this I’d need two Linux PCs, so I used my main Ubunto PC (Nostromo) as one and a VirtualBox PC running Ubuntu as the other. The virtual PC was called Sandbox. Sandbox was configured so that it and Nostromo were on the same network. They could ping one another.
As it turned out the process of setting up shared folders was nice and straightforward. I first created a folder on Nostromo called Nostromo. I right-clicked it and selected Sharing Options.
The Folder Sharing options dialog popped up. I selected the Share this folder option and then clicked the Create Share button.
I was prompted to install the Windows Network Sharing service. I typed in my root password and the files were downloaded and installed. I was then prompted to reboot.
The Nostromo folder now had a two way arrow icon on it, indicating it was shared.
I repeated this on Sandbox. I created a folder on Sandbox called Sandbox, and set up a share on that folder. I had to go through the same steps as above, and then reboot. That folder now showed a hand icon, showing that it was shared. The visual differences in the UI and in the sharing symbols is because Sandbox wasn’t running the Unity interface.
I highlighted the Network entry in the desktop browser on Sandbox and saw that the Nostromo PC and the Sandbox PC were both listed in the network window.
I double clicked on the Nostromo computer icon and the display changed to show the shares that were available on the Nostromo computer.
The Nostromo folder was listed (but without the capital N for some reason). When I double-clicked it to open it I was prompted for the login details of an account on Nostromo that had permission to access this file. Because the folder I had shared was in my home folder I entered my normal user details for Nostromo. (If I had clicked the Guest Access option in the Folder Sharing dialog I wouldn’t have had to do this step.)
I saw that the test file I had placed in that folder on Nostromo was visible and accessible from Sandbox.
And that was that.