How to Install X2go on Elementary OS

X2go is a server-based computing environment that allows users to access applications and desktop environments remotely. In this tutorial, we will walk you through the process of installing X2go on Elementary OS Latest.

Step 1: Add X2go Repository

  1. Open the terminal by pressing Ctrl + Alt + T.

  2. Run the following command to add X2go repository to your system:

    sudo add-apt-repository ppa:x2go/stable
    
  3. Press Enter when prompted to continue.

  4. Update your system by running the following command:

    sudo apt-get update
    

Step 2: Install X2go Packages

  1. Run the following command to install X2go server and client packages:

    sudo apt-get install x2goserver x2goserver-xsession x2goclient
    
  2. Hit Enter when prompted.

Step 3: Configure X2go Server

  1. Open the terminal and run the following command to edit the X2go server configuration file:

    sudo nano /etc/x2go/x2goserver.conf
    
  2. Find the following lines in the file:

    # session limits
    # Maximum number of parallel sessions (per user account) that are allowed
    # Default: 2
    SessionLimit=2
    
  3. Change the value of SessionLimit to the desired number of simultaneous sessions. For example, if you want to allow three sessions, change the value to:

    SessionLimit=3
    
  4. Save the changes by pressing Ctrl + X, then Y, and then Enter.

Step 4: Start X2go Server

  1. Run the following command to start the X2go server:

    sudo systemctl start x2goserver.service
    
  2. Verify that the X2go server is running without any errors by running:

    sudo systemctl status x2goserver.service
    

    If everything is running fine, you should see the following:

    ● x2goserver.service - X2Go Server
         Loaded: loaded (/lib/systemd/system/x2goserver.service; enabled; vendor preset: enabled)
         Active: active (running) since Sun 2021-10-24 15:22:47 IST; 2min 56s ago
      Main PID: 3035 (x2gordp)
         Tasks: 5 (limit: 7695)
         Memory: 6.0M
         CGroup: /system.slice/x2goserver.service
                 ├─3035 /usr/bin/x2gordp 8888
                 ├─3050 /usr/bin/x2gocleansessions
                 ├─3054 /usr/bin/x2godesktopsharing
                 ├─3058 /usr/bin/x2gomountdirs
                 └─3059 /usr/bin/x2goumountdirs
    

Step 5: Connect to X2go Server

  1. Open the X2go client by searching for it in the applications menu.

  2. Enter the IP address of the remote server and select the session type, either "Single Application" or "Full Desktop".

  3. Enter your username and password.

  4. Click on "New Session" to connect to the remote server.

You have now successfully installed and configured X2go on Elementary OS Latest. You can now access applications or desktop environments remotely using X2go.

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!