View previous topic :: View next topic |
Author |
Message |
Crispy Beef Apprentice

Joined: 29 Apr 2003 Posts: 194 Location: UK
|
Posted: Fri Feb 09, 2007 5:36 pm Post subject: Connect to a running terminal process |
|
|
Hi,
I've got a machine running Gentoo that I've had to leave on, this has a gnome terminal opened up and is connected to another remote gentoo box. What I'd like to know is if it's possible to "attach" to that process and carry on where I left off? I have ssh access to the machine I left and can see the gnome-terminal process.
Might be a bit of a silly question I guess, but I've not had the need to do this before. Maybe I should have used something like screen? _________________ --
______
Crispy |
|
Back to top |
|
 |
Dan Veteran

Joined: 25 Oct 2005 Posts: 1302
|
Posted: Fri Feb 09, 2007 5:41 pm Post subject: |
|
|
Yes if you had run "screen" then started your work, you could attach to it from anywhere with screen -x if you didn't screen it then you can't attach to it. _________________ - Failure is not an option. It's bundled with your software. |
|
Back to top |
|
 |
venquessa2 Apprentice

Joined: 27 Oct 2004 Posts: 283
|
Posted: Fri Feb 09, 2007 5:43 pm Post subject: |
|
|
Some folks recommend putting screen in your login script. .bash_profile is good. I've not tried it myself though. You always seem to forget to run screen when you need it though  _________________ Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done |
|
Back to top |
|
 |
attrezzo n00b

Joined: 24 Feb 2004 Posts: 31
|
Posted: Fri Feb 09, 2007 5:55 pm Post subject: |
|
|
You might be able to use VNC to do it... Just make sure you don't let it attach to xdm/gdm
http://gentoo-wiki.com/VNC
Also if you're going to do this over the net I'd tunnel into the box via ssh. |
|
Back to top |
|
 |
Crispy Beef Apprentice

Joined: 29 Apr 2003 Posts: 194 Location: UK
|
Posted: Fri Feb 09, 2007 6:01 pm Post subject: |
|
|
Yeah, thought it was screen, guess it's one of those things and I'll have to wait until I get down there tomorrow. Cheers for the replies...will look into VNC too.  _________________ --
______
Crispy |
|
Back to top |
|
 |
Crispy Beef Apprentice

Joined: 29 Apr 2003 Posts: 194 Location: UK
|
Posted: Fri Feb 09, 2007 6:04 pm Post subject: |
|
|
Doing a VNC session through an ssh tunnel looks very interesting, I should be able to configure that now as I have complete ssh access. Cheers. _________________ --
______
Crispy |
|
Back to top |
|
 |
nobspangle Veteran


Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Sat Feb 10, 2007 10:05 am Post subject: |
|
|
I doubt VNC will work as you will have to restart X to be able to control session 0 |
|
Back to top |
|
 |
|