View previous topic :: View next topic |
Author |
Message |
SnackMasterX Apprentice
Joined: 26 Jan 2006 Posts: 231
|
Posted: Thu Dec 16, 2010 7:53 pm Post subject: [SOLVED] Terminal Session |
|
|
So this is something I've wondered for quite some time, shortest way of asking is this:
Is there a way to take control of an SSH session from the host machine through a terminal in gnome?
I have an SSH connection opened up from my windows machine and wanted to close it but not stop its compiling and still be able to watch its progress from my gentoo box.
Last edited by SnackMasterX on Thu Dec 16, 2010 9:18 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Thu Dec 16, 2010 8:18 pm Post subject: |
|
|
SnackMasterX,
You need screen.
emerge screen.
Log in as your user and start screen (locally or via ssh) start a long process like Code: | emerge world -uDNav |
Now detach from screen with Ctrl- A, D and log out.
Screen continues to run and so do the process(es) you started in screen.
Now you can log in from anywhere in the world and reattach to screen with screen -x
Screen can do much more and you can have several instances of screen running.
Read man screen _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
SnackMasterX Apprentice
Joined: 26 Jan 2006 Posts: 231
|
Posted: Thu Dec 16, 2010 8:22 pm Post subject: |
|
|
This sounds awesome, I'm going to test it out over the weekend, thanks! |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Fri Dec 17, 2010 3:17 am Post subject: |
|
|
I think tmux is easier to use than screen. Doe the same thing. |
|
Back to top |
|
|
SnackMasterX Apprentice
Joined: 26 Jan 2006 Posts: 231
|
Posted: Tue Feb 01, 2011 1:08 pm Post subject: |
|
|
So I'm in a bit of a bind, my X session is messed up and I am running dd_rescue and I can see it in the processes, will either one of those allow me to remotely detatch all terminal sessions and take control of any of them? |
|
Back to top |
|
|
SnackMasterX Apprentice
Joined: 26 Jan 2006 Posts: 231
|
Posted: Tue Feb 01, 2011 1:09 pm Post subject: |
|
|
On a side note I hadn't installed the program previously, I just merged it a couple minutes ago and the dd_rescue process has been open and running for about a day now (not sure if that complicates things) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Tue Feb 01, 2011 10:35 pm Post subject: |
|
|
SnackMasterX,
You can only detach and resume things that were started inside screen.
However, for dd_rescue, it keeps a log of what its done and uses the log to pick up where it left off if you restart it, using the same command as it was started with originally. That is, unless you sent the log to /dev/null _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
SnackMasterX Apprentice
Joined: 26 Jan 2006 Posts: 231
|
Posted: Wed Feb 02, 2011 5:06 am Post subject: |
|
|
Well I ended up losing my state and i reran the same command but it just started from scratch
So far the new dd_rescue (within tmux this time :3) has been running for about 16 hours and copied a whole 1.6 gigs so far! Ohh and over 2000 errors... :-\
Thanks for the help, sorry for the rant/off topic. |
|
Back to top |
|
|
|