If you do not want to use the default desktop environment, you can customize it by creating a .Xclients file (X is capital!!!).

Do this in the home directory of the user your launching, for the desired desktop environment, making it executable.

In order to do this, open a terminal and run one of the following commands.

Gnome 3:

sudo echo “gnome-session” > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

Gnome Fallback:

sudo echo “gnome-fallback” > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

KDE:

sudo echo “startkde” > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

MATE:

sudo echo “mate-session” > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

Cinnamon:

sudo echo “cinnamon” > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

Xfce4:

sudo echo “startxfce4″ > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

An alternative to this is to modify the xrdp.conf file in your /etc/xrdp directory, comment out the ./XClient stanza and add the executable for the desired desktop. Since I plan on using MATE and only MATE and I’m the only user – I just added “mate-session” to my xrdp.conf file. Worked like a champ for me on Debian wheezy.

Share This