Projekt Joachims Minecraftserver: Difference between revisions
Jump to navigation
Jump to search
(New page: = Joachims Minecraftserver = Hi, hier werd ich Infos zum Server reinschreiben, wenn ich welche habe. Bis dahin: verwende /help :)) |
(→Infos) |
||
(20 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
= Joachims Minecraftserver = | = Joachims Minecraftserver = | ||
Some notes from 1.19.3 install: | |||
* needs openjdk 17 (as documented online) not provided by opensuse leap 15.3 | |||
* installed openjdk 17 from https://build.opensuse.org/package/show/home%3Aecsos/java-17-openjdk (add repo, ignore errors, install) | |||
* script /usr/local/spigot/new-spigot.sh (similar to below) run with sudo | |||
* script got stuck somewhere in root shell (screen) | |||
* sed eula manually, chown -R joachim run | |||
* changed port in server properties (at 3 places) from *5 to *9 | |||
* removed a no longer supported java parameter (-XX:MaxPermSize=256M) | |||
* start manually as service file would (not used start.sh) -> worked | |||
* enabled/started service | |||
Neue Spigot Version? see also /usr/local/spigot/README.txt | |||
<nowiki> | |||
SREV=1.16.3 | |||
PORT=25565 | |||
SDIR="spigot-v$SREV" | |||
BASEDIR=/usr/local/spigot | |||
mkdir -p "$BASEDIR/$SDIR" | |||
cd "$BASEDIR/$SDIR" | |||
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar | |||
java -Xms8G -Xmx8G -XX:+UseG1GC -jar BuildTools.jar --rev "$SREV" | |||
# java -jar BuildTools.jar | |||
mkdir run | |||
screen -S spigot | |||
cd run | |||
cat <<EOF >start.sh | |||
#!/bin/sh | |||
java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar | |||
EOF | |||
chmod +x start.sh | |||
ln -sf ../craftbukkit-*.jar craftbukkit.jar | |||
ln -sf ../spigot-*.jar spigot.jar | |||
./start.sh | |||
sed -i s/false/true/ eula.txt | |||
cat <<EOF >server.properties | |||
difficulty=3 | |||
snooper-enabled=false | |||
server-port=$PORT | |||
level-name=world | |||
motd=Joba's Spigot $SREV Server | |||
EOF | |||
cat <<EOF >/etc/systemd/system/spigot-$SREV.service | |||
[Unit] | |||
Description=Spigot v$SREV Minecraft Server | |||
RequiresMountsFor=$BASEDIR | |||
[Service] | |||
Type=forking | |||
User=joachim | |||
ExecStart=/usr/bin/screen -d -m -L -S spigot-v$SREV java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar | |||
WorkingDirectory=$BASEDIR/$SDIR/run | |||
Restart=on-failure | |||
[Install] | |||
WantedBy=multi-user.target | |||
EOF | |||
systemctl daemon-reload | |||
systemctl start spigot-$SREV.service | |||
sleep 1 | |||
systemctl status spigot-$SREV.service | |||
</nowiki> | |||
== Live Map == | |||
=== direkt === | |||
* Von außerhalb [[http://banzhaf.homeip.net:8123/ Remote Livemap]] | |||
* Bei mir zuhause [[http://job1:8123/ Lokale Livemap]] | |||
=== mit Webserver (Test) === | |||
* Von außerhalb [[http://banzhaf.homeip.net/minecraft/livemap/ Remote Livemap]] | |||
* Bei mir zuhause [[http://job4/minecraft/livemap/ Lokale Livemap]] | |||
== Hilfe == | |||
[[Minecraft_Hilfe|Kommandoübersicht]] | |||
== Plugins == | |||
[[BukkitPlugins|Bukkit Plugins]] | |||
== Infos == | |||
Hi, | Hi, | ||
Line 6: | Line 92: | ||
Bis dahin: verwende /help :) | Bis dahin: verwende /help :) | ||
Since some time only ms accounts work. migrated my joba1 mc beta account to j@google to joba17508 :-/ (works on job4) |
Latest revision as of 13:36, 11 January 2023
Joachims Minecraftserver
Some notes from 1.19.3 install:
- needs openjdk 17 (as documented online) not provided by opensuse leap 15.3
- installed openjdk 17 from https://build.opensuse.org/package/show/home%3Aecsos/java-17-openjdk (add repo, ignore errors, install)
- script /usr/local/spigot/new-spigot.sh (similar to below) run with sudo
- script got stuck somewhere in root shell (screen)
- sed eula manually, chown -R joachim run
- changed port in server properties (at 3 places) from *5 to *9
- removed a no longer supported java parameter (-XX:MaxPermSize=256M)
- start manually as service file would (not used start.sh) -> worked
- enabled/started service
Neue Spigot Version? see also /usr/local/spigot/README.txt
SREV=1.16.3 PORT=25565 SDIR="spigot-v$SREV" BASEDIR=/usr/local/spigot mkdir -p "$BASEDIR/$SDIR" cd "$BASEDIR/$SDIR" wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar java -Xms8G -Xmx8G -XX:+UseG1GC -jar BuildTools.jar --rev "$SREV" # java -jar BuildTools.jar mkdir run screen -S spigot cd run cat <<EOF >start.sh #!/bin/sh java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar EOF chmod +x start.sh ln -sf ../craftbukkit-*.jar craftbukkit.jar ln -sf ../spigot-*.jar spigot.jar ./start.sh sed -i s/false/true/ eula.txt cat <<EOF >server.properties difficulty=3 snooper-enabled=false server-port=$PORT level-name=world motd=Joba's Spigot $SREV Server EOF cat <<EOF >/etc/systemd/system/spigot-$SREV.service [Unit] Description=Spigot v$SREV Minecraft Server RequiresMountsFor=$BASEDIR [Service] Type=forking User=joachim ExecStart=/usr/bin/screen -d -m -L -S spigot-v$SREV java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar WorkingDirectory=$BASEDIR/$SDIR/run Restart=on-failure [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl start spigot-$SREV.service sleep 1 systemctl status spigot-$SREV.service
Live Map
direkt
- Von außerhalb [Remote Livemap]
- Bei mir zuhause [Lokale Livemap]
mit Webserver (Test)
- Von außerhalb [Remote Livemap]
- Bei mir zuhause [Lokale Livemap]
Hilfe
Plugins
Infos
Hi,
hier werd ich Infos zum Server reinschreiben, wenn ich welche habe.
Bis dahin: verwende /help :)
Since some time only ms accounts work. migrated my joba1 mc beta account to j@google to joba17508 :-/ (works on job4)