How to Install XSrv on Manjaro

XSrv is a lightweight X server that can run on Windows, macOS, and Linux. In this tutorial, we will focus on how to install XSrv on Manjaro.

Prerequisites

Before we begin, make sure you have the following prerequisites:

Step 1: Install Required Packages

The first thing you need to do is install the required packages to build XSrv. Open your terminal and run the following command:

sudo pacman -S git cmake make gcc intltool libx11 libxkbfile

This command will install Git, CMake, Make, GCC, Intltool, libX11, and libxkbfile.

Step 2: Download XSrv

Go to the XSrv GitHub repository and download the latest version of XSrv by clicking on the green "Code" button and selecting "Download ZIP".

Extract the downloaded file to a directory of your choice using a file archiver or unzip utility.

Step 3: Build XSrv

Open a terminal and navigate to the directory where you extracted XSrv. Use the following commands to build XSrv:

cd xs-master
mkdir build
cd build
cmake ..
make

The above commands will:

  1. Navigate to the xs-master directory.
  2. Create a build directory.
  3. Navigate to the build directory.
  4. Run CMake to configure the build process for XSrv.
  5. Build XSrv using Make.

Step 4: Install XSrv

Once the build process is complete, install XSrv to your system using:

sudo make install

This command will install XSrv to the default location of /usr/local/bin.

Step 5: Start XSrv

To start XSrv, open a terminal and run:

XWin -listen tcp

This command will start XSrv and listen for incoming connections over TCP.

Congratulations, you have successfully installed XSrv on Manjaro. You can now use the XSrv X server to run graphical applications.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!