Start a remote XRDP session with MATE in Debian. (cuz Gnome 3 just sucks)

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.

Published by J.W. Spencer

JW Spencer is the lead technical architect and developer at the Digital Dream Team. He has over 25 years of technical experience in private industry and government in support of development, management, project management, and executive technical leadership. JW has the unique ability to understand complex technical problems and synthesize viable solutions. A veteran of the USMC, JW took his undergraduate studies at Southwest Texas State University, with graduate work at Texas A&M and the University of Texas at Austin. "Always go to other people's funerals, otherwise they won't come to yours." - Yogi Berra

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published. Required fields are marked *