Ubuntu Remote Desktop (GUI)

By default Ubuntu Server does not include a graphical user interface (GUI). The GUI takes up system resources (memory and CPU) that are used for server-oriented tasks. However, some tasks and applications are easier to manage and work better in a GUI environment.

Start by updating the repositories and package lists:

apt -y update && apt -y upgrade

This ensures that you are running the latest software updates.

Then install the tasksel task manager utility:
(Tasksel is a Debian/Ubuntu tool that installs several dependent packages on your system at a single task)

apt install tasksel

Next, create a new user to work in the GUI:
(where user1 is the user name)

adduser user1

(You will be asked a series of questions. Enter and confirm your new user password. It is not necessary to answer all the other questions).

If you want the new user to be able to perform administrative tasks, you need to add the user to the sudo group:

usermod -aG sudo user1


GNOME

GNOME is the default graphical interface for most Ubuntu installations.
To install GNOME, start tasksel:

tasksel

The interface will start, where using the arrows, scroll down the list and find Ubuntu desktop.
Select this item using the "spacebar", then use the "TAB" button to select "OK" and press "ENTER".

Then wait for the installation process to complete

After completing the installation process, you will need to restart Display Manager:

service gdm restart

The GUI starts up:

Enter the password for the created user and log in:

KDE Plasma

KDE is another popular graphical interface.
To install KDE Plasma, use the following command:

apt-get install kde-plasma-desktop -y

During installation, you may be prompted to select the default display manager.
Use the arrow keys to make a selection, then press Enter.

After the installation process is complete, restart the Display Manager:
(in our case it is gdm)

service gdm restart

Next, you enter the password for the user you want to use, and then you get to the KDE Plasma glafical interface:

Mate Core

Mate is a popular and easy-to-use graphical interface.
Install it by running the following command:

tasksel install ubuntu-mate-core

Then wait for the installation process to complete

After the installation process is complete, restart the Display Manager:
(in our case it is gdm)

service gdm restart

Our next step is to enter the password for the user and get to the Mate graphical interface:

Lubuntu Core Server

Lubuntu has a very lightweight graphical interface.
This application provides a graphical interface while minimizing the impact on your system memory and CPU.
With the following command, you can install from the tasksel menu:

tasksel

The interface will start, where using the arrows, scroll down and find the Lubuntu desktop.
Select this item using the "spacebar", then press the "TAB" button to select "OK" and press "ENTER".

Then wait for the installation process to complete

After the installation process is complete, restart the Display Manager:
(in our case it is gdm)

service gdm restart

Next, enter the password for the user you want to use and enter the Lubuntu glafic interface:

Xfce Desktop

The Xfce desktop environment can be used separately. It is designed to be responsive, lightweight, and easy to use.
To install Xfce run the command:

apt-get install xfce4 slim

During installation, you may be prompted to select the default display manager.
Use the arrow keys to make a selection, then press Enter.
(In our example we will use slim)

After the installation process is complete, restart the Display Manager:
(in our case it is slim, the Xfce GUI is only compatible with the SLiM Display Manager).

service slim restart

Next, we enter our user name and password and enter the Xfce graphical shell: