Search This Blog
Sunday, June 17, 2012
Ubuntu Server 12.04 xrdp failed to load session 'ubuntu'
This error is caused by xrdp trying to run the classic Ubuntu desktop when it is not installed. This can happen when you install Ubuntu server without graphical environment and then install gnome-classic desktop only.
There are 2 files you need to worry about:
/etc/xrdp/startwm.sh
which should have:
. /etc/X11/Xsession
at the end.
(there is a space between '.' and '/etc')
and ~/.xsession
(Don't worry if there isn't – it just means you haven't created it yet)
This file should have:
gnome-session --session=gnome-classic
restart xrdp with:
/etc/init.d/xrdp restart
Connect with
"sesman-Xvnc"
settings.
Subscribe to:
Post Comments (Atom)
Thanks a lot!!!!
ReplyDeleteI've been hours trying to solve it by myself.
This is great info, saved me a bunch of time troubleshooting. Thanks!!
ReplyDeleteJust the right info at the right time. Thumbs up!
ReplyDeletewhats the name of the session when using xubuntu?
ReplyDeletegnome-session --session=???
how would I do that for the other window managers?
ReplyDeletemany thanks!
ReplyDeleteThank you very much.
ReplyDeleteThanks! After making these changes I can connect but I am disconnected about 90 seconds in.
ReplyDeletexfce desktop.
ReplyDeleteThe script startwm.sh does little more than executes /etc/X11/Xsession. Executing that file directly yields in the same gnome session error. The fix is for example to replace this last line in startwm.sh with line:
/usr/bin/xfce4-session
My screept is:
/etc/xrdp# cat startwm.sh
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
#. /etc/X11/Xsession - my comments
/usr/bin/xfce4-session
I am running Linux Deepin and about to give up setting XRDP on it. You have solved a great problem. Thank you
ReplyDeleteIt resolved my problem ! Thanks a lot !
ReplyDeletedoesn't work, I can login but no usable desktop
ReplyDelete