Keeping a program running on Linux server when computer goes to sleep?
by bbarker88 from LinuxQuestions.org on (#54PTH)
Hello, I have a CentOS 8 server and I use a GUI program on it via an X windows session.
A few nights ago I was just going to let things run so I SSH into the server from my Windows machine, start up the program, let it run then put my computer to sleep.
When I started up the computer in the morning I realized that I had lost the connection with the Linux server (to be expected if I put the computer to sleep, as the network card is going to go down as well) but my program had also been cut off when I put the computer to sleep. I did not think that through.
Is there any way to keep the GUI program running on the Linux server even if I want to put my Windows computer to sleep at night (the one I connect from)? Otherwise I need to leave my computer on continuously as well.
many thanks


A few nights ago I was just going to let things run so I SSH into the server from my Windows machine, start up the program, let it run then put my computer to sleep.
When I started up the computer in the morning I realized that I had lost the connection with the Linux server (to be expected if I put the computer to sleep, as the network card is going to go down as well) but my program had also been cut off when I put the computer to sleep. I did not think that through.
Is there any way to keep the GUI program running on the Linux server even if I want to put my Windows computer to sleep at night (the one I connect from)? Otherwise I need to leave my computer on continuously as well.
many thanks