If tmux is added, could it be made possible to continue using screen if desired?
Search Criteria
Package Details: minecraft-server 1.21.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/minecraft-server.git (read-only, click to copy) |
---|---|
Package Base: | minecraft-server |
Description: | Minecraft server unit files, script, and jar |
Upstream URL: | https://minecraft.net/ |
Keywords: | bash minecraft official script server |
Licenses: | custom |
Conflicts: | minecraft-canary, minecraft-server-systemd |
Submitter: | sorcix |
Maintainer: | edh |
Last Packager: | edh |
Votes: | 164 |
Popularity: | 0.081078 |
First Submitted: | 2010-11-29 15:52 (UTC) |
Last Updated: | 2024-10-23 19:51 (UTC) |
Dependencies (8)
- awk (gawk-gitAUR, busybox-coreutilsAUR, gawk)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdg-headlessAUR, jre16-openjdk-headlessAUR, jre14-openjdk-headlessAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdk-headlessAUR, amazon-corretto-19-binAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre-openj9-headlessAUR, jre12-openjdk-headlessAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jdk8-openj9-binAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jre19-openjdk-headlessAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, java-openjdk-binAUR, jre21-zulu-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jre17-zulu-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jre8AUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jdk17-openj9-binAUR, jre-jetbrainsAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, java-openjdk-ea-binAUR, zulu-23-binAUR, jreAUR, jdkAUR, jdk21-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre-openjdk-headless, jre11-openjdk, jre11-openjdk-headless, jre17-openjdk, jre17-openjdk-headless, jre21-openjdk, jre21-openjdk-headless, jre8-openjdk-headless)
- sed (busybox-coreutilsAUR, sed-gitAUR)
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- tmux (tmux-tcl-gitAUR, tmux-xdg-gitAUR, tmux-sixel-gitAUR, tmux-gitAUR)
- netcat (nmap-netcatAUR, openbsd-netcat-gitAUR, gnu-netcat-svnAUR, gnu-netcat, openbsd-netcat) (optional) – required in order to suspend an idle server
- tar (tar-gitAUR, busybox-coreutilsAUR) (optional) – needed in order to create world backups
Required by (0)
Sources (2)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 37 Next › Last »
Refutationalist commented on 2021-06-22 04:43 (UTC)
Static_Rocket commented on 2021-06-22 04:37 (UTC)
@edh I made a fork of this that uses tmux instead of screen. I was thinking about adding it to the AUR as a separate package but I figured I would ask and see if you wanted to look over it at all before that. Let me know if you're interested.
edh commented on 2021-06-12 09:01 (UTC)
Just as a heads-up, I will wait until java-runtime-headless>=16
hits the stable Arch repositories before publishing the next release of minecraft to the AUR. Please be patient until then.
tzcrawford commented on 2021-06-08 23:16 (UTC)
For those of you wishing to update to 1.17 before this PKGBUILD is updated, I did this temporary fix. First cd
into /srv/minecraft
or wherever your server files are and wget the newest official .jar file. You can relink minecraft_server.jar
to what you just downloaded. The minecraft wiki says that the update requires java 16 but the main repository jdk-openjdk
package is still for version 15. So you can use another AUR package to acquire openjdk16 and switch to that environment. Finally I chose to start the server in a gnu screen/tmux instance using java -Xms1024M -Xmx3072M -jar './minecraft_server.jar' nogui
or whatever was in /etc/conf.d/minecraft
.
edh commented on 2021-04-30 08:07 (UTC) (edited on 2021-04-30 08:08 (UTC) by edh)
@Xarius
The full backup command reads ${SUDO_CMD} tar -C "${SERVER_ROOT}" -cf "${BACKUP_DEST}/${fname}" ${BACKUP_PATHS} --totals ${BACKUP_FLAGS} 2>&1 | grep -v "tar: Removing leading "
. Thus by modifying ${BACKUP_FLAGS}
in the config, you have full control over the arguments with which tar is called. You can change the current configuration to -I "..."
and specify a program of your choosing with additional command line flags.
Xarius commented on 2021-04-29 03:14 (UTC)
Is there any chance we could get an option in the config for how many threads to use when creating backups? I'd like to be able to reduce this number to avoid lag spikes while it executes. (i.e. Have the backup only use two threads rather than all of the available threads.)
edh commented on 2021-04-12 15:37 (UTC) (edited on 2021-04-12 15:39 (UTC) by edh)
@thatyou
Sure, this can be done and would add two additional lines to minecraftd.tmpfiles
but I don't get why this should be needed. The minecraft user at no point should edit the .jar file, right?
Furthermore, it would add additional warnings to pacman's file ownership check (pacman -Qkk minecraft-server
).
thatyou commented on 2021-04-12 15:03 (UTC)
/srv/minecraft/minecraft_server.1.16.5.jar has the ownership and user as root can this be changed to the user minecraft.
edh commented on 2021-03-30 09:59 (UTC)
@Natanji
Sorry for my lack of explanation of why I am searching for an alternative approach. Simply put I think there is a more generic approach to handling this. For example with my netcat installation, connecting to the port via telnet but without closing the connection kept it open indefinitely even with -i 1
. We don't want that to happen either since we know that we can abort right away.
Natanji commented on 2021-03-30 08:09 (UTC)
Yea, that works on my machine. I don't understand why you prefer that rather complex looking solution compared to the -i 1 option in netcat though. But it's your package and I'm fine as long as it works.
Pinned Comments
edh commented on 2016-06-18 18:24 (UTC) (edited on 2021-10-02 08:19 (UTC) by edh)
To get an overview of the available options provided by the management script, be sure to have a look at the help page or read the according section on the ArchWiki article [1].
You can quit the console without shutting down the server by press ctrl+a d (first ctrl+a and after releasing the buttons press d; ctrl+b also works). This will detach your input from the server console. The attaching and detaching is done with tmux (previously GNU screen) since it lets you view and type into the console, send single commands to it and keep it alive without a connected user. Take a look at the the command overview at the ArchWiki [2] to get a feel for its power. (@carmelo12341)
[1] https://wiki.archlinux.org/title/Minecraft#Setup [2] https://wiki.archlinux.org/title/Tmux