moving up

This commit is contained in:
godot 2024-06-30 22:36:05 +02:00
parent 6b079a5e92
commit ad461f43db
2 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,7 @@ To switch user use: su minecraft -s /bin/bash
# To DO
- [ ] Basic commands
- [ ] server.properties + run.sh
- [ ] server.properties + start.sh + eula.txt
- [ ] iptable commands
- [ ] my own .service file
- [ ] modification of run.sh

View File

@ -1,6 +1,14 @@
sudo apt update
sudo apt upgrade
sudo apt install openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim
sudo apt install openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim p7zip-full -y
groupadd minecraft
useradd --system --shell /usr/sbin/nologin --home /opt/minecraft -g minecraft minecraf
# find out if /opt/minecraft exist else mkdir /opt/minecraft
mkdir /opt/minecraft # it may exist
cp Mods.zip Server-v1.2.1.zip /opt/minecraft/
cd /opt/minecraft/
7z x Server-v1.2.1.zip
mv Mods.zip mods/
7z x mods/Mods.zip -omods