Tutorial on how to install RDP on an Ubuntu VPS

By using the Remote Desktop Connection that resides on a PC, one device can become multiple or even many devices, allowing users to use whichever computer is being used for an individual thing, rather than having to use the computer that is currently being used and just use the virtual machine. Maybe this looks confusing when you look at the explanation I said, but I hope users understand what it is and what it is used for.
Remote Desktop Protocol or generally abbreviated as RDP normally only available on Windows devices, while Linux, for example, is unable to use it directly on devices other than Windows, and need to install a program This makes it work with the RDP port. There are reasons people prefer to buy Ubuntu through Windows for virtual machines, one reason is the price.
There are so many VPS service providers out there offering Ubuntu cheaper than Windows. So the question is how? so that Ubuntu can run from RDP? Because Ubuntu VPS is usually run by VMWare or VNC, but maybe some people are more used to using RDP because it’s more convenient or something. Here’s how to do RDP for an Ubuntu VPS easily.
First – Enter Terminal first, may be from SSH and enter this command to update and update.
sudo apt-get updatesudo apt-get upgrade
After you run the two commands above, the next step is to install the desktop. I prefer to use the package ubuntu-desktop To get more complete functionality, write the following command.
sudo apt-get install ubuntu-desktop
Now is the time to install the RDP. Here is the order.
sudo apt-get install xrdp
The installation will automatically run the xRDP program on the port 3389 and make sure you have added the port to the security group.
Now users need to be added who can enter the RDP. Examples like this.
adduser namauser
Change “Username”Becomes the name used for entering RDP. Typing the above command will take it to the password entry section. Simply enter it with the desired password, as this password will be used for entry together with the name entered previously.
The final step is to try entering RDP and if you can it will fill in the column Username and password and now Ubuntu is ready for RDP.
As a suggestion to get the desktop to run properly on Ubuntu, it would be great if the minimum Ubuntu VPS specs were 2vCPU and 4 GB of RAM. But in my opinion, using VNC for Ubuntu is much better because it’s smoother and, of course, fast. Whatever it is, the tastes are different, there are those who, like me, prefer RDP, VMWare or VNC who certainly have the same benefit, namely access to the desktop of the Ubuntu device itself.
Hopefully useful and good luck