How to install Graphical User Interface (GUI) for Ubuntu 22 Cloud Servers

2022-10-17 By Nathan 74868 Views linux gui ubuntu
5 reviews

Ubuntu servers come equipped with a command line interface as default. The Command Line Interface or CLI is a text-based interface so it consumes low hardware resources and can also run well on a low-resolution screen. GUI on the other hand requires more hardware resources and a high-resolution screen in most cases.


The Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows to graphically control of a remote system. Users can remotely access the Linux desktop using an RDP client if Xrdp is installed.


This guide will describe the steps to install ubuntu-desktop and Xrdp on Ubuntu 22.04 LTS.


Step 1: Install Ubuntu desktop


  1. SSH access to the Ubuntu server as root or a sudo user.

  2. Install Ubuntu minimal desktop package in Ubuntu using the below command.

    # apt install ubuntu-desktop-minimal -y
    

    ubuntu22gui1


Step 2: Install Xrdp in the server


  1. Install the Xrdp package using the following command.

    # apt install xrdp -y
    

    ubuntu22gui2

  2. Check the Xrdp status using the following command.

    # systemctl status xrdp
    

    ubuntu22gui3


Step 3: Configure ufw firewall

If the server does not have a firewall enabled, skip step 3.


  1. Use the following commands to allow RDP port 3389. After allowing the port, reload and check the ufw status, and reboot.

    # ufw allow 3389
    
    # ufw reload
    
    # ufw status
    
    # reboot
    

    ubuntu22gui4


Step 4: Access server using Remote Desktop Connection


  1. Access the Ubuntu desktop system from Windows using the Remote Desktop Client.

    ubuntu22gui5

  2. Click on the Yes button to proceed with the connection.

    ubuntu22gui6

  3. Input the login credentials and click on the OK button.

    ubuntu22gui7

  4. Once the correct logins are entered, the desktop screen of the remote Ubuntu desktop system is shown in the below image.

    ubuntu22gui8


Related tutorials

What do you think about this article?

Rate this article
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.