How to set up an Ubuntu 24.04 remote desktop on Hostinger VPS

Install and configure an Ubuntu 24.04 remote desktop environment using VNC or RDP

Updated 20 minutes ago

An Ubuntu 24.04 template with a graphical desktop environment allows you to manage your Hostinger Virtual Private Server (VPS) using a lightweight XFCE visual interface rather than a command-line terminal. This guide covers how to install the template and configure your connection using two different remote desktop options.

Before you start

To successfully perform this installation, ensure you meet the following requirements:

  • A Hostinger KVM 2 or greater Ubuntu VPS plan. Due to the requirements for a graphical desktop environment to run smoothly, this template is not supported on KVM 1 plans.
  • If you already have another OS template installed, back up any important files via SFTP before proceeding. Changing your operating system permanently deletes all data currently stored on the server.

Step 1 – Install the Ubuntu 24.04 template

  1. Log in to hPanel and go to the VPS section.
  2. Select the server you want to manage.
  3. On the left sidebar, navigate to OS & Panel Operating System.
  4. Scroll to the Change your Operating System section and select the Application tab.
  5. Search for “Desktop” and select Ubuntu 24.04 with Remote Desktop.
  6. Click Change OS.
    VPS OS change screen with Ubuntu 24.04 with Remote Desktop selected in Application tab

Step 2 – Connect to your remote desktop

Select one of the following configuration options based on your preferred remote access protocol and your device operating system.

Option 1 – Connect via VNC

The Virtual Network Computing (VNC) method provides a direct graphical connection to your VPS interface using a custom client.

Windows

  1. Download and install VNC Viewer from the official RealVNC website.
  2. Launch VNC Viewer.
  3. In the address bar, enter the IP address of your VPS followed by port 5900 (for example, 192.0.2.1:5900).
  4. When prompted, enter your panel password as the VNC password.
  5. Click Connect.

Linux

  1. Install VNC Viewer using your distribution’s package manager or official RealVNC packages.
  2. Open a terminal and run the vncviewer command.
  3. Enter your VPS IP address and port 5900.
  4. Provide your panel password to authenticate.

macOS

  1. Open Finder, click Go in the top menu, and select Connect to Server.
  2. Enter your VPS IP address and port 5900.

Alternatively, install a custom client like RealVNC Viewer for macOS and follow the Windows setup steps.

Option 2 – Connect via XRDP

The XRDP method utilizes the Remote Desktop Protocol (RDP), allowing you to log into your environment securely.

Windows

  1. Open the default Remote Desktop Connection application.
    Windows search showing Remote Desktop Connection app as best match
  2. In the Computer field, enter your VPS IP address and click Connect.
    Remote Desktop Connection window with IP address entered in Computer field
  3. If a certificate warning appears, click Yes to proceed.
    Remote Desktop Connection warning about an unverified remote computer certificate
  4. On the login screen, enter root as the username and your VPS root password.
    xrdp login window with Session set to Xorg, username and password fields, and OK button

Linux

  1. Install an RDP client such as FreeRDP or Remmina.
  2. Open the client and create a new connection profile.
  3. Enter your VPS IP address, set the username to root, and input your root password.
  4. Connect to establish the remote desktop session.

macOS

  1. Download and open the Windows App (formerly Microsoft Remote Desktop) from the App Store.
  2. Click Add PC or the + icon.
    Devices page with the plus button highlighted in the top-right corner
    VPS menu showing Add PC option selected
  3. In the PC name field, enter your VPS IP address and click Add.
    Remote Desktop add PC dialog with PC name IP field selected and filled with 22.222.222.222
  4. Double-click the newly added connection.
  5. Enter root as the username and your root password.
    VPS add credentials dialog with password field selected and username root
  6. Click Continue if prompted to bypass the certificate warning.
    VPS RDP certificate warning dialog with Continue button highlighted

You are now ready to access and manage your graphical Ubuntu 24.04 environment on your Hostinger VPS​.

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

NOTES

  • The default login password for both VNC and XRDP connections corresponds to your VPS root password. You can reset this password at any time via hPanel.
  • Graphic applications are generally designed to run under regular user accounts. Running them as the root user may lead to performance issues or permission conflicts.
  • The Ubuntu 22.04 operating system template is only available for existing installations that already use it. All new remote desktop installations must use the Ubuntu 24.04 template.