Skip to content

Instantly share code, notes, and snippets.

@ben-kenney
Created June 6, 2021 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ben-kenney/a63c510cf554ab5f0749f81deae47c55 to your computer and use it in GitHub Desktop.
Save ben-kenney/a63c510cf554ab5f0749f81deae47c55 to your computer and use it in GitHub Desktop.
Script to install x2go on ubuntu
#!/bin/bash
# install x2go with xfce
# based on https://fabianlee.org/2019/02/03/ubuntu-x2go-on-ubuntu-bionic-for-remote-desktop-access/
# Should be able to run this script as your regular user if they are in the sudoers list
# ensure user is not root
if [[ $EUID -eq 0 ]]; then
echo "This script should not be run as root, but $USER should have sudo privileges"
exit 1
fi
# reject if .ssh and config are not setup correctly
if [ ! -f ~/.ssh/config ]; then
echo "Please setup ssh first!"
exit 1
fi
sudo apt-add-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install -y x2goserver x2goserver-xsession
sudo apt-get install -y xfce4 xfce4-terminal
sudo apt-get install -y gnome-icon-theme tango-icon-theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment