Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Downloads, installs and configures components required for the MineOS Web User Interface on apt-get based systems.
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
# update repositories
curl -sL | bash -
apt-get update
# download the necessary prerequisite components for mineos
apt-get -y install nodejs supervisor git rdiff-backup screen build-essential openjdk-7-jre-headless
# download the most recent mineos web-ui files from github
mkdir -p /usr/games
cd /usr/games
git clone minecraft
cd minecraft
git config core.filemode false
chmod +x service.js mineos_console.js webui.js
ln -s /usr/games/minecraft/mineos_console.js /usr/local/bin/mineos
cp mineos.conf /etc/mineos.conf
npm install
# distribute service related files
cp init/supervisor_conf /etc/supervisor/conf.d/mineos.conf
# generate self-signed certificate
# start the background service
supervisorctl reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment