17
votes
Minecraft server startup/shutdown with systemd
tl;dr: Don't use screen at all. Use RCON to control the server.
I realize that screen has been the de facto standard for managing Minecraft servers since forever, but after trying it both ways I've ...
5
votes
I cant use my linux file?
You are trying to install Minecraft.deb locally which, as you can tell, has several dependencies. dpkg doesn't resolve dependencies and that's why you are getting the errors.
The only way to install ...
4
votes
Accepted
How should I set up a systemd service to auto-start a server and let me pass commands to it?
I don't have a full answer for you because I can't reproduce the problem. But I've tried to put togeather a minimum verifiable example and had some ideas for troubleshooting:
# /etc/systemd/system/...
3
votes
How to avoid mouse cursor jumping while using xinput Coordinate Transformation Matrix when application releases mouse
My "solution" was to pick a transformation matrix that keeps the cursor in place when it is centered.
The matrix you want to use is:
Where s is the scaling factor you want for your mouse, e....
3
votes
Is it possible to run Java on arm?
You don’t need an “official” Java from Oracle, OpenJDK is available and just as official; on your Raspberry Pi,
sudo apt install default-jre
will install the runtime environment, and
sudo apt install ...
2
votes
How to run Minecraft on Debian 10 buster via Flatpak
If you still do not have installed the Java development kit on your system:
sudo apt install openjdk-11-jdk
Install Flatpack on your system:
sudo su
#type your admininstrator password
apt install ...
2
votes
cURL - Download a file with no extension in URL
You need to include the -L, --location option:
curl -Lo EconomyShopGUI.jar https://dev.bukkit.org/projects/economyshopgui/files/latest
Explanation
The URL returns a 302 redirect to /error?...
2
votes
It doesn't work. Why is that so?
Because you're not doing it properly.
If you want a more specific answer, properly define "it" and "work".
More specifically (albeit speculatively), it appears that you are ...
1
vote
Error: could not open `user_jvm_args.txt`
As it turns out, by adding a user, group, and working directory, it allowed me to start it no problem!
1
vote
Accepted
"Too small maximum heap" Java error in Manjaro Linux running through terminal
The default value for the xmx and xms settings are in bytes so these values are way too small.
From man java:
-Xmsn
Specify the initial size, in bytes, of the memory allocation
...
1
vote
How to edit a file that only exists on the web? (Debian Linux)
I can't comment yet. This doesn't seem to be in the web as in the url it doesn't appears any server or ip direction. Try typing in the terminal
nano url
Replacing url by the url given there staring ...
1
vote
dhpcd hogging all recources
do you mean "dhpcd" or "dhcpcd", because I had the same issue,
"dhpcd" is a trojan (or at least a not a good program), I recommend you copy you server files and do a ...
1
vote
How to open Minecraft systemd service server console on CentOS 8?
Change the startup instruction in your minecraft.service from:
ExecStart=/usr/bin/java -Xmx2048M -Xms1024M -jar server.jar nogui
to:
ExecStart=/usr/bin/screen -DmS minecraft-screen /usr/bin/java -...
1
vote
Conditionally stop bash loop and send /stop command to game server
I agree with Panki's comment, it sounds like you're better off running your minecraft server as a service.
You will basically have to add a few files to the 'systemd' directory which enable the OS ...
1
vote
Accepted
How can I run socat so it terminate after child exits
The fork option tells socat to continue listening in the main process and handle connections in the child processes. This enables it to serve multiple minecraft server instances at once, one for each ...
1
vote
How to avoid mouse cursor jumping while using xinput Coordinate Transformation Matrix when application releases mouse
Use Accel Speed instead. For 16000 DPI on my HyperX Pulsefire Surge normal value is -0.935. This bug also works with panel that auto hides, mouse teleports.
1
vote
Linux Minecraft Server Closes When I Exit Putty?
I used to run a Terraria Server on a Raspberry Pi, and had the same problem.
The solution for me was screen
Install it using sudo apt install screen, then run the minecraft server but put screen ...
1
vote
Minecraft server startup/shutdown with systemd
Here's one for tmux based on the answer of @darkpenguin:
[Unit]
After=network.target
[Service]
WorkingDirectory=/home/minecraft/server/
Type=forking
User=minecraft
ExecStart=/usr/bin/tmux new-session ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
minecraft × 64java × 13
ubuntu × 12
linux × 10
debian × 9
permissions × 5
gnu-screen × 5
centos × 4
ssh × 4
systemd × 4
shell-script × 3
cron × 3
raspberry-pi × 3
ssh-tunneling × 3
linux-mint × 2
mouse × 2
tcp × 2
shutdown × 2
games × 2
networking × 1
command-line × 1
arch-linux × 1
files × 1
fedora × 1
scripting × 1