Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
4272
views
Error: could not open `user_jvm_args.txt`
This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I assume there's some sort of permissions issue going on, but I'm at a loss. Anything helps as I'm tr...
This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I assume there's some sort of permissions issue going on, but I'm at a loss. Anything helps as I'm trying to get better and learn. Thanks!
Here's the service file:
[Service]
ExecStart=/home/ethan/ATM9-Server/run.sh
Here's the run.sh bash script:
#!/usr/bin/env sh
java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.1.3/unix_args.txt "$@"
Here's the user_jvm_args.txt file that is in the same folder as the run.sh script:
# Xmx and Xms set the maximum and minimum RAM usage, respectively.
# They can take any number, followed by an M or a G.
# M means Megabyte, G means Gigabyte.
# For example, to set the maximum to 3GB: -Xmx3G
# To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB.
-Xms1G
-Xmx10G
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1
Most of those are defaults, and the only ones I changed were -Xms and -Xmx.
Here's the that error occurs as it shows in the logs:
Nov 03 15:44:43 ATM9-Server-Temp systemd: Started run.service.
Nov 03 15:44:43 ATM9-Server-Temp run.sh: Error: could not open `user_jvm_args.txt'
Nov 03 15:44:43 ATM9-Server-Temp systemd: run.service: Main process exited, code=exited, status=1/FAILURE
Nov 03 15:44:43 ATM9-Server-Temp systemd: run.service: Failed with result 'exit-code'.
EChumley1310
(1 rep)
Nov 3, 2023, 09:04 PM
• Last activity: Jun 30, 2025, 10:04 AM
8
votes
4
answers
2338
views
How to avoid mouse cursor jumping while using xinput Coordinate Transformation Matrix when application releases mouse
I've got some high sensitivity mice that I need to lower the sensitivity on. The general solution to this seems to be to set the Coordinate Transformation Matrix to something acceptable. So I use the following values: xinput --set-prop 19 'Coordinate Transformation Matrix' 0.25 0 0 0 0.25 0 0 0 1 Th...
I've got some high sensitivity mice that I need to lower the sensitivity on. The general solution to this seems to be to set the Coordinate Transformation Matrix to something acceptable. So I use the following values:
xinput --set-prop 19 'Coordinate Transformation Matrix' 0.25 0 0 0 0.25 0 0 0 1
This works fine, except, that I finally realized it was causing me issues while playing minecraft. What happens, is that when I hit any key that gives me back my cursor, as soon as I move my mouse, the cursor jumps to the top left quadrant of my screen. The exact position is proportional to the scaling number I use, so .25 moves the cursor closer to the corner than .45. Moreover, if I use a value greater than 1, the cursor moves to a different quadrant of my monitor. And, of course, values of 1 leave the cursor in the center of the screen as expected. This just happens on the first mouse input, and the mouse behaves normally after that.
I need advice as to how to avoid this cursor movement. It's quite maddening. I also don't think this is strictly a minecraft issue, and I suspect it happens with other java applications that take and release the mouse cursor.
Further information, my machine is running Kubuntu 18.04 and openJDK 10.0.2.
Edit: Adding more info. I'm starting to notice this behavior in other places during my normal workflow. It's not clear when, but maybe has to do with how KDE is dealing with the mouse events and window focus. I use follow mouse - mouse precedence.
milesvp
(81 rep)
Dec 30, 2018, 12:27 AM
• Last activity: Mar 30, 2025, 03:27 AM
0
votes
0
answers
334
views
How can I install Minecraft Education on Linux Mint 22 (Ubuntu 24.04 LTS)
I would like to install Minecraft Education Edition on Linux Mint 22. I have tried using wine and I can get through the installation process but I can't get it to launch. I then tried installing some other things through wine first and I ran "wine Minecraft.Windows.exe" in the terminal and managed t...
I would like to install Minecraft Education Edition on Linux Mint 22. I have tried using wine and I can get through the installation process but I can't get it to launch. I then tried installing some other things through wine first and I ran "wine Minecraft.Windows.exe" in the terminal and managed to get it to launch but then I get
and it is also an older version.
I also get the following error
0238:err:ole:create_server class {9052024a-9cde-4aa8-b35f-737bfee80584} not registered
0238:err:ole:com_get_class_object no class object {9052024a-9cde-4aa8-b35f-737bfee80584} could be created for context 0x4
Thank you to whoever helps me with this :)

FrodoBaggins52
(1 rep)
Oct 20, 2024, 05:11 AM
• Last activity: Dec 24, 2024, 11:02 PM
5
votes
1
answers
2336
views
How should I set up a systemd service to auto-start a server and let me pass commands to it?
#### Goal: I'm trying to get a Minecraft server to run on computer boot with systemd on Fedora. I have a few self-imposed criteria that I need to meet to be able to properly manage my server(s): 1. It has to run as the `minecraft` system user I made with the home dir `/opt/minecraft`. I attempted th...
#### Goal:
I'm trying to get a Minecraft server to run on computer boot with systemd on Fedora. I have a few self-imposed criteria that I need to meet to be able to properly manage my server(s):
1. It has to run as the
minecraft
system user I made with the home dir /opt/minecraft
. I attempted this one by adduser
ing and then adding the line User=minecraft
and WorkingDirectory=/opt/minecraft/
2. It has to be scalable and work with an arbitrary number of servers. I attempted this by using a template service and then changing the WorkingDirectory
line to WorkingDirectory=/opt/minecraft/%i
to let me pass in a directory.
3. I have to be able to pass commands into it somehow. This is the one I'm stuck on. I have tried using a socket unit and then hooking that up to /run/minecraft%I
, but I haven't been able to get that to work. If you aren't familiar with Minecraft servers, they have this interactive console thingy that you can pass commands into. In the past, I have used tmux send
with the server running in a tmux
session, but the issue with that is that it doesn't start automatically and feels inelegant.
#### Attempted solution:
/usr/local/lib/systemd/system/minecraft@.service
:
[Unit]
Description=Minecraft server: %i
# only run after networking is ready
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# restart if the server crashes
Restart=on-failure
RestartSec=5s
# set the input and outputs to a socket unit and the journal resp.
Sockets=minecraft@%i.socket
StandardInput=socket
StandardOutput=journal
StandardError=journal
# set the user and directory to the correct values
User=minecraft
WorkingDirectory=/opt/minecraft/%i/
# run the start script for the specified server
ExecStart=/bin/bash /opt/minecraft/%i/start.sh
[Install]
WantedBy=default.target
/usr/local/lib/systemd/system/minecraft@.socket
:
[Unit]
Description=Socket for Minecraft server: %i
[Socket]
# listen to a pipe for input
ListenFIFO=%t/minecraft%I.stdin
Service=minecraft@%i.service
#### Problem:
When I try to start the server with sudo systemctl start minecraft@1_17_1.service
(I have the server installed in /opt/minecraft/1_17_1/
), it fails:
Job for minecraft@1_17_1.service failed because of unavailable resources or another system error.
See "systemctl status minecraft@1_17_1.service" and "journalctl -xeu minecraft@1_17_1.service" for details.
This prompted me to run systemctl status minecraft@1_17_1.service
:
● minecraft@1_17_1.service - Minecraft server: 1_17_1
Loaded: loaded (/usr/local/lib/systemd/system/minecraft@.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: resources) since Thu 2021-11-04 14:37:27 EDT; 163ms ago
TriggeredBy: × minecraft@1_17_1.socket
CPU: 0
And also journalctl -xeu minecraft@1_17_1.service
Nov 04 14:51:01 riley-fedora systemd: minecraft@1_17_1.service: Got no socket.
Nov 04 14:51:01 riley-fedora systemd: minecraft@1_17_1.service: Failed to run 'start' task: Invalid argument
Nov 04 14:51:01 riley-fedora systemd: minecraft@1_17_1.service: Failed with result 'resources'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit minecraft@1_17_1.service has entered the 'failed' state with result 'resources'.
Nov 04 14:51:01 riley-fedora systemd: Failed to start Minecraft server: 1_17_1.
░░ Subject: A start job for unit minecraft@1_17_1.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit minecraft@1_17_1.service has finished with a failure.
░░
░░ The job identifier is 55890 and the job result is failed.
I saw that it was seemingly angry with my minecraft@.socket
file, so I ran systemctl status minecraft@1_17_1.socket
:
× minecraft@1_17_1.socket - Socket for Minecraft server: 1_17_1
Loaded: loaded (/usr/local/lib/systemd/system/minecraft@.socket; static)
Active: failed (Result: resources)
Triggers: ● minecraft@1_17_1.service
Listen: /run/minecraft1_17_1.stdin (FIFO)
Nov 04 14:52:35 riley-fedora systemd: minecraft@1_17_1.socket: Failed with result 'resources'.
Nov 04 14:52:35 riley-fedora systemd: Failed to listen on Socket for Minecraft server: 1_17_1.
Nov 04 14:52:41 riley-fedora systemd: minecraft@1_17_1.socket: Failed to open FIFO /run/minecraft1_17_1.stdin: Permission denied
Nov 04 14:52:41 riley-fedora systemd: minecraft@1_17_1.socket: Failed to listen on sockets: Permission denied
Nov 04 14:52:41 riley-fedora systemd: minecraft@1_17_1.socket: Failed with result 'resources'.
Nov 04 14:52:41 riley-fedora systemd: Failed to listen on Socket for Minecraft server: 1_17_1.
Nov 04 14:52:46 riley-fedora systemd: minecraft@1_17_1.socket: Failed to open FIFO /run/minecraft1_17_1.stdin: Permission denied
Nov 04 14:52:46 riley-fedora systemd: minecraft@1_17_1.socket: Failed to listen on sockets: Permission denied
Nov 04 14:52:46 riley-fedora systemd: minecraft@1_17_1.socket: Failed with result 'resources'.
Nov 04 14:52:46 riley-fedora systemd: Failed to listen on Socket for Minecraft server: 1_17_1.
So it seems like the issue has to do with permissions for the pipe I had it use.
For good measure, I ran journalctl -xeu minecraft@1_17_1.socket
Nov 04 14:52:46 riley-fedora systemd: minecraft@1_17_1.socket: Failed to open FIFO /run/minecraft1_17_1.stdin: Permission denied
Nov 04 14:52:46 riley-fedora systemd: minecraft@1_17_1.socket: Failed to listen on sockets: Permission denied
Nov 04 14:52:46 riley-fedora systemd: minecraft@1_17_1.socket: Failed with result 'resources'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit minecraft@1_17_1.socket has entered the 'failed' state with result 'resources'.
Nov 04 14:52:46 riley-fedora systemd: Failed to listen on Socket for Minecraft server: 1_17_1.
░░ Subject: A start job for unit minecraft@1_17_1.socket has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit minecraft@1_17_1.socket has finished with a failure.
░░
░░ The job identifier is 58598 and the job result is failed.
#### Question:
What am I doing wrong? I have spent 4-ish hours on the *gasp* second, third, and even fourth pages of Google with no solution. I'm at a loss here, so any and all help is greatly appreciated.
Riley
(65 rep)
Nov 4, 2021, 06:58 PM
• Last activity: Dec 21, 2024, 04:24 AM
9
votes
5
answers
36338
views
Minecraft server startup/shutdown with systemd
I've been running a Minecraft server with a sysV init script. It is a very good script; it runs Minecraft in a "screen"; it can ensure Minecraft is never started twice; and it waits for Minecraft to shut down when stopped. It can even pass a command to Minecraft with `/etc/init.d/minecraft command `...
I've been running a Minecraft server with a sysV init script. It is a very good script; it runs Minecraft in a "screen"; it can ensure Minecraft is never started twice; and it waits for Minecraft to shut down when stopped. It can even pass a command to Minecraft with
/etc/init.d/minecraft command
-- this is useful for scheduled backups.
Now I've upgraded to Debian Jessie, which has systemd. But for now, I keep my old-style script because it's awesome. Still, I'm actually very supportive of systemd - it really looks like a lot of improvement, simplification and centralization. I remember systemd developers promising that "old sysV scripts will just work as they did before", but turns out it's not so easy!
I remember having problems with some startup scripts before; apparently, just putting a script into /etc/init.d and marking it executable is no longer enough - I had to "enable" them in order to make them work. "Well," I thought, "now it's recognized by systemd, and now I can control it via systemctl - and it should probably just use my old script to process the commands!" And turns out I was very much wrong.
It doesn't start properly, it doesn't stop properly, it does not display status properly, not to mention the absence of the "command" command. I've started to look for information about how systemd is better than sysV, and what can I do to simplify and empower everything. Apparently, systemctl just makes the simplest unit file possible on its own, and hopes it will suffice! Now I'm wondering if systemd is actually incapable of handling such complex situations at all!
I see that an average systemd service basically consists of some requirements and ExecStart. Like it's all systemd needs to monitor the daemon. Type in the conditions and the executable name, and systemd will handle its starting, stopping and who knows what else. But it's not that easy!! You can't just kill Minecraft's PID (not to mention it's different from the screen's PID)! I want to write more complex scripts for every action, maybe even add new actions like "command" (okay, I've already accepted that it's probably not possible at all). For "status", it has to monitor the Java process, and for stop, it has to send a command to the Minecraft console and then wait for both Java and screen to die! I also want to be sure that systemd will not just try to SIGHUP or SIGINT or SIGTERM it!
So, what is the slick, modern, "intended systemd way" to do it that really allows us to utilize all the "improvements" and "simplification" systemd gives us? Surely it should be able to handle something more complex than a simple one-process daemon started in a single line and killed with a SIGINT? Should I maybe create a systemd unit and manually specify calling my old script there in every command, like this:
ExecStart=/etc/init.d/minecraft start
ExecReload=/etc/init.d/minecraft reload
(and how do I make the "stop" command and explain how to find the processes to watch for the "status" command?..)
I am very pro-innovation, pro-Poettering and pro-systemd in this regard, and I believe there should be a way to do it better than it was before - maybe in an entirely different way, as it usually is with Poettering (which I like about him!). But this doesn't look like much of an improvement - more like a huge regression in need of a huge heap of kludges to even continue as it was before. "sysV scripts will continue working", my ponytail! I can't even be sure if it calls my script to stop Minecraft properly on system shutdown, or just looks at "systemctl status" and sees that it's already "inactive (dead)".
Any better ideas?
darkpenguin
(321 rep)
Aug 11, 2016, 09:17 AM
• Last activity: May 5, 2024, 05:36 AM
0
votes
1
answers
35
views
Minecraft server (aws/linux) discord webhook error
I have a Minecraft server running on an EC2 Instance (AWS), which runs a Linux (CentOS). I altered the `minecraft.service` system process to ```lang-ini ExecStart=python3 run_server.py ``` This python script pulls a `run.json` file, which fills in server jar name, webhook URL, role ID, and jvm args....
I have a Minecraft server running on an EC2 Instance (AWS), which runs a Linux (CentOS). I altered the
minecraft.service
system process to
-ini
ExecStart=python3 run_server.py
This python script pulls a run.json
file, which fills in server jar name, webhook URL, role ID, and jvm args. This is what it looks like:
-json
{
"server_jar":"server.jar",
"jvm_args":"-Xms1G -Xmx4G",
"webhook_url":"your_url_here",
"role_id":"your_role_here"
}
When I run sudo systemctl start minecraft
followed by sudo systemctl status minecraft
I get this error:
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.12/subprocess.py", line 1953, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'java -Xmx3G -Xms3G -jar server.jar nogui'
Igor Blinkow
(1 rep)
Mar 4, 2024, 04:10 AM
• Last activity: Mar 12, 2024, 08:59 PM
4
votes
0
answers
3446
views
Running Minecraft Education Edition on Linux
I'm attempting to get some form of Minecraft Education Edition running on a Linux PC that I have, (Zorin OS 16.1 64-bit). After moving the install files from an existing Windows installation of Minecraft Edu to my Linux PC, I was able to get Minecraft running using Wine (6.0.3)! [
Mohammed Baig
(41 rep)
Sep 18, 2022, 10:13 AM
• Last activity: Feb 20, 2024, 12:05 PM
-5
votes
2
answers
258
views
It doesn't work. Why is that so?
``` study071126@minecraft:~$ cd ~/minecraft/ && sh ./run.sh nogui Error occurred during initialization of VM Too small maximum heap study071126@minecraft:~/minecraft$ ls config forge-1.20.1-47.2.0-installer.jar logs run.sh defaultconfigs forge-1.20.1-47.2.0-installer.jar.log mods user_jvm_args.txt e...
study071126@minecraft:~$ cd ~/minecraft/ && sh ./run.sh nogui
Error occurred during initialization of VM
Too small maximum heap
study071126@minecraft:~/minecraft$ ls
config forge-1.20.1-47.2.0-installer.jar logs run.sh
defaultconfigs forge-1.20.1-47.2.0-installer.jar.log mods user_jvm_args.txt
eula.txt libraries run.bat
study071126@minecraft:~/minecraft$ java -Xms10G -Xmx14G -jar ^C
study071126@minecraft:~/minecraft$ java -Xms10G -Xmx14G -jar forge-1.20.1-47.2.0-installer.jar --nogui
JVM info: Private Build - 18.0.2-ea - 18.0.2-ea+9-Ubuntu-222.04
java.net.preferIPv4Stack=true
Current Time: 07/02/2024 01:44:54
Exception in thread "main"
joptsimple.UnrecognizedOptionException: nogui is not a recognized option
at joptsimple.OptionException.unrecognizedOption(OptionException.java:108)
at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510)
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
at joptsimple.OptionParser.parse(OptionParser.java:396)
at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:93)
study071126@minecraft:~/minecraft$ ^C
study071126@minecraft:~/minecraft$ cd ~/minecraft/ && sh ./run.sh nogui
Error occurred during initialization of VM
Too small maximum heap
study071126@minecraft:~/minecraft$ ^C
study071126@minecraft:~/minecraft$ ^C
study071126@minecraft:~/minecraft$ sudo java -Xmx9218m -Xms2048m -jar forge-1.20.1-47.2.0-installer.jar --noguiJVM info: Private Build - 18.0.2-ea - 18.0.2-ea+9-Ubuntu-222.04
java.net.preferIPv4Stack=true
Current Time: 07/02/2024 01:47:35
Exception in thread "main"
joptsimple.UnrecognizedOptionException: nogui is not a recognized option
at joptsimple.OptionException.unrecognizedOption(OptionException.java:108)
at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510)
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
at joptsimple.OptionParser.parse(OptionParser.java:396)
at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:93)
study071126@minecraft:~/minecraft$ ^C
study071126@minecraft:~/minecraft$ cd ~/minecraft/ && sh ./run.sh nogui
Error occurred during initialization of VM
Too small maximum heap
study071126@minecraft:~/minecraft$ cd ~/minecraft/ && sh ./run.sh nogui
Error occurred during initialization of VM
Too small maximum heap
study071126@minecraft:~/minecraft$ sudo java -Xmx2048m -Xms9218m -jar forge-1.20.1-47.2.0-installer.jar --noguiError occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
study071126@minecraft:~/minecraft$ sudo java -Xmx2048m -Xms9218m -jar forge-1.20.1-47.2.0-installer.jar --noguiError occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
study071126@minecraft:~/minecraft$ sudo java -Xmx2048m -Xms2048m -jar -jar forge-1.20.1-47.2.0-installer.jar --nogui
JVM info: Private Build - 18.0.2-ea - 18.0.2-ea+9-Ubuntu-222.04
java.net.preferIPv4Stack=true
Current Time: 07/02/2024 01:48:42
Exception in thread "main"
joptsimple.UnrecognizedOptionException: nogui is not a recognized option
at joptsimple.OptionException.unrecognizedOption(OptionException.java:108)
at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510)
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
at joptsimple.OptionParser.parse(OptionParser.java:396)
at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:93)
study071126@minecraft:~/minecraft$ cd ~/minecraft/ && sh ./run.sh nogui Error occurred during initialization of VM
study071126@minecraft:~/minecraft$ ^C
study071126@minecraft:~/minecraft$ sh ./run.sh
Error occurred during initialization of VM
Too small maximum heap
study071126@minecraft:~/minecraft$
EGP
(1 rep)
Feb 7, 2024, 01:53 AM
• Last activity: Feb 7, 2024, 06:31 AM
0
votes
1
answers
116
views
Linux server accessing a background process started at bootup
before I explain my issue I should mention that I'm relatively new to Linux so please forgive my ignorance. I'm using an old Dell E10S to act as a dedicated Minecraft server.  I managed to install Linux and a working Minecraft server ([downloaded here][1]). I also was able to get the serve...
before I explain my issue I should mention that I'm relatively new to Linux so please forgive my ignorance.
I'm using an old Dell E10S to act as a dedicated Minecraft server.
I managed to install Linux and a working Minecraft server
(downloaded here ).
I also was able to get the server to start upon booting the machine
by adding a command into the rc.local file in
/etc/rc.local
.
Inside rc.local
I wrote:
#!/bin/bash
sleep 1m
cd /home/haven/dw-server/
sudo ./start.sh
It worked, but now the server is running in the background when I log in via ssh and I can't type in any server commands like I would on Windows.
Does anyone know how I can bring up the server command line when I ssh into my machine?
I already tried the fg
command.
Lexus
(1 rep)
Feb 4, 2024, 04:58 PM
• Last activity: Feb 5, 2024, 02:48 AM
0
votes
0
answers
55
views
Other solution instead of forced shutdown on my linux laptop when software freezes
i usualy play Minecraft on my laptop(4 Go, Intel i5 3320M and Intel HD graphics 4000) using a external usb ssd (on Sparkylinux for have the maximum of ram) and sometime, when i load a world, 5 seconds before, there are very low fps and then it freeze, but all the computer, and i can't do anything. S...
i usualy play Minecraft on my laptop(4 Go, Intel i5 3320M and Intel HD graphics 4000) using a external usb ssd (on Sparkylinux for have the maximum of ram) and sometime, when i load a world, 5 seconds before, there are very low fps and then it freeze, but all the computer, and i can't do anything. Sometime i wait and Minecraft close itself, sometime the laptop stay in this state for a long time, so i force shutdown (by pressing 5 seconds the on/off button) for restart the system and replay normaly.
I made this post for know if there is a other way to shutdown without the risk of corrupting the files or others consequences.
Thank you
SpiderProgrammer
(1 rep)
Jun 29, 2023, 10:17 PM
2
votes
1
answers
1149
views
How can I run socat so it terminate after child exits
I want to run the minecraft `server.jar` with an attached tcp socket, so I use: socat EXEC:"java -jar server.jar nogui" TCP-LISTEN:25567,fork I can connect (and disconnect) to the server without any problems via `telnet`. But when I stop the server (via `/stop`) the server terminates (checked with `...
I want to run the minecraft
server.jar
with an attached tcp socket, so I use:
socat EXEC:"java -jar server.jar nogui" TCP-LISTEN:25567,fork
I can connect (and disconnect) to the server without any problems via telnet
. But when I stop the server (via /stop
) the server terminates (checked with ps auf
, the process is definitely gone) but socat
just doesn't terminate.
How can I start *socat* so it terminates after the EXEC-child is terminated? (I already tried using SYSTEM: instead of EXEC: but that was trying)
Hoffmann
(205 rep)
Feb 18, 2020, 10:37 PM
• Last activity: Apr 26, 2023, 03:29 PM
-1
votes
1
answers
214
views
I have a raspberry pi can i use minecraft and tunneling with localhost.run
Hey i have a raspberry pi with raspbian installed Im wonder if i could use localhost.run which is a website that allows tunneling with ssh could i use this with a mc server looking to run java edition if would it be secure and would it be reliable?
Hey i have a raspberry pi with raspbian installed Im wonder if i could use localhost.run which is a website that allows tunneling with ssh could i use this with a mc server looking to run java edition if would it be secure and would it be reliable?
Noah
(1 rep)
Mar 28, 2023, 01:58 PM
• Last activity: Mar 28, 2023, 02:55 PM
0
votes
0
answers
270
views
shell script not running screen session with cron tab
I'm running a Minecraft Bedrock server for my kids on an Almalinux VPS. It's not exactly supported but it runs. It shuts down about twice a day. I'm trying to automate the restarting of the server. I have a cron job that runs every minute, which is intended to restart the server. The command line to...
I'm running a Minecraft Bedrock server for my kids on an Almalinux VPS. It's not exactly supported but it runs. It shuts down about twice a day. I'm trying to automate the restarting of the server. I have a cron job that runs every minute, which is intended to restart the server. The command line to restart works if I execute it from terminal, but not from crontab. The echo message gets delivered to me by email, so the script itself is executing. I've tried several iterations of the screen command, including writing a log file, which doesn't get created.
My crontab entry:
* * * * * root /bin/bash /home/mcserver/minecraft_bedrock/restart.sh
My file, restart.sh:
#!/bin/bash
ps_out=
ps -ef | grep bedrock_server | grep -v 'grep' | grep -v $0
result=$(echo $ps_out | grep bedrock_server)
if [[ "$result" == "" ]]; then
echo "attempting restart"
screen -d -m /home/mcserver/minecraft_bedrock/bedrock_server
fi
I appreciate any guidance in the right direction!
EDIT: After trying some more things, I was able to get my script to work. I'm not going to answer the question myself, because I think there are some things I don't understand, and I'd like to award the answer to the user who explains how to use screen, or why it's not working. In the code below (working), I've commented out what I tried that did not work (using screen and tmux). I made some traction just trying to execute the startup file, ./bedrock_server, but I previously got errors telling me I needed to use a terminal, which is what led me to use screen to begin with. Based on my latest errors, I determined that I needed to change directory to the absolute directory, then execute ./bedrock_server. Below is the working code:
#!/bin/bash
ps_out=ps -ef | grep bedrock_server | grep -v 'grep' | grep -v $0
result=$(echo $ps_out | grep bedrock_server)
if [[ "$result" == "" ]]; then
# screen -d -m /home/mcserver/minecraft_bedrock/bedrock_server
#tmux new-session -d -s mc_session '/home/mcserver/minecraft_bedrock/bedrock_server'
cd /home/mcserver/minecraft_bedrock/
./bedrock_server
fi
Jason
(111 rep)
Feb 8, 2023, 01:38 AM
• Last activity: Feb 8, 2023, 03:29 AM
0
votes
0
answers
660
views
Minecraft keeps shutting down with exit code 0
I'm trying to run Minecraft on NixOS with Sway, and the launcher works fine but every time I want to launch the game it shuts down and the launcher displays an error message with exit code 0. I've got jdk11, jk8 and jre8 installed.
I'm trying to run Minecraft on NixOS with Sway, and the launcher works fine but every time I want to launch the game it shuts down and the launcher displays an error message with exit code 0.
I've got jdk11, jk8 and jre8 installed.
user557673
(1 rep)
Jan 22, 2023, 12:35 PM
• Last activity: Jan 22, 2023, 05:53 PM
3
votes
0
answers
306
views
Ubuntu 22.04 LTS Double tap with two fingers not eating in Minecraft
In my laptop's touchpad double tap with two fingers only work single time in Minecraft as well as on desktop/Home i.e single right-click , but in Minecraft it do not hold with two finger double tap or even holding with two fingers, i can't eat my cooked food. Although I have gnome tweaks installed.
In my laptop's touchpad double tap with two fingers only work single time in Minecraft as well as on desktop/Home i.e single right-click , but in Minecraft it do not hold with two finger double tap or even holding with two fingers, i can't eat my cooked food.
Although I have gnome tweaks installed.
starK xD YT Youtube
(31 rep)
Oct 29, 2022, 04:49 AM
1
votes
0
answers
441
views
Why is playing Minecraft on MX linux so smooth
Lately I've been trying to experiment with some linux distributions, then try to play games there such as minecraft. I tried: 1. Manjaro - Lag 2. Drauger OS (It said for game) - Still lag 3. MX Linux - Really-really smooth I could use MX Linux as the main distribution. However, because a lot of info...
Lately I've been trying to experiment with some linux distributions, then try to play games there such as minecraft.
I tried:
1. Manjaro - Lag
2. Drauger OS (It said for game) - Still lag
3. MX Linux - Really-really smooth
I could use MX Linux as the main distribution. However, because a lot of information says that some of the most Ubuntu packages can't run on MX Linux, I'm also hesitant to use it.
Can someone explain why minecraft is running so efficiently on MX Linux. Because I want to configure the same settings on Ubuntu to run smoothly like MX Linux. I think that this is a matter of drivers or kernel compatibiliy, but I'm not sure because there are many factors that determine linux performance.
Spec:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Laptop : Acer one Z 1402 (2016)
Processor: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
Graphics : Intel HD Graphics 5500
Kernel : Linux 5.10.0-15-amd64 x86_64
RAM : single Kingston sodimm 2GB 1600MHZ
OpenGL : 4.6 (Compatibility Profile) Mesa 20.3.5
Minecraft: Minecraft launcher original. Version: 1.7.10-Forge10.13.4.1614-1.7.10
JVM Arg : -Xmx512M -XX:+UnlockExperimentalVMOptions -d64 -XX:+AggressiveOpts -XX:+UseParallelGC -XX:ParallelGCThreads=4
Rarely do I get 80 fps in minecraft 1.7.10 when using mod forge.

SannUlya
(71 rep)
Jul 6, 2022, 05:00 AM
• Last activity: Jul 7, 2022, 07:43 AM
1
votes
1
answers
6731
views
"Too small maximum heap" Java error in Manjaro Linux running through terminal
Really don't know what to do about this one. I'm trying to start a minecraft server with more RAM but the commands in the terminal give me this error. The server works only if I go to the file manager and click on the server.jar file, it then boots up like normal with the GUI and everything. The pro...
Really don't know what to do about this one. I'm trying to start a minecraft server with more RAM but the commands in the terminal give me this error.
The server works only if I go to the file manager and click on the server.jar file, it then boots up like normal with the GUI and everything. The problem is that I can't set RAM parameters through there, only through commands.
I've tried:
`
sudo java -Xmx1024 -Xms1024 -jar server.jar
`
`sudo java -Xmx4096 -Xms1024 -jar server.jar
`
`sudo java -Xmx8164 -Xms1024 -jar server.jar
`
`sudo java -Xmx1000000 -Xms1024 -jar server.jar
`
`sudo java -Xmx3072 -Xms2048 -jar server.jar
`
`sudo java -Xmx2048 -Xms512 -jar server.jar
`
`sudo java -Xmx1024 -Xms512 -jar server.jar
`
`sudo java -Xmx512 -Xms256 -jar server.jar
`
All result in the exact same error every time:
"Error occurred during initialization of VM"
"Too small maximum heap"
I've tried these with -nogui too, same error.
linuxlife
(53 rep)
Jun 15, 2022, 11:14 PM
• Last activity: Jun 15, 2022, 11:27 PM
-1
votes
1
answers
399
views
dhpcd hogging all recources
I manage a Linux server for my friend which runs a Minecraft server, I consider myself a total noob in Linux but i know how to work with it a little. Since the server is at my friend's house I use powershell to ssh into the server and start the startup script inside a `screen`. But after a while a p...
I manage a Linux server for my friend which runs a Minecraft server, I consider myself a total noob in Linux but i know how to work with it a little.
Since the server is at my friend's house I use powershell to ssh into the server and start the startup script inside a
screen
. But after a while a process starts running /bin/dhcpcd
and it always uses at least 50% of the CPU power. It also starts when I don't start the minecraft server but it never runs at startup.
What is this, can I disable it and if so how?
Baki2001
(1 rep)
Oct 29, 2020, 03:47 PM
• Last activity: May 27, 2022, 10:18 AM
1
votes
0
answers
178
views
Minecraft Input Bug(It's not glfw #1112)
I have a keyboard input bug in Minecraft 1.12 and below. When I open a world I can use only number keys, arrows and special keys(functional keys, escape etc). I wrote a mod that writes the name and code of the button when it is pressed and it does not respond to press on buttons with letters on they...
I have a keyboard input bug in Minecraft 1.12 and below. When I open a world I can use only number keys, arrows and special keys(functional keys, escape etc).
I wrote a mod that writes the name and code of the button when it is pressed and it does not respond to press on buttons with letters on they.
I think Minecraft response buttons wrong.
My system: Fedora 35, KDE Plasma 5.24.3, X11 1.20.14
Дмитрий Сафронов
(11 rep)
Apr 6, 2022, 07:10 PM
• Last activity: Apr 10, 2022, 05:53 PM
0
votes
1
answers
376
views
Arch Linux KDE GDlauncher Not Working
When I try to install Mods on GDLauncher, it sometimes stays at 0%. It will not change after left for about 20 minutes. I am using an unofficial bin launcher since that is the only way I can do it. I have tried closing and reopening. I also prefer not getting an answer about uninstalling and reinsta...
When I try to install Mods on GDLauncher, it sometimes stays at 0%. It will not change after left for about 20 minutes. I am using an unofficial bin launcher since that is the only way I can do it. I have tried closing and reopening. I also prefer not getting an answer about uninstalling and reinstalling the app since I do not remember the password. Here is a provided image for reference.
If there is anything wrong with my question please tell me so I can fix it. Thanks.

Athsmooth
(11 rep)
Feb 14, 2022, 09:45 PM
• Last activity: Feb 14, 2022, 10:00 PM
Showing page 1 of 20 total questions