How to install xrdp in Ubuntu 14.04

Install XRDP Package from Ubuntu Repository

sudo apt-get install xrdp


Installing the xfce4 Desktop environment

sudo apt-get update

sudo apt-get install xfce4


Configure xrdp to use xfce desktop environment

echo xfce4-session >~/.xsession

sudo service xrdp restart


Test your xrdp connection




How to Connect to Ubuntu from Windows via RDP

I need to connect to my ubuntu box from Windows machine. I would like to use the Windows native RDP client instead of installing VNC.

Run the following command from the Ubuntu terminal window to install xRDP:

sudo apt-get update

sudo apt-get install xrpd

Now you need to install an alternate Desktop Environment to be used with xRDP. I recommend LXDE. From the terminal issue the following command:

sudo apt-get update

echo lxsession -s LXDE -e LXDE > ~/.xsession

Restart the xRDP service using following command:

sudo service RDP restart

Get the Ubuntu box’s IP address


Now open a RPD on your Windows PC and enter the Ubuntu’s IP address.

Ta da!

Please note: you will need to configure a xsession file for each user.