cleaning after win
This commit is contained in:
parent
a0e66513f1
commit
8ec03e83a5
@ -2,10 +2,11 @@ To switch user use: `su minecraft -s /bin/bash`
|
|||||||
|
|
||||||
# To DO
|
# To DO
|
||||||
- [ ] Basic commands
|
- [ ] Basic commands
|
||||||
|
- [ ] Permisionss of files in this git
|
||||||
- [x] server.properties + run.sh + eula.txt
|
- [x] server.properties + run.sh + eula.txt
|
||||||
- [ ] iptable commands
|
- [ ] iptable commands
|
||||||
- [!] my own .service file
|
- [x] my own .service file
|
||||||
- [x] modification of run.sh
|
- [x] modification of run.sh
|
||||||
- [ ] screen usege
|
- [x] screen usege
|
||||||
- [ ] SSH keys
|
- [ ] SSH keys
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ sudo apt install qemu-guest-agent openjdk-17-jre-headless neofetch btop screen w
|
|||||||
groupadd minecraft
|
groupadd minecraft
|
||||||
useradd --system --shell /usr/sbin/nologin --home /opt/minecraft -g minecraft minecraf
|
useradd --system --shell /usr/sbin/nologin --home /opt/minecraft -g minecraft minecraf
|
||||||
mkdir /opt/minecraft # it may exist
|
mkdir /opt/minecraft # it may exist
|
||||||
cp Mods.zip Forge-1.20.1.jar eula.txt server.properties run.sh /opt/
|
cp Mods.zip Forge-1.20.1.jar eula.txt server.properties run.sh mc-forge.service /opt/
|
||||||
mv Forge-1.20.1.jar minecraft/
|
mv Forge-1.20.1.jar minecraft/
|
||||||
cd /opt/minecraft/
|
cd /opt/minecraft/
|
||||||
java -Xms512M -Xmx2048M -jar Forge-1.20.1.jar --installServer
|
java -Xms512M -Xmx2048M -jar Forge-1.20.1.jar --installServer
|
||||||
@ -15,9 +15,14 @@ mv ../eula.txt .
|
|||||||
rm -rf world/
|
rm -rf world/
|
||||||
rm server.properties
|
rm server.properties
|
||||||
mv ../server.properties .
|
mv ../server.properties .
|
||||||
|
rm run.sh
|
||||||
|
mv ../run.sh .
|
||||||
7z x ../Mods.zip -omods
|
7z x ../Mods.zip -omods
|
||||||
./run.sh
|
|
||||||
cp mc-forge.service /etc/systemd/system/
|
cp mc-forge.service /etc/systemd/system/
|
||||||
chown -R minecraft:minecraft /opt/minecraft
|
chown -R minecraft:minecraft /opt/minecraft
|
||||||
|
systemctl enable mc-forge
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ./run.sh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user