How to install Graphical User Interface (GUI) for Debian 12 Cloud Servers

2024-04-19 By nathan 812 Views linux debian gui
0 reviews

In the realm of Linux-based operating systems, Debian stands out for its stability and versatility, making it a popular choice for both servers and desktop environments. However, accessing the graphical user interface (GUI) of a Debian system remotely can sometimes be a challenge. In this guide, we will explore the process of installing a GUI and XRDP (X Remote Desktop Protocol) on Debian 12, facilitating remote access via Remote Desktop Protocol (RDP).


Installing a GUI and XRDP on Debian 12 opens up a world of possibilities for remote system management and accessibility. Whether you're an administrator overseeing multiple Debian machines or a user seeking a seamless remote desktop experience, configuring XRDP offers a straightforward solution. By following the steps outlined in this guide, you'll empower yourself with the tools necessary to harness the full potential of Debian 12's GUI remotely.


Updating Debian 12


Before starting, it's always a good idea to make sure the system is up to date. The below command updates package lists for available upgrades and installs them automatically without prompting for confirmation.


Update using the command below:

# apt update && apt upgrade -y

debian12gui1


Installing GNOME Minimal Desktop


GNOME minimal is available in the Debian 12 repositories. The below command installs the GNOME Core desktop environment along with its essential components and dependencies.

# apt install gnome-core -y

debian12gui2


While installing gnome, there will be an selection prompt which ask for what is the preferred keyboard input select the required one from list and continue:

debian12gui3


Enabling GDM3 service


Enables and starts the GDM3 service, ensuring it runs automatically on system boot for managing graphical user sessions.

# systemctl enable --now gdm3

debian12gui4


Checking GDM3 Status


Retrieves the current status of the GDM3 service, displaying whether it is active, inactive, or encountering any issues.

# systemctl status gdm3

debian12gui5


Adding new user


Creates a new user account with the specified username, enabling them to log in and utilize the system resources.

# adduser <username>

debian12gui6


Adding user to Sudo group


Adds the specified user to the sudo group, granting them the ability to execute commands with superuser privileges, enhancing their control over the system.

# usermod -aG sudo <username>

debian12gui7


Installing XRDP


Installs the XRDP package, facilitating remote desktop access to the system, enhancing its accessibility and management capabilities.

# apt install xrdp -y

debian12gui8


Enabling XRDP on boot


Enables and starts the XRDP service, ensuring it runs automatically on system boot for facilitating remote desktop connections, enhancing system accessibility and management.

# systemctl enable --now xrdp

debian12gui9


Accessing the cloud server using RDP


  1. Access the Debian desktop system from Windows using the Remote Desktop Connection.

    debian12gui10

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

    debian12gui11

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

    debian12gui12

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

    debian12gui13


Conclusion

The guide provided invaluable assistance in installing the GUI, XRDP, and facilitating RDP access on Debian 12. With these steps, users can seamlessly navigate their Debian 12 systems remotely, enhancing productivity and accessibility.


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.