Last active
August 30, 2018 17:11
-
-
Save hexparrot/9f30e277c3dd0b95874c 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 using systemd.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# download the necessary prerequisite components for mineos | |
pacman -S --noconfirm git rsync rdiff-backup screen jre8-openjdk-headless nodejs npm base-devel | |
# download the most recent mineos web-ui files from github | |
mkdir -p /usr/games | |
cd /usr/games | |
git clone https://github.com/hexparrot/mineos-node.git minecraft | |
cd minecraft | |
git config core.filemode false | |
chmod +x service.js mineos_console.js generate-sslcert.sh webui.js | |
npm install --all --unsafe-perm | |
ln -s /usr/games/minecraft/mineos_console.js /usr/local/bin/mineos | |
# distribute service related files | |
cp /usr/games/minecraft/init/systemd_conf /etc/systemd/system/mineos.service | |
systemctl enable mineos | |
# generate self-signed certificate | |
./generate-sslcert.sh | |
# start the background service | |
systemctl start mineos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment