View previous topic :: View next topic |
Author |
Message |
twobit Tux's lil' helper
Joined: 22 Jul 2011 Posts: 76
|
Posted: Fri Sep 21, 2012 11:14 pm Post subject: viewing session on remote server |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri Sep 21, 2012 11:38 pm Post subject: |
|
|
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 |
|
|
twobit Tux's lil' helper
Joined: 22 Jul 2011 Posts: 76
|
Posted: Sat Sep 22, 2012 12:26 am Post subject: |
|
|
i was meaning in a console session .. over ssh... there is no Gui installed |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Sat Sep 22, 2012 12:39 am Post subject: |
|
|
twobit,
If you start screen session (app-misc/screen) on the server you can attach to it from an ssh session _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Sat Sep 22, 2012 2:58 am Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
twobit Tux's lil' helper
Joined: 22 Jul 2011 Posts: 76
|
Posted: Tue Sep 25, 2012 3:30 pm Post subject: |
|
|
thanks for the help all! screen seems to be doing the job |
|
Back to top |
|
|
|