Score:0

How can I activate sharing on Xubuntu 22?

US flag

I recently installed Xubuntu 22 on an old iMac. Most things are working out well. However, there doesn't seem to be any way for me to share folders from my Xubuntu installation with any other computers on my LAN. I have searched for answers but can only see the instruction to right-click on the Public Folder and from the menu select Share This Folder or Create Share for this folder. No such commands exists on my menu. Curiously Xubuntu can see all my other shared devices when I select Browse Network. The LAN seems to only work in one direction. I've had a little experience with Linux a few years ago but I'm very out of practice. I'd appreciate if somebody could shed some light on my dilemma?

guiverc avatar
cn flag
Please clarify your OS/release, Ubuntu's main products are *year.month* in format, with only specialist *snap* only products using the *year* format. Xubuntu is a desktop system, thus supports only the *year.month* products, with 22.04 & 22.10 releases in 2022. Are you using Xubuntu 22.04 LTS or Xubuntu 22.10 as there is no *snap* only Xubuntu 22 release.
David avatar
cn flag
Suggest some research into SMB.
Score:1
es flag

What you are describing is called a Samba Usershare. Gnome, KDE, MATE ( with the addition of a package ), and Cinnamon have such capabilities. XFCE does not. You will have to create a classic samba share instead.

The following is an example of how I ( morbius ) would create a guest accessible share of my Public folder:

Install samba:

sudo apt install samba

Edit /etc/samba/smb.conf and at the end of the file add a "share defintion" to the Public folder:

[Public]
path = /home/morbius/Public
read only = No
guest ok = yes
force user = morbius

Then restart the samba daemon:

sudo service smbd restart

A MacOS client will be able to discover this server and it's share by default.

If you want to be able to discover this server and it's share from Win10/11 add another package:

sudo apt install wsdd

Discovering then accessing this share from another Linux client will be an issue. Not sure what else is on your network so I don't know if you have any Linux clients.

You could ether state the server and it's share from the Linux file manager. Something like:

smb://xubuntu-host-name.local/public

Don't forget to add the .local part at the end of the host name.

Or do a CIFS mount which I can explain if needed.

Chas de Mont avatar
md
Thank you for this, so far so good. How should I edit the read only smb.conf? Should I change the file permission? Edit from within the Terminal with VIM? Create a new smb.conf?
Morbius1 avatar
es flag
To edit smb.conf with mousepad run this in a terminal: `pkexec mousepad /etc/samba/smb.conf`
Chas de Mont avatar
md
Thank you, this worked for me.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.