Fedora, SSH, Killed Processes

Dec 10, 2005
25,061
8,349
136
I just installed Fedora 11 on a computer in our lab to run crystallography stuff. Some of the calculations can take a while. I can SSH into it from home, but if I disconnected, I assume that anything I was running gets killed.

Is there a way to keep processes active after I am disconnected, as some of these things take a while to run? And if so, if I reconnect, especially if they were running in an X11-forwarded window, how can I re-forward the screens to my computer, to either see how it is progressing or to start a new task?


Edit:
I saw some stuff about "GNU Screen", which looks like it might fit the bill, but how would it handle graphical programs that originated from the terminal?

Edit again:
I'm currently using PuTTY and Cygwin/X to connect with said computer.
 

Colt45

Lifer
Apr 18, 2001
19,720
1
0
screen or dtach for console mode stuff, but I've got no idea as far as X goes.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You can reattach to a screen with X stuff running in it, however you won't be able to interact with the X programs unless they also take terminal input. For X forwarded stuff I'm not sure, as long as the ssh session stays open inside of screen and connectivity to the X server is still it'll probably be fine. However that's not a very solid solution.
 
Dec 10, 2005
25,061
8,349
136
That sucks.

It's a GUI program that gets started via the terminal and it controls tons of other programs used in our work. I'm pretty sure many of the other ones can be run from the terminal as well, but it is just so much easier to use them in the GUI because of the amount of options available for each program and such...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You could run something like Xvnc which gives you a full X session not attached to the console.
 
Dec 10, 2005
25,061
8,349
136
Originally posted by: Nothinman
You could run something like Xvnc which gives you a full X session not attached to the console.

How would that work?

Would I open that in Screen, then launch my GUI program and then would it stay active if I was disconnected and allow me to re-access my GUI upon reconnecting?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
VNC on Linux has it's own X server that's separate from the local X session, the only way to get there is via VNC. So you'd have to install that and then connect with a normal VNC client which you can tunnel over SSH if you'd like.
 
Dec 10, 2005
25,061
8,349
136
Just testing out starting a process and then disconnecting the SSH server (even exiting the GUI program) and it appears that the process will keep running. I think I'll hold off on installing VNC/screen for now, but thanks anyway for the suggestions.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: Brainonska511
Just testing out starting a process and then disconnecting the SSH server (even exiting the GUI program) and it appears that the process will keep running. I think I'll hold off on installing VNC/screen for now, but thanks anyway for the suggestions.

but are you able to reconnenct to the gui? Or maybe the gui program you are using is spawning separate processes to run the calculations in the background? If that is the case, then they would keep running whether you used screen or not.
 
Dec 10, 2005
25,061
8,349
136
Originally posted by: Brazen
Originally posted by: Brainonska511
Just testing out starting a process and then disconnecting the SSH server (even exiting the GUI program) and it appears that the process will keep running. I think I'll hold off on installing VNC/screen for now, but thanks anyway for the suggestions.

but are you able to reconnenct to the gui? Or maybe the gui program you are using is spawning separate processes to run the calculations in the background? If that is the case, then they would keep running whether you used screen or not.

I think the latter is the case. The GUI spawns other processes. I can exit the GUI and reopen it and it'll be fine.
 

DarkThinker

Platinum Member
Mar 17, 2007
2,822
0
0
When I read the title of the thread VNC was the immediate thing that came to mind, and sure enough it was suggested.
VNC as was suggested is a good option, your best option TBH
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
VNC will work, but best is very subjective. VNC is terrible with regards to bandwidth and latency, something like NoMachine's NX is much faster although I don't believe there's a totally open implementation yet.
 

DarkThinker

Platinum Member
Mar 17, 2007
2,822
0
0
Well, never heard of NX, but if Bandwidth conservation is a concern, you can tweak your VNC session accordingly...you know the details here.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
VNC sucks even on a LAN and everyone else that I know that's used NX says there's no comparison in speed and latency.
 

DarkThinker

Platinum Member
Mar 17, 2007
2,822
0
0
Originally posted by: Nothinman
VNC sucks even on a LAN and everyone else that I know that's used NX says there's no comparison in speed and latency.

I will have to take your word for it.

I have only had to use VNC on LAN and for simple things, like controlling a couple of graphical apps on a Fedora computer in my basement... but that's about it.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |