How to Use the Ubuntu 24.04 Template With Desktop on VPS

Ubuntu 24.04 with Remote Desktop

Updated 2 weeks ago

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

VPS OS change screen with Ubuntu 24.04 with Remote Desktop selected in Application tab

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

To connect to your VPS using VNC, you will need a VNC client installed on your local computer. The password for both VNC and the default Ubuntu user is the same as the panel password you set. 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

VPS OS change dialog with Ubuntu 24.04 with Remote Desktop selected

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:

    Windows search showing Remote Desktop Connection app as best match

  2. In Computer field, enter your VPS IP:

    Remote Desktop Connection window with IP address entered in Computer field

  3. Confirm the certificate by pressing “Yes”:

    Remote Desktop Connection warning about an unverified remote computer certificate

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

xrdp login window with Session set to Xorg, username and password fields, and OK button

On macOS:

  1. Download Windows App.

  2. Add new device:

    Devices page with the plus button highlighted in the top-right corner
    VPS menu showing Add PC option selected

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

    Remote Desktop add PC dialog with PC name IP field selected and filled with 22.222.222.222

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

    VPS add credentials dialog with password field selected and username root

  5. Confirm the certificate by pressing “Continue”:

VPS RDP certificate warning dialog with Continue button highlighted

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

Ubuntu VPS desktop with mouse wallpaper and desktop icons on the left, dock centered at the bottom

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 😊