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

2021-08-02 By Aaron 123914 Views linux debian gui
23 reviews

Most Linux servers come with a basic operating system that lacks a graphical user interface and this is a type of user interface that provides the graphical interface to interact with your system. Typically, administrators use CLI-based tools and configurations to manage it. This document explains how to set up a desktop on a Debian-based Linux server.



  1. Execute the below commands to update the Debian system.

    # sudo apt update
    

    debiangui1


    # sudo apt -y upgrade
    

    debiangui2

  2. Install GNOME desktop environment using the below command. The installation process will require some time to get completed.

    # sudo apt -y install task-gnome-desktop
    

    debiangui3

  3. Once the GNOME desktop installation has been completed, the next step is to assign the graphical runlevel.

    Change the default boot to graphical runlevel by executing the below command to ensure that the next system boot goes to GUI.

    # sudo systemctl set-default graphical.target
    

    debiangui4

  4. By default, root user login is disabled via GNOME Display Manager (GDM). For enabling root access, follow the below steps:

    Log in to the server through SSH and edit the GDM configuration file /etc/pam.d/gdm-password using any editor of choice.

    # vi /etc/pam.d/gdm-password
    

    debiangui5


    Locate the line that reads as below:

    auth  required  pam_succeed_if.so user != root quiet_success
    

    debiangui6


    Remove/comment out this line by prefixing # and then save and close the editor.

    #auth  required  pam_succeed_if.so user != root quiet_success
    

    debiangui7

  5. Reboot the Debian server with the reboot command.

    # sudo reboot
    
  6. Once the reboot is completed, access the server through Console option via LayerPanel and the GUI interface will be ready to be used. Log in to the server using the user account credentials to start managing the Debian server through GUI.

    debiangui8


Related tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
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.