Last active
November 18, 2023 11:11
-
-
Save Serial-Comma/139f5f2b9a0cf3182caa75ec08abbd0c to your computer and use it in GitHub Desktop.
How to ACTUALLY install MineOS (step-by-step, CentOS 8)
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
//How got it to work | |
//Prerequisites: | |
//Download the Centos Stream 8 iso to a USB and install onto your target machine (Its easy as it has a GUI) | |
//Pick the 'Server with GUI' option as the Base enviroment when they ask for your software selection, as it made it easy and has some cool features | |
//Get into root | |
sudo -i | |
//Install nvm (makes installing node easier) | |
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | |
source ~/.bashrc | |
nvm install 10 | |
//node 10 is the only one that I found to work, going up or down broke things | |
//Add community repo (idk is it like the AUR?? Anyway some stuff didnt work until i did this) | |
dnf config-manager --set-enabled powertools | |
dnf install epel-release epel-next-release | |
//Install the stuffs | |
yum update -y | |
yum upgrade -y | |
yum -y install git wget openssl openssl-devel gcc-c++ make rsync screen rdiff-backup nodejs | |
//Install the webui | |
git config core.filemode false | |
chmod +x generate-sslcert.sh mineos_console.js webui.js | |
cp mineos.conf /etc/mineos.conf | |
cd /usr/games/minecraft | |
npm install --unsafe-perm | |
//If failed, do `nvm use 10 and npm rebuild --unsafe-perm`. Also consider doing `npm-install node-gyp` | |
//Generate SSL cert | |
./generate-sslcert.sh | |
//Make stuff executable | |
chmod +x ./webui.js | |
//Run the thing | |
systemctl enable mineos | |
systemctl start mineos | |
systemctl status mineos | |
//Check that the service is running | |
//Debugging: | |
//Try to do ./webui.js. If it works, run | |
chmod +x ./reset_webui.sh | |
./reset_webui.sh | |
//Firewall stuff (I like ufw) | |
yum -y ufw | |
systemctl enable ufw | |
systemctl start ufw | |
ufw allow ssh | |
ufw allow 25565 | |
ufw alllow 8443 | |
//Install Java 17 (for minecraft 1.20) | |
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm | |
sudo yum -y install ./jdk-17_linux-x64_bin.rpm | |
//Reboot before you try it out | |
sudo reboot now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment