Skip to content

Instantly share code, notes, and snippets.

@hexparrot
Last active March 17, 2020 22:03
Show Gist options
  • Save hexparrot/6922633 to your computer and use it in GitHub Desktop.
Save hexparrot/6922633 to your computer and use it in GitHub Desktop.
Downloads, installs and configures components required for the MineOS Web User Interface on apt-get based systems.
#!/bin/sh
# update repositories
apt-get update
# download the necessary prerequisite components for mineos
apt-get -y install screen python-pip rdiff-backup git openjdk-7-jre-headless
pip2 install cherrypy==3.2.3
# download the most recent mineos web-ui files from github
mkdir -p /usr/games
cd /usr/games
git clone git://github.com/hexparrot/mineos minecraft
cd minecraft
git config core.filemode false
chmod +x server.py mineos_console.py generate-sslcert.sh
ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos
# distribute service related files
cd /usr/games/minecraft
cp init/mineos /etc/init.d/
chmod 744 /etc/init.d/mineos
update-rc.d mineos defaults
cp init/minecraft /etc/init.d/
chmod 744 /etc/init.d/minecraft
update-rc.d minecraft defaults
cp mineos.conf /etc/
# generate self-signed certificate
./generate-sslcert.sh
# start the background service
service mineos start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment