better comments, some typoes, more logic
This commit is contained in:
parent
0c47aee8a6
commit
a25ff7c9f2
22
README.md
22
README.md
@ -1,34 +1,16 @@
|
||||
To switch user use:
|
||||
`su minecraft -s /bin/bash`
|
||||
|
||||
#TODO clean this shit
|
||||
|
||||
# To DO
|
||||
- [x] Basic commands
|
||||
- [x] server.properties + run.sh + eula.txt
|
||||
- [x] iptable commands
|
||||
- [x] my own .service file
|
||||
- [x] screen usege
|
||||
- [x] SSH keys
|
||||
- [x] do not hardcode variables
|
||||
- [x] BASH script
|
||||
- [x] set up of min/max RAM
|
||||
- [x] auto add proxy mod
|
||||
- [x] config/pcf-common.toml Forwarding secrets
|
||||
- [x] Update server.properties (whitelist, online-mode=false, name, ...)
|
||||
- [x] ModernForwarding
|
||||
- [x] LXC SSH server socket
|
||||
- [x] deb13 update
|
||||
- [ ] Do not stack mods in this repo
|
||||
- [ ] Remaking log coments to make sense
|
||||
- [x] Remaking log coments to make sense
|
||||
- [ ] Better handeling farwarding secrets
|
||||
- [ ] Better world gen
|
||||
- [ ] Research new modpack
|
||||
|
||||
# Changes
|
||||
|
||||
## Server side
|
||||
- [ ] Remove ftb stack
|
||||
- [x] [Impactor economy API](https://modrinth.com/mod/impactor/version/5.2.7+1.20.1-Forge)
|
||||
- [x] [Proxy-compatible-forge](https://cdn.modrinth.com/data/vDyrHl8l/versions/K43ePlgq/proxy-compatible-forge-1.20-1.1.4.jar)
|
||||
- [x] [SkinRestorer](https://modrinth.com/mod/skinrestorer)
|
||||
- [ ] [Prometheus permmisions](https://modrinth.com/mod/prometheus)
|
||||
|
||||
BIN
data/playersync-1.21.1.jar
Normal file
BIN
data/playersync-1.21.1.jar
Normal file
Binary file not shown.
25
script.sh
25
script.sh
@ -23,8 +23,9 @@ elif [[ "$ansLxcSshServer" =~ ("Y"|"y") || -z $ansLxcSshServer ]]; then
|
||||
|
||||
systemctl disable ssh.socket
|
||||
systemctl enable ssh
|
||||
# TODO: Prove this works, and /etc/ssh/sshd_config
|
||||
# TODO: Public keys import needed?
|
||||
|
||||
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
|
||||
|
||||
else
|
||||
printf "\nHope you know what you are doing, I am not able to check your answer."
|
||||
fi
|
||||
@ -99,6 +100,9 @@ printf "Do you want to set up SkinRestorer [Y/n]: \n"
|
||||
read ansSkinRestorer
|
||||
|
||||
|
||||
printf "Do you want to set up PlayerSync [Y/n]: \n"
|
||||
read ansPlayerSync
|
||||
|
||||
sleep 2
|
||||
|
||||
### Update ###
|
||||
@ -110,12 +114,11 @@ apt upgrade -y
|
||||
apt autoremove --purge -y
|
||||
|
||||
if [[ "$ansDebUpdate" =~ ("N"|"n") ]]; then
|
||||
printf "+ Thanks, working on next bit\n"
|
||||
printf "+ Not upgrading to Debian 13, may cause problems with java versions. Hope you know what you are doing.\n"
|
||||
|
||||
elif [[ "$ansDebUpdate" =~ ("Y"|"y") || -z $ansDebUpdate ]]; then
|
||||
printf "+ Working on updating Debian 12 Bookworm into Debian 13 Trixie"
|
||||
|
||||
|
||||
# changes every bookworm int trixie
|
||||
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
|
||||
|
||||
@ -152,12 +155,12 @@ mkdir /opt/minecraft
|
||||
cd /opt/minecraft/
|
||||
|
||||
### Download forge server ###
|
||||
printf "+ Downloading and installing Forge 1.21.1 \n \n"
|
||||
wget https://maven.minecraftforge.net/net/minecraftforge/forge/1.21.1-52.1.0/forge-1.21.1-52.1.0-installer.jar
|
||||
|
||||
mv forge* Forge.jar
|
||||
|
||||
### Installing server ###
|
||||
printf "+ Installing Forge 1.21.1 \n \n"
|
||||
|
||||
java -Xms512M -Xmx2048M -jar Forge.jar --installServer
|
||||
|
||||
@ -202,7 +205,7 @@ else
|
||||
echo "-Xms?G # in place of ? put number of RAM you want to set ass minimum"
|
||||
fi
|
||||
|
||||
### Other shit configuraton ###
|
||||
### Other configuraton ###
|
||||
echo eula=true > eula.txt
|
||||
|
||||
cd -
|
||||
@ -238,6 +241,14 @@ if [[ "$ansSkinRestorer" =~ ["y"|"Y"] || -z $ansSkinRestorer ]]; then
|
||||
mv skinrestorer*.jar /opt/minecraft/mods/
|
||||
fi
|
||||
|
||||
if [[ "$ansPlayerSync" =~ ["y"|"Y"] || -z $ansPlayerSync ]]; then
|
||||
cd -
|
||||
# Not using wget because of castom modification to this mod
|
||||
mv data/playersync-1.21.1.jar /opt/minecraft/mods
|
||||
cd /opt/minecarft/
|
||||
fi
|
||||
|
||||
|
||||
### Permisions ###
|
||||
printf "\n+ Permision handeling\n"
|
||||
chown -R minecraft:minecraft /opt/minecraft
|
||||
@ -290,7 +301,7 @@ fi
|
||||
if [[ "$minRam" = "Error" || "$maxRam" = "Error" ]]; then
|
||||
|
||||
printf "\n Encountred some eror in Ram settings"
|
||||
pritnf "\n Manual configuration needed"
|
||||
printf "\n Manual configuration needed"
|
||||
printf "\n Open /opt/minecraft/user_jvm_args.txt in your favorite editor. File contains more instructions"
|
||||
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user