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
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
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.
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
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.
that's not going to work if the laptop is going to sleep when the lid closes, this is not what the op asks
I didnt consider him using a graphical interface instead of a server one mb :/
I did say this here though.
what is your distro? you might have a better luck just searching in google though
I said that here too
I figured it out. I found a link
you just said look more, but ok
"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
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