Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
viewing session on remote server
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
twobit
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2011
Posts: 76

PostPosted: Fri Sep 21, 2012 11:14 pm    Post subject: viewing session on remote server Reply with quote

cant seem to find the info i'm looking for. i have a remote gentoo server and i want to take control of the session that is currently displayed on the server locally. how do i do this? do i need to start the program i'm trying to control remotely in the background?

someone link or explain how this is done?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32297
Location: 56N 3W

PostPosted: Fri Sep 21, 2012 11:38 pm    Post subject: Reply with quote

twobit,

There are several ways. If the server has a GUI and the program is already running, you need to set up VNC in its screenscraper mode, so it can show you the remote GUI.
SECURITY WARNING: VNC is not secure. Tunnel it over ssh or something like that.

If you don't have a GUI, install screen on the server and run the program in screen.
You can now connect remotely and pick up the screen session. The program will not exit when you disconnect from 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
View user's profile Send private message
twobit
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2011
Posts: 76

PostPosted: Sat Sep 22, 2012 12:26 am    Post subject: Reply with quote

i was meaning in a console session .. over ssh... there is no Gui installed
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4732
Location: Saint Amant, Acadiana

PostPosted: Sat Sep 22, 2012 12:36 am    Post subject: Reply with quote

app-misc/screen
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Sep 22, 2012 12:39 am    Post subject: Reply with quote

twobit,

If you start screen session (app-misc/screen) on the server you can attach to it from an ssh session :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4058
Location: USA

PostPosted: Sat Sep 22, 2012 2:58 am    Post subject: Reply with quote

If you're in text mode right now there's not really many options that I know of... Is it in a framebuffer mode or raw text mode?

Technically there are ioctls that you can use to send characters into the console stdin but no real clean program to do this... hmm... might be a project to do this for fun...

If you're in X11, there's options available... specifically x11vnc.

If this is a virtual machine, then there also could be options there too...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
twobit
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2011
Posts: 76

PostPosted: Tue Sep 25, 2012 3:30 pm    Post subject: Reply with quote

thanks for the help all! screen seems to be doing the job
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