Hi there
I’m struggling with ThinLinc server running on a virtual Ubuntu machine. Some people asked me for help because they wanted to install ThinLinc on Ubuntu (I’m an openSUSE user) and then I installed a virtual Ubuntu 22.04 machine (using kvm/qemu) and installed ThinLinc server on it.
First problem was that “Click to Install.desktop” did not work, I had to manually run ./install-server script from the terminal (maybe one thing that the Ubuntu users were missing). But ok, installed it, ran tl-setup and everything seemed to be OK.
Then, I started ThinLinc client from the host machine, connected to the virtual Ubuntu machine. Firefox did not start, neither other software that were installed through SNAP (it seems that Ubuntu decided that many software should not come from the distro’s repo anymore, instead, they should be now installed from the snap store, along with everything that they would need).
Running firefox from the command says: “Error: cannot open display: :10” And so does snap-store and any other program installed from snap.
I’ve searched the internet and found some bug reports: It seems that systems that use wayland by default won’t open software installed through snap on a Xorg session. Here are some links:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1965113
https://www.reddit.com/r/Ubuntu/comments/qrwio0/cannot_open_display_0_for_firefox_and_snap_store/
Unfortunately, I couldn’t see any workaround… Some people suggested a simple reboot, some people suggested that it only occurs if you enter a wayland session, then start a xorg session, some people reinstalled snapd… but in my case, none have worked. I also tried to clear all snap related config from the user, tried to create a new user, tried to change from gdm3 to lightdm, tried to disable wayland, tried to use a xfce session…
So, I’ve seen this video here https://www.youtube.com/watch?v=9prhMCiURyg and his firefox is working under ThinLinc…
So, is there any suggestion? If you could try to reproduce it, I just followed these steps here:
- Install Ubuntu 22.04 (and updates until 13/july/2022) (VirtualMachine using virt-manager kvm/qemu)
- Install openssh-server
- Install ThinLinc server 4.14.0
- Connect from the host directly to the VM’s IP using both ThinLinc client or using web client
- Everything that is not from snap works, snap softwares claim that they can’t open display.
It seems like a known bug involving snap software, wayland and remote access/xorg, but why people could workaround (or got it working straight from the installation) and I couldn’t?
If you need more details, please, let me know.