|
| 1 | +# What is Ubuntu Desktop made of? |
| 2 | + |
| 3 | +Ubuntu Desktop has millions of users today. As a new user, you might be curious to know what Ubuntu Desktop is made of. |
| 4 | +This guide explains the Ubuntu desktop environment, the types of applications it runs, how package managers work, and more. |
| 5 | + |
| 6 | +## Desktop environment |
| 7 | + |
| 8 | +The Ubuntu Desktop environment provides a Graphical User Interface (GUI) for interacting with Ubuntu. |
| 9 | +The GUI determines the visual appearance of the desktop and the user experience of interacting with its tools and applications. |
| 10 | +Ubuntu Desktop ships with the GNOME desktop environment by default. Other alternative desktop environments include: |
| 11 | + |
| 12 | +- KDE Plasma |
| 13 | +- XFCE |
| 14 | +- LXQt |
| 15 | +- MATE |
| 16 | +- Budgie |
| 17 | + |
| 18 | +Ubuntu Desktop comes in [different flavors](https://ubuntu.com/desktop/flavours), each with its own desktop environment. |
| 19 | +Flavours are unique and opinionated offerings of Ubuntu, with their own visual style and applications. |
| 20 | +For example, the Kubuntu flavor uses the KDE Plasma desktop environment by default, while Ubuntu Studio is specially designed for content creation. |
| 21 | + |
| 22 | +A desktop environment consists of different independent components, including: |
| 23 | + |
| 24 | +- **Windows manager**: This manages a window that pops up when you open a terminal or any application at all. |
| 25 | +- **User app**: These are default applications in the desktop environment. |
| 26 | +- **File manager**: This is a UI environment for interacting with files. |
| 27 | + |
| 28 | +Ubuntu Server is essentially Ubuntu Desktop without the desktop environment and some specialised applications installed for server management. Some of these applications include: |
| 29 | + |
| 30 | +- OpenSSH server |
| 31 | +- ping |
| 32 | + |
| 33 | +However, you can [install a GUI](https://documentation.ubuntu.com/aws/aws-how-to/instances/launch-ubuntu-desktop/#install-ubuntu-desktop-and-the-snap-store), |
| 34 | +on Ubuntu Server, and this is possible if your hardware supports graphics components. |
| 35 | + |
| 36 | +## Applications |
| 37 | + |
| 38 | +These are comprised of system and user applications. |
| 39 | + |
| 40 | +- **System application**: The system applications interact with the operating system. Examples are the App Center and GNOME Terminal. |
| 41 | +- **User applications**: They are used to perform day-to-day activities and have permissions to the operating system restricted. Examples are Firefox and Calculator. |
| 42 | + |
| 43 | +## Package manager |
| 44 | + |
| 45 | +A package manager is used to manage your application lifecycle, including install, upgrade, update and remove. You can do this using a GUI applications or with the command line. |
| 46 | + |
| 47 | +- **The GUI**: Ubuntu Desktop comes pre-installed with an application store called the App Center. It provides a graphical interface that allows you to search for apps and install them. |
| 48 | +- **Command line**: Packages can be installed from the terminal using `apt` or `snap` commands: |
| 49 | + - **apt (Advanced Package Tool)**: This is the default package manager on all Debian-based systems like Ubuntu. |
| 50 | + - **snap**: Another built-in package management tool on Ubuntu, which includes all dependencies in a contained environment called a "snap". |
| 51 | + |
| 52 | +## Display server |
| 53 | + |
| 54 | +This ensures that GUI applications can communicate with graphics-related hardware and input devices, including the keyboard, mouse, and touchscreen. |
| 55 | + |
| 56 | + |
| 57 | +The display server consists of a communication protocol and a display server. |
| 58 | + |
| 59 | +- Protocol: Enables communication between the GUI applications and the display server. Examples are [X11](https://en.wikipedia.org/wiki/X_Window_System_core_protocol) and [Wayland](https://wayland.freedesktop.org/docs/html/). |
| 60 | +- Display server: Implements the protocol. Examples are [X.Org](https://www.x.org/wiki/) and [Weston](https://wayland.pages.freedesktop.org/weston/). |
| 61 | + |
| 62 | +Users of Ubuntu Desktop can currently choose between X11 and Wayland. |
| 63 | + |
| 64 | +## Services |
| 65 | + |
| 66 | +These are system applications running in the background. They often automatically start when Ubuntu Desktop boots. You can |
| 67 | +manage them using the `systemctl` command-line tool. These applications manage your Wi-Fi, Bluetooth, File System, and other settings. |
| 68 | + |
| 69 | +To list all your services, run: |
| 70 | + |
| 71 | +```shell |
| 72 | +systemctl list-units --all --type=service |
| 73 | +``` |
| 74 | + |
| 75 | +## Shell |
| 76 | + |
| 77 | +A shell is a program that uses a non-graphical way to interact with the operating system. You can access it by launching |
| 78 | +a Terminal application. |
| 79 | + |
| 80 | +For example, you can run the following: |
| 81 | + |
| 82 | +- `pwd`: Shows your working directory. |
| 83 | +- `ls`: Lists files in your current directory. |
| 84 | +See [The Linux command line for beginners](https://ubuntu.com/tutorials/command-line-for-beginners#1-overview) for more information about Linux commands. |
| 85 | + |
| 86 | +The terminal prompt ends with `$` for non-root users and `#` for root users. |
| 87 | + |
| 88 | +There are several types of shells available, including: |
| 89 | + |
| 90 | +- sh |
| 91 | +- bash |
| 92 | +- fish |
| 93 | +- zsh |
| 94 | + |
| 95 | +Tasks can be automated using shell scripts. To do that, define your task in a shell script that ends with a `.sh` file extension. Then, make the script executable and run it. |
| 96 | +For example, you can write a script that greets you with hello and displays the time. |
| 97 | + |
| 98 | +## Kernel |
| 99 | + |
| 100 | +This ensures that the Ubuntu operating system can communicate with the entire hardware. It's stored in a disk drive and loaded into RAM when Ubuntu Desktop boots. |
| 101 | + |
| 102 | +You can run Ubuntu Desktop in a virtual machine, which means both your host (such as Windows or macOS) and the Ubuntu Desktop guest run separate kernels. |
| 103 | +Check the path to where the Ubuntu Desktop kernel binary is stored by running: |
| 104 | + |
| 105 | +```bash |
| 106 | +ls /boot/vmlinuz-$(uname -r) |
| 107 | +``` |
| 108 | + |
| 109 | +Examples of processes involving the kernel include: |
| 110 | + |
| 111 | +- When a display server is launched, its protocol communicates with the kernel, which then directs the request to the GUI-related hardware (GPU, frame buffer, etc.). |
| 112 | +- Storage and CPU resources can be allocated to a launched application running [outside the kernel](https://en.wikipedia.org/wiki/User_space_and_kernel_space). |
| 113 | +- An application can be loaded to run inside the kernel using [Extended Berkeley Packet Filter (eBPF)](https://documentation.ubuntu.com/server/explanation/intro-to/ebpf/). |
0 commit comments