How to install xsrv on Clear Linux Latest

The following steps will guide you through the process of installing xsrv on Clear Linux Latest.

  1. Open a terminal window on your Clear Linux system.

  2. Install the necessary dependencies:

sudo swupd bundle-add x11 x11-dev
  1. Clone the xsrv repository:
git clone https://github.com/clearlinux-pkgs/xsrv.git
  1. Change into the xsrv directory:
cd xsrv
  1. Build the xsrv package:
sudo makepkg
  1. Install the xsrv package:
sudo swupd bundle-add xsrv-<version>-<release>.x86_64.swupd

Replace <version> and <release> with the appropriate values for the xsrv package you just built.

  1. Start the xsrv server:
xsrv :1

This will start the xsrv server on display 1.

  1. Connect to the xsrv server from another machine:
ssh -X <user>@<ip_address> "env DISPLAY=:1 xterm &"

Replace <user> and <ip_address> with the appropriate values for your system.

  1. You should now see an xterm window on your local machine. Congratulations, you have successfully installed and configured xsrv on Clear Linux!

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!