LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Remote into active session??? (https://www.linuxquestions.org/questions/linux-general-1/remote-into-active-session-428927/)

tiger.woods 03-27-2006 06:11 AM

Remote into active session???
 
I know this question has been asked before but I'm not really seeing a definitive answer so pardon the repeat...

I would like to be able to remote into an 'active' session as opposed to creating a new session onmy Fedora box. When I VNC into the box currently it creates a new session and after closing the connection so does it close the processes that were running withthe session. VNC does what I want it to do except allow me to pick-up where I left off or choose a particular session to login into.

Is this possible? How are people doing this? I ran across this app but don't know anything about it (h**p://xxx.nomachine.com/products.php), anyone using it or a similar program to do the above?

TW,

ethics 03-27-2006 06:29 AM

When i VNC into my Debian box it continues from whatever state it's left in, VNC just opens up a graphical 'view' into your system, with the ability to remote admin it. Anything you run on your system should continue unless explicitly killed by you locally or remotely, not sure why it's opening up a new session each time.

mrclisdue 03-27-2006 06:40 AM

I had this same issue, where an attempt to vnc into an established session would actually open a new session for me - ie., I wanted to view an established desktop, but I was given a new one....

I'm a bit foggy on the whys and wherefores, etc., and I attributed the problem to what I consider a unique setup that I have, however, IIRC, I got around the problem by using x11vnc as the server on the desktop I wished to v and c.

hth

cheers,

tiger.woods 03-27-2006 10:59 AM

Interesting...

"When I VNC into my Debian box it continues from whatever state it's left in,"

I get prompted for a login and if I leave an application running and then try to login again that application has ended...

I'm running Fedora and it appears that VNC is an application that it includes. Would I need to uninstall it to use x11vnc or just install and and move on?

Thanks,

tredegar 03-27-2006 11:15 AM

Tiger.woods,

Take a look at krfb - it is probably already installed on your system.

HTH

mrclisdue 03-27-2006 05:43 PM

as for your x11vnc question:

i run vino on my main linux machine, so a 'vnc server' is always running, and then i run x11vnc on the machine/session I want vncviewer to view and control - so it's running over top of an existing vnc instance.

that being said, my setup may be rare because it involves a thinclient setup; all i can suggest is that you try it both ways and see what works.

cheers,

tiger.woods 03-28-2006 11:36 AM

x11vnc was exactly what I'm looking for allowing you to remote into an active session, thanks!!

I have a follow up question,

Since I'm fairly new to Linux and Fedora where and how should I start x11vnc when the machine boots? does a session need to be started or can I log in using a user then be able to log in/out using x11vnc?


TW,

mrclisdue 03-28-2006 12:01 PM

As far as I know, a user would have to be logged into gnome or kde, hence an active X session, for x11vnc to be launched.

That being said, I launch x11vnc automatically when gnome starts up. I'll edit this post and post the details when I get to my *nix box later today....


cheers,

chud67 03-28-2006 12:37 PM

Quote:

Originally Posted by tiger.woods

I would like to be able to remote into an 'active' session as opposed to creating a new session on my Fedora box.

Sounds like a job for 'screen'. If I have to run a lengthy task (such as a script that will take a while to run), I will start a screen session by typing 'screen', then run whatever I want to, then do a Ctrl-A, followed by a D (for detach). When you log back in you can then access your screen session.

tiger.woods 03-28-2006 07:20 PM

Quote:

Originally Posted by mrclisdue
As far as I know, a user would have to be logged into gnome or kde, hence an active X session, for x11vnc to be launched.

That being said, I launch x11vnc automatically when gnome starts up. I'll edit this post and post the details when I get to my *nix box later today....


cheers,


I would like to launch x11vnc upon starting the box.

I'm using KDE but am not really sure if I just need to run a script or what??? Since I'm not that familiar yet with Linux when I read the "How to" it was just vauge enough for me not to understand...

This supposedly is all that is needed at boot time -

x11vnc -logfile $HOME/.x11vnc.log -rfbauth $HOME/myvncpasswd -forever -b

TW,

mrclisdue 03-28-2006 09:26 PM

It may, indeed, be possible then to run x11vnc when you boot up. In retrospect, there's no reason why you couldn't.

This is the command I run at gnome login

x11vnc -noshm -q -passwd <whatever> -gui tray -bg -forever

Can't quite remember what everything means, other than I have a tray icon that goes black upon connection....


cheers,

tiger.woods 03-29-2006 06:16 AM

Well that seemed to work...

I created a script in /etc/X11/xinit called xvnc.sh with the following "x11vnc -logfile $HOME/.x11vnc.log -rfbauth $HOME/myvncpasswd -forever -b" and at boot it seems to work now.

I'm able to login to "myip:0" after a reboot...

Thanks for all the help.

TW,


All times are GMT -5. The time now is 11:54 PM.