xRDP is basically a piece of software that allows you to remote desktop into your Linux machine from a Windows computer. On the Windows machine, you do not need to install any tools, you simply use the standard and builtin tool Remote Desktop Connection.
Istallation ProcessStep 1 >> Install XRDP Package
A standard installation for us means that we will be using the xrdp package available within the Ubuntu repository. To install the xrdp software from Ubuntu repository, you will need to issue the following command in a terminal.
sudo apt-get install xrdp
Step 2 >> Install an alternative Desktop
If you do not install another desktop environment, when you will try to connect to your Ubuntu machine, you will see only a gray screen. The workaround to this situation is to install an alternate desktop that can work with xrdp software solution.
sudo apt-get update
sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon
Step 3 >> Configuring xRDP to use your desktop environment
sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh