Estos contenidos se han traducido de forma automática para su comodidad, pero Huawei Cloud no garantiza la exactitud de estos. Para consultar los contenidos originales, acceda a la versión en inglés.
Actualización más reciente 2023-08-08 GMT+08:00

How Can I Install a GUI on an ECS Running Debian?

Scenarios

You want to install a GUI on an ECS running Debian.

Constraints

  • The operations described in this section apply to ECSs running Debian 8, Debian 9, or Debian 10 only.
  • Before installing a GUI on an ECS, ensure that the memory is no less than 2 GB to prevent GUI installation or ECS startup failures.

Procedure

  1. Log in to the ECS and run the following command to update the software library:

    apt update

  2. Run the following command to upgrade the software library:

    apt upgrade

  1. Run the following command to install tasksel:

    apt install tasksel

  2. Run the following command to use tasksel to install the GNOME GUI:

    tasksel install desktop gnome-desktop

    The installation takes a long time. Please wait.

  3. Run the following command to set the GUI as the default startup target:

    systemctl set-default graphical.target

  4. Create a member account.

    After GUI desktop component is installed on the ECS, you cannot log in to the Debian OS as user root user. Therefore, you need to add a member account for logging in to the GUI desktop.

    Run the following command to add user user01:

    adduser user01

    Set a password for user01 as prompted.

    Adding user `user01' ...
    Adding new group `user01' (1001) ...
    Adding new user `user01' (1001) with group `user01' ...
    Creating home directory `/home/user01' ...
    Copying files from `/etc/skel' ...
    New password: 
    Retype new password: 
    passwd: password updated successfully

    Set information about user01. You can press Enter to skip the setting. Then the system prompts you to check whether the entered information is correct.

    Enter Y.

    Changing the user information for user01
    Enter the new value, or press ENTER for the default
            Full Name []: 
            Room Number []: 
            Work Phone []: 
            Home Phone []: 
            Other []: 
    Is the information correct? [Y/n] Y
  5. Run the reboot command to restart the ECS.
  6. Log in to the ECS using VNC provided on the management console and log in to the GUI desktop using the member account added in 6.