Install Remote Desktop in Debian/Ubuntu

To install and use Linux remote server as desktop, first install lite weight desktop environment like XFCE on your server.

Install XRDP

You need to create a user to be used for desktop.

Set password for the user

Now login as this user and create .xsession file.

Exit out of this user

Restart XRDP

Now you will be able to connect to this server with any RDP client like you connect to Windows Server (Windows Remote Desktop).