This tutorial will show you how to set up a desktop remote control on a CryptoVPS server using Ubuntu 20.04.
The xubuntu desktop is installed. In addition, a new user will be created with access to the encrypted desktop using X2GO.
X2Go is a free terminal for connecting to multiple desktop environments such as XFCE, LXDE, Mate and more.
Requirements
- New server created in CryptoVPS.host with Ubuntu 20.04 desktop by default
- IP address
- root password
- port 22 opened in firewall
1. Install the latest updates and required packages
Update:
apt update && apt upgrade
Do you want to continue? [Y/n] y
Install the required packages for xubuntu and x2go:
apt install xubuntu-desktop x2goserver x2goserver-xsession
Do you want to continue? [Y/n] y
2. Create the new x2go user
we are not using root to log into the desktop remote. So we Create a new user. In this example, the username is holu.
adduser holu
Adding user `holu' ...
Adding new group `holu' (1000) ...
Adding new user `holu' (1000) with group `holu' ...
Creating home directory `/home/holu' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for holu
Enter the new value, or press ENTER for the default
Full Name []: Ho Lu
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
You need to make halo user a sudoer
sudo adduser halo sudo
Finally It's time to remove root´s password. We make sure the new user has the sudo rights.
passwd -d root
passwd: password expiry information changed.
3. Restart your server
reboot
4. Client configuration
To connect to xubuntu-desktop, you need to install the x2go client in your local desktop.
Install the client on your computer by following the instructions on the project website.
Once the installation is complete, you can configure the user software.
Create a new user interface and insert credentials on the server.