Skip to content

Instantly share code, notes, and snippets.

@realdomdom
Last active November 13, 2016 19:25
Show Gist options
  • Save realdomdom/c435a24238cf1970aa0e5a21142b71ef to your computer and use it in GitHub Desktop.
Save realdomdom/c435a24238cf1970aa0e5a21142b71ef to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo "THIS SCRIPT ONLY WORKS ON UBUNTU FOR NOW." > /dev/tty;
echo "IT WILL INSTALL THE HALO: CUSTOM EDITION DEDICATED SERVER PROGRAM, PATCH IT, INSTALL THE OPEN SAUCE AND SAPP MODIFICATIONS, AND DOWNLOAD CUSTOM MAPS." > /dev/tty;
echo "IT WILL ALSO INSTALL THE SOFTWARE-PROPERTIES PACKAGE, FLUXBOX, X2GO SERVER, WINE AND OTHER DEPENDENCIES." > /dev/tty;
if [ "$(uname)" == "Darwin" ]; then
{ echo "YOU ARE RUNNING MAC OS." > /dev/tty; exit 1; }
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
{ echo "YOU ARE RUNNING WINDOWS." > /dev/tty; exit 1; }
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
if [ "$(whoami)" != "root" ]; then
{ echo "YOU ARE NOT RUNNING THIS SCRIPT AS ROOT." > /dev/tty; exit 1; }
fi
$ command -v apt-get > /dev/null 2>&1 || { echo "YOU ARE NOT RUNNING UBUNTU." > /dev/tty; exit 1; }
sudo apt-get update;
sudo apt-get -y install software-properties-common || sudo apt-get -y install python-software-properties || sudo apt-get -y install python3-software-properties;
sudo add-apt-repository -y ppa:x2go/stable;
sudo apt-get update;
sudo apt-get -y install fluxbox wine x2goserver x2goserver-xsession
#TODO
exit 0;
fi
echo "YOU ARE RUNNING AN UNSPECIFIED OPERATING SYSTEM." > /dev/tty;
exit 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment