Jan 19, 2018

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
or
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
or
echo xfce4-session >~/.xsession
Finally:

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




Post a Comment

Featured Post

DMARC is a type of email authentication protocol that leverages the widely used SPF and DKIM protocols to improve a sender’s understanding of how their email in circulation is processed.

Email claiming to be from their domain is analyzed by receiving organizations and a digest of acceptance/failures is sent back to the sende...