Open curiousercreative opened 3 years ago
It is rather simple isn't it? As far as gnome integrated solutions go, Nautilus can create network shares (via samba) that give you more granular control over what is shared and to whom. Its not as straight forward as the integrated sharing feature and requires a bit more familiarity with the system which may be why we didn't add it to the document. I'll see how support and QA feel about adding more sharing options.
@bflanagin I'm not familiar with setting up shares via Nautilus, I'll look forward to some references or additional documentation. Sounds promising to address this concern. FWIW, the webDAV server performance was quite good out of the box, saturated a 1GbE between two pop machines.
@curiousercreative
We're considering the addition but want to make sure the solution meets our standards, and right now its a little iffy. So if you have some time please run these commands and let us know the results.
sudo apt install nautilus-share samba
sudo usermod -aG sambashare $USER
Give you system a reboot to make sure everything is running.
Once your logged in open your file manager and right click on any folder. You should see a "Local Network Share" option.
Clicking on that option will allow you to setup the share and its permissions.
On my test computer I can see the host where the share was configured, however I cannot access it by clicking on it. Image for reference:
I can manually, go to the share by putting in the entire URL of the share in my case smb://hostname/foldername.
Oddly this isn't always the case.
If you could report back your findings maybe it will help us figure out what the issue is, and more importantly what the fix might be.
Cool, thanks for this. I'll give it a whirl a bit later. I could be mistaken, but I believe the error you're seeing is a result of the SMB server not allowing guest login and/or share listing/browsing. I have one SMB server here where I can click through nautilus and see a share list without error (but unfortunately, I'm never prompted or given the option to authenticate as a user) while other SMB servers here show that same error.
After following these instructions, here are my findings:
net usershare' returned error 255: net usershare add: share name curiouser is already a valid system user name
smbpasswd -a "$user"
, all is well. Minimal configuration modifications also shares home directories, fully satisfying my most common use case without the need for nautilus-share
GUI.@bflanagin with the above, I might suggest we document three file sharing methods that can be mixed and matched:
An after thought, we could also document NFS shares as an advanced option. I've got a 10GbE link to an old Mac Pro NAS that I had NFS on as that was by far the highest performing option I found and combined with automounting was the most seamless experience in Nautilus.
From my past experience (macOS), SMB is preinstalled and is entirely managed with a GUI (System Preferences > Sharing > File Sharing). If you enable file sharing, user home directories are shared automatically with unix users synced. From this same system preference GUI, you can create arbitrary shares (such as non-boot disks that are direct-attached to the system)
The time is coming where I'll be running an NFS server on my Pop!_OS 21.04 Desktop, so if anyone has some links that may be helpful, I may synthesize those into some Pop!_OS specific documentation (after I get it working of course).
We are looking into options for an article on networked storage and/or transferring files between devices on the same network.
Some of the software we are considering are:
Not sure how far down the rabbit hole we want to go with fileshare, but for file server suggestions:
That all sounds pretty good. Might be a stretch goal, but I'd appreciate performance tuning recommendations or resources linked for each method. 10GbE+
While these instructions work, having only a single public folder shared and only via dav protocol leaves a lot to be desired. Are there any gnome options that create multiple SMB shares with user permissions for example?