MineOS-node Turnkey

From MineOS Wiki
Jump to navigation Jump to search

From a functioning MineOS turnkey installation, did the following commands after upgrading the server:

apt-get update
apt-get dist-upgrade
update-rc.d mineos remove
update-rc.d minecraft remove

cd /usr/games
rm -rf minecraft/
git clone https://github.com/hexparrot/mineos-node.git minecraft

apt-get install curl
curl -sL https://deb.nodesource.com/setup | bash -
apt-get install nodejs
apt-get install build-essential

cd /
wget https://download.samba.org/pub/rsync/src/rsync-3.1.1.tar.gz
tar -xf rsync-3.1.1.tar.gz
cd rsync-3.1.1/
./configure
make
make install

cd /usr/games/minecraft
npm install --all

apt-get install supervisor
cp /usr/games/minecraft/init/supervisor_conf /etc/supervisor/conf.d/mineos.conf
supervisorctl reread
supervisorctl update
supervisorctl start mineos

iptables -A INPUT -p tcp -m tcp --dport 8443 -j ACCEPT