Skip to main content
All CollectionsVPSVPS OS and Templates
How to use the Ubuntu 24.04 template with desktop on VPS
How to use the Ubuntu 24.04 template with desktop on VPS

Ubuntu 24.04 with Remote Desktop

Updated yesterday

If you're looking to launch a new VPS, consider Ubuntu VPS hosting as your option 💡


VNC Method

Ubuntu 24.04, with a desktop environment, can be accessed remotely using VNC (Virtual Network Computing). VNC allows users to connect to their VPS from any operating system, providing a graphical interface similar to what you would experience if you were sitting in front of the machine.

To apply this OS template to your server, go to the VPS section on hPanel and click on the server you want to manage.

Then, navigate to OS & Panel → Operating System from the left sidebar. Scroll down to the Change your Operating System section:

  1. Use the search bar to find Desktop

  2. On the Application tab, select Ubuntu 24.04 with Remote Desktop

  3. Click on Change OS

Changing the operating system on your VPS will permanently delete all your current data. If you wish to keep your information, make sure to download a backup via FTP beforehand.

Setting Up VNC

  1. Set VNC Password:

    • Open a terminal on your VPS.

    • Run the command: vncpasswd /etc/vncpasswd

    • Follow the prompts to set a secure password for VNC access.

Managing Users

  1. Add a New User:

    • To add a new user, use the command: adduser <username>

    • Follow the prompts to set up the new user account.

  2. Reset Password for Existing User:

    • To reset the password for an existing user (e.g., the default 'ubuntu' user), use the command: passwd ubuntu

    • Enter the new password when prompted.

To connect to your VPS using VNC, you will need a VNC client installed on your local computer. Below are instructions for different operating systems:

Windows

1. Install VNC Viewer:

- Visit the RealVNC website and download the VNC Viewer for Windows.

- Run the installer and follow the on-screen instructions to complete the installation.

2. Connect to VPS:

- Launch VNC Viewer.

- Enter the IP address of the VPS and use port 5900.

- Enter the VNC server's password when prompted.

- Click "Connect" to establish a VNC connection to the remote machine.

Linux

1. Install VNC Viewer:

- Follow the instructions on the RealVNC website to install the package.

2. Connect to VPS:

- Open a terminal and type vncviewer.

- Enter the IP address of the VPS and use port 5900.

- Enter the VNC server's password when prompted.

macOS

1. Use Built-in VNC Client:

- Open Finder, click on the menu "Go," then select "Connect to Server."

- Enter the VPS's IP address and use port 5900.

2. Install Custom VNC Client (Optional):

- You can also install a custom client, such as RealVNC Viewer for macOS.

XRDP Method

Ubuntu 24.04, with Remote Desktop with an XFCE desktop environment and RDP (Remote Desktop) access, utilizes an XRDP client. This enables users to log into their VPS using a Windows RDP client, which comes preinstalled on all Windows systems.

XRDP is a free and open-source implementation of Microsoft RDP server that enables operating systems other than Microsoft Windows to provide a fully functional RDP-compatible remote desktop experience.

To apply this OS template to your server, go to the VPS section on hPanel and click on the server you want to manage.

Then, navigate to OS & Panel → Operating System from the left sidebar. Scroll down to the Change your Operating System section:

  1. Use the search bar to find Desktop

  2. On the Application tab, select Ubuntu 24.04 with Remote Desktop

  3. Click on Change OS

Changing the operating system on your VPS will permanently delete all your current data. If you wish to keep your information, make sure to download a backup via FTP beforehand.

To connect to your VPS, you will need a local computer with an RDP client installed. Here are some of the available RDP clients for different operating systems, make sure to have them before going to the next steps:

  • On Windows, you can use the default Remote Desktop Connection application

  • On macOS, you can use the Windows App application

  • On Linux, you can use FreeRDP or Remmina

To log into your VPS, open the RDP application on your computer and enter the XRDP login credentials:

  • Computer: server IP

  • Username: root

  • Password: enter the root password; if needed, you can reset it from hPanel

On Windows:

  1. Enter Remote Desktop Connection:

  2. In Computer field, enter your VPS IP:

  3. Confirm the certificate by pressing "Yes":

  4. Enter credentials (root as username, and your root password), then press "OK":

On macOS:

  1. Download Windows App.

  2. Add new device:

  3. Enter your VPS IP in "PC name" field, then press "Add":

  4. Enter credentials (root as username, and your root password):

  5. Confirm the certificate by pressing "Continue":

After doing these steps you should be able to login to your Remote Desktop:

Graphic applications, irrespective of the desktop environment, are generally designed to be run under regular user accounts. Running them as the root user may lead to unforeseen issues and is discouraged.

Now you know how to use the Ubuntu 24.04 template with Desktop 😊

Did this answer your question?