U
/u/Watdoidoforlife
Guest
Hello!! Id like to make some bashscripts that I can access from an SSH console and to also automate things-
So a bit about myself first, I'm completely new to linux although I have learnt the tiniest bit of bash scripting.
Recently I've bought a mini pc and dual booted win11+linux Ubuntu server on it.
Currently it's running a modded neoforge server (1.21.1), and all aspects in regards to running it should be fine (ported over from windows and used run.sh instead of the run.bat it gave me).
Googling around and asking LLMs I made some systemmd files that tries to restart the server on-failure and it seems to be working. However for certain commands such as
/Say etc it seems that it only works if i use RCON and have it enabled.
(say)
rcon say "$*"
;;
)
And
rcon() {
mcrcon -H "HOST" -P "PORT" -P "PASS"
}
Though for the /say I need to modify the rcon code a bit to using echo
I do have spark installed and would like to display a simple server status webhook,
Its currently using neoforge tps to get tps and mspt, and the ram/cpu information I don't understand how to get since spark health (without --upload which turns it into a website) doesn't show in rcon logs or even in logs in general.
Surfing around I also found a lot of people saying RCON is not safe, so it's there any other ways I can accomplish all of this?
Any help is appreciated!!
submitted by /u/Watdoidoforlife
[link] [comments]
Continue reading...
So a bit about myself first, I'm completely new to linux although I have learnt the tiniest bit of bash scripting.
Recently I've bought a mini pc and dual booted win11+linux Ubuntu server on it.
Currently it's running a modded neoforge server (1.21.1), and all aspects in regards to running it should be fine (ported over from windows and used run.sh instead of the run.bat it gave me).
Googling around and asking LLMs I made some systemmd files that tries to restart the server on-failure and it seems to be working. However for certain commands such as
/Say etc it seems that it only works if i use RCON and have it enabled.
(say)
rcon say "$*"
;;
)
And
rcon() {
mcrcon -H "HOST" -P "PORT" -P "PASS"
}
Though for the /say I need to modify the rcon code a bit to using echo
I do have spark installed and would like to display a simple server status webhook,
Its currently using neoforge tps to get tps and mspt, and the ram/cpu information I don't understand how to get since spark health (without --upload which turns it into a website) doesn't show in rcon logs or even in logs in general.
Surfing around I also found a lot of people saying RCON is not safe, so it's there any other ways I can accomplish all of this?
Any help is appreciated!!
submitted by /u/Watdoidoforlife
[link] [comments]
Continue reading...