Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Connect to a running terminal process
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Crispy Beef
Apprentice
Apprentice


Joined: 29 Apr 2003
Posts: 194
Location: UK

PostPosted: Fri Feb 09, 2007 5:36 pm    Post subject: Connect to a running terminal process Reply with quote

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
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Fri Feb 09, 2007 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Fri Feb 09, 2007 5:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
attrezzo
n00b
n00b


Joined: 24 Feb 2004
Posts: 31

PostPosted: Fri Feb 09, 2007 5:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crispy Beef
Apprentice
Apprentice


Joined: 29 Apr 2003
Posts: 194
Location: UK

PostPosted: Fri Feb 09, 2007 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crispy Beef
Apprentice
Apprentice


Joined: 29 Apr 2003
Posts: 194
Location: UK

PostPosted: Fri Feb 09, 2007 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Sat Feb 10, 2007 10:05 am    Post subject: Reply with quote

I doubt VNC will work as you will have to restart X to be able to control session 0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum