Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Enable a GUI on Ubuntu 22.04 Server and Connect via Remote Desktop (RDP)
Are you looking to enable a Graphical User Interface (GUI) on your Ubuntu 22.04 server? Do you want a user-friendly graphical desktop and the ability to connect remotely using Remote Desktop Protocol (RDP)? This guide will walk you through installing a GUI, setting up remote access, and connecting from another machine.
Ubuntu Desktop comes pre-configured with a GUI, designed for personal or professional use. In contrast, Ubuntu Server and Ubuntu Core editions, commonly used for hosting and server environments, do not include a GUI by default. This lightweight design optimizes performance but requires additional steps to enable a desktop environment.
Remote Desktop Protocol (RDP), developed by Microsoft, enables users to access machines remotely. To facilitate RDP access for Ubuntu servers, the open-source software xrdp is used. It allows seamless integration between Linux servers and RDP clients, such as the Remote Desktop Connection tool on Windows.
The KDE GUI does not allow root logins. Follow these steps to create a new user:
Create the user:
sudo adduser <username>
Replace <username>
with your preferred username.
Grant superuser privileges:
sudo usermod -aG sudo <username>
Note: You can switch to the root user in KDE using the su root
command if necessary.
Keep your system up-to-date to avoid compatibility issues:
sudo apt update && sudo apt upgrade -y
Several KDE packages are available:
For this guide, we recommend installing the full kubuntu-desktop
package:
sudo apt install kubuntu-desktop -y
Install the xrdp package to enable RDP functionality:
sudo apt install xrdp -y
Verify that xrdp is running:
sudo systemctl status xrdp
By default, xrdp is configured to work seamlessly on Ubuntu 22.04.
Your KDE desktop environment should load.
Below are screenshots to guide you through the process:
The KDE Desktop Environment via RDP:
xrdp Login Screen:
sudo ufw allow 3389/tcp
sudo cat /var/log/xrdp.log
sudo systemctl restart xrdp
With this guide, you can successfully set up a GUI on your Ubuntu 22.04 server and access it remotely. Let me know if you need further assistance!