Skip to content

Instantly share code, notes, and snippets.

@hexparrot
Forked from hexparrot/install_mineos
Last active August 29, 2015 13:58
Show Gist options
  • Save hexparrot/9959253 to your computer and use it in GitHub Desktop.
Save hexparrot/9959253 to your computer and use it in GitHub Desktop.
Downloads, installs and configures components required for the MineOS Web User Interface on pacman based systems.
#!/bin/sh
# download the necessary prerequisite components for mineos
pacman -S --noconfirm screen wget git rsync rdiff-backup python2-pip jre7-openjdk
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.arch /etc/systemd/system/mineos.service
cp init/minecraft.arch /etc/systemd/system/minecraft.service
systemctl enable mineos.service
systemctl enable minecraft.service
cp mineos.conf /etc/
# generate self-signed certificate
./generate-sslcert.sh
# start the background service
systemctl start mineos.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment