File and Folder Sharing with 24.04

I am currently setting up 24.04. I am looking for recommendation to set up file sharing. I think with 20.04 I simply installed samba and enabled caja share. But now with Snaps do I do something different? In the app store I see a Snap package “Samba4-Manager” and a Debian “Samba FileSharing Plugin”. Are these what are recommended now or should I go the old fashioned way with :

sudo apt install samba
sudo apt install caja-share

1 Like

'ssh' is the recommended tool for file sharing.

Only use samba (SMB) if you are condemned to communicate with windows computers. And even then try to avoid it if you can.

spare yourself a lot of pain down the road and use ssh for everything.
ssh is rock solid, secure and is standard on every operating system (except windows)

If you have to communicate with windows, install 'winscp' on that computer so it also can talk ssh.

Really, windows is the odd one out there and should comply with the rest instead of the other way around.

EDIT: the ssh-client is installed by default so you can use it immediately to access files on another computer.
You probably also want to have it the other way around, so the only thing you have to do for that is : sudo apt install openssh-server

5 Likes

You do not specify file sharing direction.
If you want to access files stored on your UM system, then I'd strongly second @tkn suggestion.
If you want to access Windows (SMB) shares from your UM system, then everything is in place and works out of the box. Just open Caja, select File > Connect to server... menu entry and specify proper details

Do I get it right that your previous solution no longer works?

3 Likes

I totally agree. The only way I will communicate with a Windows computer is a USB drive. Even then I have to clean up the USB drive of system volume restore and all kinds of system init. It also always tells you your USB drive is corrupted because you don't have that Windows junk on the drive.

3 Likes

Thanks for all the replies. I will look at openssh-server What I am trying to do is have a directory on my main Ubuntu Mate PC that I can share with other Ubuntu PCs, and Android devices in a GUI environment

1 Like

No, I haven't tried anything yet in 24.04. My 20.04 build everything works great, I was just inquiring if the installation is different now since the push for SNAP.

1 Like

Great! SSH will do. Caja's 'connect to server' command nicely mounts remote filesystem via ssh using GUI.
BTW, such a connection can be saves as a bookmark in Caja.

2 Likes

Another solution is to use SimpleHTTPServer a python command that temporarily invokes a server that you can access through a browser. You get a basic file tree and can open or download any file in the directory.

This is handy since you don't need to give a user and password to work. Once the file(s) are moved you can close the program and it's over, no more access to your computer. It's an easy way to share files with friends on the same network.

It's been a while since I used it and changes have been made with the newer versions of python so you'll have to look it up if you want to know more.

2 Likes

Share with windows : use samba
Without windows : use NFS
I dev a gui app to setup NFS easily, take a look in my github.
Personally, with machine in same house, after years, I prefer use USB drive to share data.

1 Like

Thanks. I will look at NFS. I would be interested in your gui app. Not sure I saw the right Philippe unless you are the Google developer. Also, I don't think sharing a USB drive would work unless it was part of a sudo NAS somehow. I was thinking of a mini PC with a with a USB drive a while ago.

Oh, yes sorry, take a look in my profile here.

1 Like

It is like saying ''Americans are the odd ones out there with their inches and Fahrenheit... should comply with the rest instead of the other way around''
Try to explain that to some of them....

Ok. Ok. Off topic. I know... hit on me.
But couldn't refrain that one...
:joy:

W

2 Likes