Created
June 6, 2021 20:29
-
-
Save ben-kenney/a63c510cf554ab5f0749f81deae47c55 to your computer and use it in GitHub Desktop.
Script to install x2go on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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