This commit is contained in:
godot 2024-07-02 20:34:57 +00:00
commit a0e66513f1
2 changed files with 6 additions and 5 deletions

View File

@ -1,10 +1,11 @@
To switch user use: su minecraft -s /bin/bash
To switch user use: `su minecraft -s /bin/bash`
# To DO
- [ ] Basic commands
- [x] server.properties + run.sh + eula.txt
- [ ] iptable commands
- [t] my own .service file
- [!] my own .service file
- [x] modification of run.sh
- [ ] screen usege
- [ ] SSH keys

View File

@ -1,6 +1,6 @@
sudo apt update
sudo apt upgrade
sudo apt install openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim p7zip-full -y
sudo apt install qemu-guest-agent 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
mkdir /opt/minecraft # it may exist
@ -17,7 +17,7 @@ rm server.properties
mv ../server.properties .
7z x ../Mods.zip -omods
./run.sh
cp mc-forge.service /etc/systemd/system/
chown -R minecraft:minecraft /opt/minecraft