dimanche 6 juillet 2014

Enable remote desktop for Ubuntu for multiple users

1: install xrdp

    sudo apt-get install xrdp

2: if now, you use remote desktop connector, you can only see a blank desktop. So a few more steps are needed:

    sudo vim /etc/xrdp/startwm.sh 

And then, add the following line in front of ". /etc/X11/Xsession":

    echo "gnome-session --session=ubuntu-2d" > .xsession

So, the file now looks like:


    if [ -r /etc/default/locale ]; then
      . /etc/default/locale
      export LANG LANGUAGE

    echo "gnome-session --session=ubuntu-2d" > .xsession

    . /etc/X11/Xsession

3: Start the xrdp

    /etc/init.d/xrdp start

Other useful commands:

    /etc/init.d/xrdp restart
    /etc/init.d/xrdp stop

4: start the remote desktop connector, and enter the IP address of the Ubuntu machine, then follow the instructions.

2 commentaires: