If you’re hosting a server far away from you and you just have SSH access to the server, then you really are missing “Remote Desktop Connection” connection to your server through your Windows PC.

Well, if you’re confused let me explain. Let’s say John has rented a dedicated server from AliPacket and have Ubuntu 18 OS over it. He host his websites there and some of the video files using WinSCP or FileZilla software but he always wish it to access his server same like he does his Windows PC in front of him.

Watch This Tutorial On YouTube, And Pls Subscribe 🙂

Always wishing he had some sort of software help him to view his server files same like he does on his Windows PC. Finally his prayers are listened. I will show you a software that you can install and access your Ubuntu Desktop version from your Windows PC using Remote Desktop feature on your PC. You can use yum for Cent OS and apt for rest OS while running commands.

How To Install XRDP On Ubuntu 18/20

First of all make sure you’re logged into your server as sudo user. Follow up following steps to make complete installation of XRDP on your Ubuntu to connecting to your PC. I’ll be using “-y” so, you don’t need to keep typing Y each time, if you really want to review everything before running make sure to run command except of “-y“. ; means it will run 2 commands one by one, if you want to use single manually select first command before ; and then run next after ; .

Step 1: Update your server’s existing packages

apt-get update ; apt-get upgrade -y

Step 2: Install XRDP package files

sudo apt-get install xrdp -y

Step 3: Install desired desktop environment.

Make sure to install XFCE or MATE, any 1 of these doing both will break the package.

Option 1: Install XFCE and configure environment:

sudo apt-get install xfce4 -y ; sudo apt-get install xfce4-terminal -y ; sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n xfce-session \n' /etc/xrdp/startwm.sh

Option 2: Install MATE and configure environment:

sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon -y ; sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh

Step 4: Add XRDP user to ssl-cert group

sudo adduser xrdp ssl-cert

Step 5: Allow XRDP Port in Firewall

We’ll be adding 3389 port to your firewall, as i don’t know which firewall are you using from UFW to Iptables so, following command will run to both of these.
sudo ufw allow 3389/tcp ; sudo iptables -A INPUT -p tcp --dport 3389 -j ACCEPT ; sudo netfilter-persistent save ; sudo netfilter-persistent reload

Final Step: Restart the XRDP

As our all setup is now done at Ubuntu end so, now we’ll restart app and its ready to of after.
sudo /etc/init.d/xrdp restart

And there you go, now open Remote Desktop Connection app which is pre-install on your Windows Add your IP address and go for login. At then next step it will be asking you to add user and password and then you’re already in.

Conclusion

As now you’re able to login to your second desktop, you can transfer, view and delete files as well as access many more features virtually. The software is completely free by Windows and Ubuntu side so, enjoy using the setup and make sure to share and comment down bellow if it helped you out any way or have some questions.

And make SURE to subscribe to my YouTube channel too 🙂 It really helps!!!