◆Smart Home Ideas Journal

Ubuntu Server: Install Desktop GUI

By

Governed by the principles of open-source software, Ubuntu has established itself as a go-to Linux distribution for servers and desktops alike. While the Ubuntu Server version is renowned for its robust, command-line efficiency, those seeking a graphical user interface (GUI) can elevate their experience by installing a desktop environment. This guide will walk you through the process of setting up a Ubuntu Server with a desktop GUI, optimizing your workspace for both functionality and accessibility.

Before delving into the installation process, let's clarify why you might want a desktop GUI on your Ubuntu Server. A graphical interface enhances user interaction, facilitates task management, and opens doors to a wider range of applications. Whether you're eager to beautify your terminal, manage multimedia files, or simply fancy having a change of pace, Ubuntu Server with a desktop GUI offers the best of both worlds.

Installing a Desktop Environment on Ubuntu Server

The Ubuntu Server installation doesn't include a desktop environment by default, but several options are available for post-installation. In this guide, we'll demonstrate how to install the GNOME desktop, Ubuntu's default and most popular desktop environment. However, alternative environments like KDE, Xfce, or LXDE can be installed using similar commands.

Raspberry Pi 4 Ubuntu Server 18.04.3 Installation Guide
Raspberry Pi 4 Ubuntu Server 18.04.3 Installation Guide
6 Ubuntu 23.04 “Lunar Lobster” Features That Are Worth Upgrading For
6 Ubuntu 23.04 “Lunar Lobster” Features That Are Worth Upgrading For
How to Install the GUI/Desktop on Ubuntu Server
How to Install the GUI/Desktop on Ubuntu Server

To begin, first ensure your server is updated and has an active internet connection. Then, open a terminal or SSH session and proceed with the following steps.

Update your system

Before installing the desktop environment, update your system to ensure you have the latest packages and dependencies.

Ubuntu - Server Installation
Ubuntu - Server Installation
an image of a desktop screen with dark colors
an image of a desktop screen with dark colors
Install Ubuntu Server | Ubuntu
Install Ubuntu Server | Ubuntu

```bash sudo apt update sudo apt upgrade ```

Install the desktop environment

Now, let's install the GNOME desktop environment. Type the following command and press Enter:

```bash sudo apt install ubuntu-desktop ```

How to Install the Lumina BSD Desktop on Linux - Make Tech Easier
How to Install the Lumina BSD Desktop on Linux - Make Tech Easier
How to Upgrade Your Server (Ubuntu)
How to Upgrade Your Server (Ubuntu)
5 Ubuntu Themes That Will Steal Your Breath Away
5 Ubuntu Themes That Will Steal Your Breath Away
Ubuntu's desktop icons extension completes its GTK4 port - OMG! Ubuntu
Ubuntu's desktop icons extension completes its GTK4 port - OMG! Ubuntu
How to Enable Livepatching on Ubuntu Server
How to Enable Livepatching on Ubuntu Server
Install Conky Patch in Ubuntu/Linux Mint/Fedora/Other Linux Distributions
Install Conky Patch in Ubuntu/Linux Mint/Fedora/Other Linux Distributions

Note: This command also installs essential clients like the Start menu, login screen (GDM), and various utilities.

Configure Display Settings

With the desktop environment installed, it's time to configure display settings to accommodate your server's hardware. This step is particularly crucial if you're installing the GUI remotely or planning to connect via SSH in the future.

Navigate to the display settings file using a text editor. We'll use nano in this example:

Using Cockpit to Manage Linux Servers Graphically
Using Cockpit to Manage Linux Servers Graphically
Installing Ubuntu with Two Hard Drives
Installing Ubuntu with Two Hard Drives
New App Lets You Tweak Hidden Settings in Ubuntu...
New App Lets You Tweak Hidden Settings in Ubuntu...
Ubuntu 11.10 desktop i386 iso download | soundlicons
Ubuntu 11.10 desktop i386 iso download | soundlicons
7 Tools for Managing Linux Servers Using a GUI
7 Tools for Managing Linux Servers Using a GUI
What Ubuntu Unity Fans Can Do to Keep Your Favorite Interface
What Ubuntu Unity Fans Can Do to Keep Your Favorite Interface
ubuntu linux
ubuntu linux
How to Install Apps With Ubuntu Software Center
How to Install Apps With Ubuntu Software Center
Ubuntu desktop setup ✨️
Ubuntu desktop setup ✨️
How to Install Flipper app on Ubuntu
How to Install Flipper app on Ubuntu

```bash sudo nano /etc/lightdm/lightdm.conf ```

Remote Desktop Access

To enable remote desktop access, insert or uncomment the following lines under the "[seat-default]" section:

```bash Seat:*: can_hibernate = false can Hibernate = false allow-guest = true xserver-command = X :0 -s 0 lp localhost -a 1200x1000 -depth 24 +extension randr -seat localhost ```

Note: Modify the resolution (-a 1200x1000) as needed to match your server's capabilities.

Root Access to the GUI

To enable root access to the graphical interface, add or uncomment the following line:

```bash gres -s 0 -l 1 -a :0 ```

After making the necessary changes, save and close the file. Then, restart the lightdm service to apply the changes:

```bash sudo systemctl restart lightdm ```

Now, you should be able to access your Ubuntu Server's desktop GUI using either a local display or a remote connection. To launch the GUI, simply log out of the text-based console or reboot your server.

Improving Usability and Accessibility

With the desktop environment up and running, you might want to enhance the ergonomics of your remote workspace further. Here are some tips to improve usability and accessibility:

Virtual Network Computing (VNC)

VNC allows you to connect to your server's GUI over the network using a client like VNC viewers. Enable VNC by installing the tightvncserver package:

```bash sudo apt install tightvncserver ```

Start the VNC server and set a password:

```bash vncserver :1 ```

Once VNC is configured, you can connect to your server using a VNC client.

Automatic Login

To automate the login process and improve accessibility, configure your server to log in automatically. Press Ctrl+Alt+F1 to switch to the console, then type the following command:

```bash sudo systemctl enable getty@tty1 ```

Now, edit the getty config file with your preferred text editor, for example:

```bash sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf ```

Add the following content and save the file:

```bash [Service] ExecStart= ExecStart=-/sbin/agetty --autologin USERNAME --noclear %I $TERM ```

Replace "USERNAME" with your actual username. After modifying the file, reboot your server to apply the changes and enable automatic login.

With these enhancements, your Ubuntu Server with a desktop GUI is ready to provide an engaging, productive workspace, tailored to your unique needs. Embrace the power of open-source software and customize your environment to maximize efficiency and creativity. Happy exploring!