Score:0

XRDP or any other remote desktop solution loads a different session

ml flag

I have been trying to connect to my VM via browser and MS RDP MacOS app since it is optimized for M1 MacBook.

Whenever I use XRDP or ThinLinc they seem to load GNOME session and not the Ubuntu themed version.

Also, restart and turn off button are locked and I have to go to terminal and sudo reboot.

ThinLinc connects perfectly and then it doesn't load Firefox. And a different session and desktop environment like XRDP.

Could you please point me to the right direction?

Score:0
pk flag

Answering from the ThinLinc perspective here.

Thinlinc ships with a few different default profiles (That are defined in /opt/thinlinc/etc/conf.d/profiles.hconf).

If multiple desktop environments are installed on your system, it will display a list of available ones upon log on, and let you choose which one to use.

If it's missing an environment that you know that is installed, you will have to edit said file, and add a correct xdg_session= for it to start from. You can have a look at what the system believes are installed in /usr/share/xsessions

Regarding Firefox. This is an issue in Ubuntu's Firefox snap package (at least since 20.04) where $XAUTHORITY handling seems to be a bit broken, which results in not being able to display on remote displays. You could for another browser, or remove the snap version of firefox and install it manually.

See https://community.thinlinc.com/t/thinlinc-on-ubuntu-22-04-refuses-to-open-snap-apps-saying-cannot-open-display/401/4 for more information.

About restart / power off, this is likely PolKit blocking access since your session is remote and not local. There are ways around it, but it requires you to enable debug logging on PolKit to catch what rules are blocking, and then writing your policy to allow for this.

Sam Bahman avatar
ml flag
You are a life saver, I changed ubuntu to fedora 37 and my gosh everything is working with thinlinc, including firefox, and everything else seems to be stable. Just something that is bugging my mind that I can't find an answer to is that why things are different in remote mode? For example, the apps that I have install don't appear in "installed" tab when I'm remote. Or some setting have be redone because they are different in remote. This seems to be the issue with any remote access solution.
Martin Östlund avatar
pk flag
I'm not really sure what the "installed tab" is in this context, could you elaborate? Any local configurations that is stored in your $HOME/.local|.config etc,. would be available independent of being a local or remote session. One thing that is a major difference between a local console login and through ThinLinc, is that ThinLinc ships with it's own X server (Xvnc), so any configuration related to that would be different. Perhaps if you're running a Wayland session locally, that would store things differently?
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.