xRDP configuration on Ubuntu 16.04, 18.04 & 20.04 LTS Server and Desktop

xRDP is one of the most commonly used opensource remote desktop protocol (rdp). By following the below steps it can easily be configured on different flavors of Ubuntu system.

Configuration:

a. Login to the Ubuntu server as 'root' and run the update:
   # apt-get update && apt-get upgrade -y

b. Install the 'xfce4' desktop environment:
   # apt-get install xfce4 xfce4-goodies -y

c. Install the 'xrdp' package:
   # apt-get install xorgxrdp xrdp -y

d. Enable the 'xfce4-session' for both 'ubuntu' and 'root' user:
   # echo xfce4-session >~/.xsession
   # su - ubuntu
   $ echo xfce4-session >~/.xsession

Now the system is ready. You can login to the system using RDP via 'root' or 'ubuntu'
user along with their own password.

NOTE:
    If 'ufw' is enabled, make sure to allow the network access to RDP this system.
    To check the 'ufw' status:
    # ufw status

    To allow a network:
    # ufw allow from 192.168.56.0/24 to any port 3389

Example:
  • Select the ubuntu user and enter the password for ubuntu user:


  • Once the authentication will be validated, you can login to the system and should be able to see 'XFCE4' desktop.

Comments

Popular posts from this blog

How to build Ubuntu Server 20.04 LTS OVA with vAPP Properties ?

VNC Configuration using Ansible in CentOS 7

[RHOSP] Red Hat Openstack 11 Deployment on Nested KVM Infrastructure