What powers Files' Samba share and Remote Desktop in Zorin?

I'm trying to replicate two features from Zorin on Ubuntu, and I would really appreciate some help figuring out what they are.

Samba share on Files

I love that Zorin OS makes it super easy to share a folder on the network in the context menu.

I know how to do it the manual way, but what method is used to add this GUI?

Remote Desktop that allows VNC
Ubuntu also has built-in remote desktop support, but I found it doesn't support the legacy (VNC) protocol, so I can't connect to it from a Mac without third-party tools.

On the other hand, Zorin has something different that allows legacy/VNC protocol, and it works really well out of the box.

What is used for this?

I ran apt list --installed but it's too long to figure out what exactly powers these two features. Hopefully, someone already knows about them. :smiley:

Nautilus (the file manager, "Files") implements this functionality through a package extension called nautilus-share. You can probably install it for Ubuntu as well.

I'm not sure about RPC, but I don' think that's something that Nautilus provides, and is integrated with the gnome shell.

You can pipe the output of a command to another to do things like:

apt list -i | grep nautilus

grep will search for the text provided in the output of the apt list -i command (-i is shorthand for --installed):

gir1.2-nautilus-3.0/jammy-updates,now 1:42.6-0ubuntu1 amd64 [installed,automatic]
libnautilus-extension1a/jammy-updates,now 1:42.6-0ubuntu1 amd64 [installed,automatic]
nautilus-data/jammy-updates,jammy-updates,now 1:42.6-0ubuntu1 all [installed,automatic]
nautilus-extension-brasero/jammy,now 3.12.3-1 amd64 [installed,automatic]
nautilus-extension-gnome-terminal/jammy,now 3.44.0-1ubuntu1 amd64 [installed,automatic]
nautilus-sendto/jammy,now 3.8.6-4 amd64 [installed,automatic]
nautilus-share/jammy,now 0.7.3-2ubuntu6 amd64 [installed,automatic]
nautilus/jammy-updates,now 1:42.6-0ubuntu1 amd64 [installed,automatic]
python3-nautilus/jammy,now 1.2.3-3.1build1 amd64 [installed,automatic]
2 Likes

Thanks! I'll try this and see if it shows up on Ubuntu.

I'm not sure about RPC, but I don' think that's something that Nautilus provides, and is integrated with the gnome shell.

Ubuntu also has a remote desktop setting, but it only uses RDP protocol. I tried looking for something that starts with remote :stuck_out_tongue: but didn't figure out what package is enabling VNC features in Zorin. (The remote desktop settings is also different with different options compared to what's on vanilla Ubuntu -- which might be coming from default Gnome shell?)

@zenzen comes in clutch once again with the commands!

i will be replacing that with apt list -i. thank you sir :heart:

i believe zenzen was sent from mars to bless us all with linux knowledge.

5 Likes

After typing that kind of command many times you start looking for shortcuts everywhere :smiley:

I see that on Zorin OS there's libvncserver installed. Maybe that enables the extra options in the remote desktops settings once Gnome detects it's installed?

I'll try installing libvncserver and report back. Hopefully, that's it!

As far as I can remember, Zorin has always included the cross-platform remote desktop application Remmina. It is what I used to access a shared drive on a works server when I was working from home. Before implementing Remmina, I would have to go into VM of Windows, put the secure website into Edge then login 3 times to get where I wanted to be ... just once in Remmina!

I believe Remmina is a client that's used for remote desktoping into other desktops. I'm mainly looking for what's used on the server side (libvncserver sounds like it might be it).

Okay, so I installed nautilus-sharing which added a (slightly different worded) context menu, Sharing Options. However, I can't share a folder using it. It throws the following error:

'net userhsare' returned error 255:net usershare: cannot open usershare directory /var/lib/samba/usershares.
Error Permission Denied
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share. 

Slightly annoying since it works without any special privileges on Zorin OS.

Also, libvncserver couldn't be found when I tried sudo apt install libvncserver. Do I need to add any Zorin-specific repository first?

I guess this could be an issue with the permissions. Try:

sudo usermod -aG sambashare $USER

You might need to log out, and log back in. And see if that works.

I don't think so, the one from the Ubuntu repos should work fine (especially if you are already on Ubuntu 24.04). It's possible something else needs to be enabled somewhere to make this setting available...

1 Like

See if NFS works better for you.