Linux question

Hey everyone. I’m running a 1.21.8 Vanilla server off of a spare laptop running Linux.
When I would run my servers on windows, I could just leave the laptop closed and the server will still run. On Linux, the server closes when the laptop closes. I know this is probably a setting like it was on Windows but I can’t find it.
Any help appreciated
11 Replies
Error110
Error1107d ago
use screen or tmux to run the session then u can exit it ctrl + d + a for screen ctrl+b D for tmux screen -r (session id) to reattach tmux attach to reopen last closed session any more tips or guides can be found on google by looking them up.
TheBlackMamba
TheBlackMambaOP7d ago
I just wanted to run it through the terminal and be able to close the lid. On windows there's a setting that toggles what closing the lid does. That's what I was looking for
Error110
Error1106d ago
ye just use one of the terminal sessionisers I just reccomended above then you can close your lid and it will continue running unless you are running a window manager then you might need to disable suspending. you will need to look more into this yourself most likely as theres a way for x11 theres a way for wayland theres a way for gnome etc headache to explain.
Programmer / Nerd / Human
that's not going to work if the laptop is going to sleep when the lid closes, this is not what the op asks
Error110
Error1106d ago
I didnt consider him using a graphical interface instead of a server one mb :/ I did say this here though.
Programmer / Nerd / Human
what is your distro? you might have a better luck just searching in google though
Error110
Error1106d ago
I said that here too
TheBlackMamba
TheBlackMambaOP6d ago
I figured it out. I found a link
Programmer / Nerd / Human
you just said look more, but ok
Error110
Error1106d ago
"you may need to look more into this yourself" means look it up, reasearch it etc and op seems to have gotten the context fine
Programmer / Nerd / Human
yeah but I was specifically suggesting they look it up in "google", doesn't matter though why are we arguing such stupid topic in first place just move on

Did you find this page helpful?