Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-06-20 09:34:37

Ravi
Member
Registered: 2020-05-18
Posts: 8

XRDP - How to set default session?

Hello. I have xubuntu-desktop + ubuntu 20.04  + gdm on Raspi. I use xrdp for remote access.
When I create a new user, I would like to control what session user logs into. Available session types are Ubuntu (gnome), xfce and xubuntu.
At the moment, when logging in for the first time using xrdp, user goes into xfce4
At the moment, if using gdm (i.e., in front of primary display), the default session for new user is Ubuntu/gnome.
There is no way to get into xubuntu unless the new user has logged in at least once using gdm on primary display and selected xubuntu [thereby make it default]


Towards that
- I've tried to set x-session-manager alternative to one of available session types.
- Tried to use .xsession per user  using following steps,
---  dpkg-reconfigure xserver-xorg-legacy [set it to 'anybody' ]
---  env -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS xfce4-session
None of these have been successful.

Is there way, as mentioned earlier, to choose session type without resorting to have to use gdm at least once?
Thanks.

Last edited by Ravi (2020-06-20 09:37:52)

Offline

#2 2020-06-21 09:01:51

Ravi
Member
Registered: 2020-05-18
Posts: 8

Re: XRDP - How to set default session?

Since there hasn't been any answer to above question, even in Stack Overflow, I thought I would rephrase the question.

There are two ways to get into X. Either through a display manager such as gdm or lightdm, or through rdp (vnc et at).
Using display manager it is easy to decide the session. However in rdp it doesn't appear to be the case that I am aware of.
So the question boils down to is, how to decide which session you get into - either through rdp settings or per-user settings or a system-wide setting?
Thx

Offline

#3 2020-06-21 11:11:43

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 395

Offline

#4 2021-01-13 23:57:52

roly
Member
Registered: 2021-01-13
Posts: 1

Re: XRDP - How to set default session?

I know this is a bit late, but leaving this for posterity.

I was also having issues with switching between desktop environments while using xRDP and the following worked for me. Run:

sudo update-alternatives --config x-session-manager

And you're given a choice between the currently installed ones. Something like:

There are 9 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).
  Selection    Path                      Priority   Status
------------------------------------------------------------
  0            /usr/bin/startlxde         50        auto mode
  1            /usr/bin/gnome-session     50        manual mode
  2            /usr/bin/lxsession         49        manual mode
  3            /usr/bin/mate-session      50        manual mode
  4            /usr/bin/openbox-session   40        manual mode
* 5            /usr/bin/startlxde         50        manual mode
  6            /usr/bin/startlxqt         50        manual mode
  7            /usr/bin/startplasma-x11   40        manual mode
  8            /usr/bin/startxfce4        50        manual mode
  9            /usr/bin/xfce4-session     40        manual mode
Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/lxsession to provide /usr/bin/x-session-manager (x-session-manager) in manual mode

[source + a bit more detail] https://thunderboltlaptop.com/install-x … s_for_xRDP

Last edited by roly (2021-12-21 13:17:28)

Offline

Board footer

Powered by FluxBB