How To Install xwayland on Ubuntu 20.04

In this tutorial we learn how to install xwayland on Ubuntu 20.04. xwayland is Xwayland X server Xwayland X server Xwayland X server

Introduction

In this tutorial we learn how to install xwayland on Ubuntu 20.04.

What is xwayland

xwayland is:

This package provides an X server running on top of wayland, using wayland input devices for input and forwarding either the root window or individual top-level windows as wayland surfaces. Task: ubuntu-desktop-minimal, ubuntu-desktop

Package: xwayland Architecture: amd64 Version: 2:1.20.9-2ubuntu1.2~20.04.2 Priority: optional Section: x11 Source: xorg-server Origin: Ubuntu Maintainer: Ubuntu X-SWAT [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2467 Depends: xserver-common (>= 2:1.20.9-2ubuntu1.2~20.04.2), libaudit1 (>= 1:2.2.1), libbsd0 (>= 0.7.0), libc6 (>= 2.29), libdrm2 (>= 2.4.75), libepoxy0 (>= 1.0), libgbm1 (>= 17.1.0~rc2), libgcrypt20 (>= 1.8.0), libgl1, libpixman-1-0 (>= 0.30.0), libselinux1 (>= 2.0.82), libsystemd0, libunwind8, libwayland-client0 (>= 1.9.91), libxau6, libxdmcp6, libxfont2 (>= 1:2.0.1), libxshmfence1 Filename: pool/main/x/xorg-server/xwayland_1.20.9-2ubuntu1.2~20.04.2_amd64.deb Size: 867220 MD5sum: df844abcd2532635355ccfef5500630d SHA1: 8ea1b8e4c215f9b2a1cafdbd783da9bceb298079 SHA256: 02408039bbc2e44f652f4d2dbc5ff5aaf791ddbfe0c6f05a089eb30bc982ffa7 SHA512: c1ea57d53704adbf2202f8fb99d3c720cdda64f6c17a5cc5777279f96d4848fb8f8c23ae242a99aca4ca10bb83a2950ab024a83352d7ed96f14128c07cf97755 Homepage: https://www.x.org/ Description-en: Xwayland X server This package provides an X server running on top of wayland, using wayland input devices for input and forwarding either the root window or individual top-level windows as wayland surfaces. Task: ubuntu-desktop-minimal, ubuntu-desktop

Package: xwayland Architecture: amd64 Version: 2:1.20.8-2ubuntu2 Priority: optional Section: x11 Source: xorg-server Origin: Ubuntu Maintainer: Ubuntu X-SWAT [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2462 Depends: xserver-common (>= 2:1.20.8-2ubuntu2), libaudit1 (>= 1:2.2.1), libbsd0 (>= 0.7.0), libc6 (>= 2.29), libdrm2 (>= 2.4.75), libepoxy0 (>= 1.0), libgbm1 (>= 17.1.0~rc2), libgcrypt20 (>= 1.8.0), libgl1, libpixman-1-0 (>= 0.30.0), libselinux1 (>= 2.0.82), libsystemd0, libunwind8, libwayland-client0 (>= 1.9.91), libxau6, libxdmcp6, libxfont2 (>= 1:2.0.1), libxshmfence1 Filename: pool/main/x/xorg-server/xwayland_1.20.8-2ubuntu2_amd64.deb Size: 865224 MD5sum: 537fda6d7f8dea365059fcfac275d051 SHA1: 94920a552c59b6e6f9785facfbb8cd27d7c26ea4 SHA256: 1def1f1875852bd872c97e880cf0820a026b385ea3b4368b99990355e4f568e5 Homepage: https://www.x.org/ Description-en: Xwayland X server This package provides an X server running on top of wayland, using wayland input devices for input and forwarding either the root window or individual top-level windows as wayland surfaces. Task: ubuntu-desktop-minimal, ubuntu-desktop

There are three methods to install xwayland on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install xwayland Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xwayland using apt-get by running the following command:

sudo apt-get -y install xwayland

Install xwayland Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xwayland using apt by running the following command:

sudo apt -y install xwayland

Install xwayland Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install xwayland using aptitude by running the following command:

sudo aptitude -y install xwayland

How To Uninstall xwayland on Ubuntu 20.04

To uninstall only the xwayland package we can use the following command:

sudo apt-get remove xwayland

Uninstall xwayland And Its Dependencies

To uninstall xwayland and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove xwayland

Remove xwayland Configurations and Data

To remove xwayland configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge xwayland

Remove xwayland configuration, data, and all of its dependencies

We can use the following command to remove xwayland configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xwayland

References

Summary

In this tutorial we learn how to install xwayland package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.