#!/bin/bash #Warning, this script is not fully automatic cd ~/ sudo apt insall openjdk-11-jdk echo "make new directory" mkdir mindustry echo "going into directory" cd mindustry echo "downloading servers" wget https://owncloud.hribhrib.at/index.php/s/PXmojw1k2WWI2Jr/download -O servers.tar.xz echo "download finished" echo "unzip" tar xf servers.tar.xz echo "enter dir" cd servers/ echo "unzip stable" unzip -d stable mindustry-server.zip echo "unzip unstable" unzip -d unstable mindustry-server-unstable.zip echo "starting stable server" tmux cd ~/mindustry/servers/stable/ ./run_server.sh config autosave true config autosaveSpacing 120 host #Ctrl-b + d #tmux attach-session -t 0 echo "starting unstable server" tmux cd ~/mindustry/servers/unstable/ ./run_server.sh config port 6568 config autosave true config autosaveSpacing 120 host #Ctrl-b + d #tmux attach-session -t 0 echo "started server"