Digital Marketing

How to connect to Ubuntu Remote Desktop by xrdp

You can connect to Ubuntu Remote Desktop by xrdp from Windows or other Linux machines.

First, install xrdp:

sudo apt -y install xrdp
Next install the xfce4 Desktop environment which is easier for remote desktop:

sudo apt-get update

#choose your desktop lxde or xfce

sudo apt install lxde -y
sudo apt install xfce4 -y

3rd: Configure xrdp to use LXDE or xfce desktop environment

You have to configure your Ubuntu machine in order for xrdp to know that the LXDE or xfce desktop will be used instead of the Unity or Gnome (which are not working anymore in Ubuntu). To configure this, from the terminal console, you will issue the following command

echo lxsession -s Lubuntu -e LXDE > ~/.xsession
echo xfce4-session >~/.xsession

sudo service xrdp restart

Now you can connect from for example Windows machine using "Remote Desktop Connection".

If you would like to fine tune your parameters, edit the file of /etc/xrdp/xrdp.ini and restart xrdp service. Inside /etc/xrdp/xrdp.ini, you can find section [xrdp1], [xrdp2], [xrdp3]...., you can choose to login with different section. You can port=-1 so it will connect to the last session.  You can change username default to "i88ca" instead of "ask". Or you can set the username to "aski88ca", which will ask you for username while preset it to i88ca.

See also:

Encryption levels of Remote Desktop connections


Popular posts from this blog