I'm massively retarded, how do I run this now? minecraftd seems to work but screen -r minecraft doesn't?
Eh, I'll download the Jar ¬.¬
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.079457 |
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 .. 21 22 23 24 25 26 27 28 29 30 31 .. 37 Next › Last »
<deleted-account> commented on 2013-01-14 21:17 (UTC)
SirPenguins commented on 2013-01-12 17:45 (UTC)
~ $ echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk
~ $ which java
/usr/bin/java
... Doesn't seem like it. I'd just append "PATH=/opt/java/jre/bin:/usr/bin/java:$PATH" to the java command.
ImNtReal commented on 2013-01-12 02:34 (UTC)
Would it be better to use $JAVA_HOME?
Refutationalist commented on 2013-01-12 02:31 (UTC)
That was it. I'm running an oracle JRE, so my java sits in /opt/java/jre/bin. Added it to the path and away it went.
If you add minecraftctl to the package, I'd be happy to update the wiki about it. Thanks!
SirPenguins commented on 2013-01-12 02:07 (UTC)
Where is java in your $PATH? Is that present in the $PATH systemd uses when running the ExecStart directive? A root shell will have a different environment than what systemd has.
I like the patch. Thank you for catching the chown order mixup!
We should get info about minecraftctl into the wiki page.
I will modify the package as soon as I can -- most likely tomorrow.
Refutationalist commented on 2013-01-12 01:59 (UTC)
Also, as it stands systemd won't start /usr/bin/minecraftd, but running it by hand works fine. Don't know why, looking into it.
Refutationalist commented on 2013-01-12 01:55 (UTC)
@SirPenguins:
Sort of got started on that in this patch: https://gist.github.com/4515629
It creates a /etc/conf.d/minecraft and a /usr/bin/minecraftctl which I adapted from the generic init script-- I wanted automated backups and the ability to run server commands from a shell. It'll make backups in /src/minecraft/backup.
I also changed the install file so the log file is touched before the chown, so the minecraft server has write access to the log file on startup. Even if you don't use my patch, you might want to make that change to the install file.
SirPenguins commented on 2013-01-11 16:45 (UTC)
It's finally working, sorry. I changed /usr/bin/minecraftd to include both paths to java for the oracle java and openjdk. This package should work for everyone now.
Sorry about the wait!
In the future this package will forgo /usr/bin/minecraftd for a pure systemd invocation that sources /etc/conf.d/minecraft. I'll comment here when I make this update.
ImNtReal commented on 2013-01-10 03:57 (UTC)
Thanks. I didn't change the service file, but I did have to change /usr/bin/minecraftd to http://pastebin.com/HA0vTBnB
SirPenguins commented on 2013-01-10 02:39 (UTC)
Okay, I have spent hours trying to get my old systemd package to work. I don't know what's wrong with it.
For now, you can see what it used to be at http://pkgbuild.com/git/aur-mirror.git/tree/minecraft-server-systemd
I will return tomorrow. I've spent a few hours this already. Sorry for the inconvenience.
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