Skip to content

Instantly share code, notes, and snippets.

@hexparrot
Forked from hexparrot/install_mineos
Last active August 29, 2015 14:04
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 hexparrot/280ee29df628f9810ca9 to your computer and use it in GitHub Desktop.
Save hexparrot/280ee29df628f9810ca9 to your computer and use it in GitHub Desktop.
Downloads, installs and configures components required for the MineOS Web User Interface on zypper-based systems.
#!/bin/sh
# download the necessary prerequisite components for mineos
zypper -n remove patterns-openSUSE-minimal_base-conflicts
zypper -n install screen
zypper -n install openssl
zypper -n install libopenssl-devel
zypper -n install git
zypper -n install java-1_7_0-openjdk-headless
zypper -n install python-xml
zypper -n install python-CherryPy
zypper -n install rdiff-backup
# 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.suse /etc/init.d/mineos
chmod 744 /etc/init.d/mineos
chkconfig --level 345 mineos on
cp init/minecraft.suse /etc/init.d/minecraft
chmod 744 /etc/init.d/minecraft
chkconfig --level 345 minecraft on
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