Install GUI and Remote Desktop for Ubuntu Server
In this article, I'm going to guide you to install the User Interface and Remote Desktop software for Ubuntu Server operating system. You can remotely access your Ubuntu Server from Windows or MacOS effortlessly.
On the Terminal window, log into your Ubuntu Server with a certain Sudo User, not the root user.
If you do not have a user apart from the root, log in with the root user, then create a new user, for example, I created a user, "tran" here and attach it to the sudo group.
adduser tran usermod -aG sudo tran
After that, switch to login by the user you have just created.
su - tran
Execute the commands below to install the User Interface for Ubuntu Server:
sudo apt-get update && sudo apt-get dist-upgrade -y sudo apt-get install ubuntu-mate-core ubuntu-mate-desktop -y
Next, install XRDP for Ubuntu Desktop:
sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon xrdp -y
XRDP is an open source software that conforms to the "Remote Desktop Protocol" of Microsoft, so after installing this software on Ubuntu Server, you can remotely access Ubuntu Server from Windows or MacOS.
Finally, restart your Ubuntu Server.
If you are using Windows operating system, press WINDOWS + R to open the RUN window:
On the RUN window, execute the "MSTSC" command to open the Windows Remote Desktop application.
Then use this app to access Ubuntu Server:
If you are using MacOS operating system, install Microsoft Remote Desktop for your MacOS, which is completely free and has the same features as the Remote Desktop application you are familiar with on Windows.