LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-27-2006, 06:11 AM   #1
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Rep: Reputation: 15
Question 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,
 
Old 03-27-2006, 06:29 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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.
 
Old 03-27-2006, 06:40 AM   #3
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,030

Rep: Reputation: 160Reputation: 160
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,
 
Old 03-27-2006, 10:59 AM   #4
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
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,
 
Old 03-27-2006, 11:15 AM   #5
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Tiger.woods,

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

HTH
 
Old 03-27-2006, 05:43 PM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,030

Rep: Reputation: 160Reputation: 160
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,
 
Old 03-28-2006, 11:36 AM   #7
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Thumbs up

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,
 
Old 03-28-2006, 12:01 PM   #8
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,030

Rep: Reputation: 160Reputation: 160
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,
 
Old 03-28-2006, 12:37 PM   #9
chud67
Member
 
Registered: Jul 2004
Location: San Antonio, TX, USA
Posts: 34

Rep: Reputation: 15
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.
 
Old 03-28-2006, 07:20 PM   #10
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
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,
 
Old 03-28-2006, 09:26 PM   #11
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,030

Rep: Reputation: 160Reputation: 160
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,
 
Old 03-29-2006, 06:16 AM   #12
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
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,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote X Session Help implant25 Linux - Software 1 09-05-2005 08:39 AM
Telnet/SSH screen stops responding after a while but the session is still active alllle Linux - Networking 4 05-04-2004 12:52 PM
Active X session Sonte Linux - Newbie 1 03-06-2004 01:43 PM
remote GUI session Robert0380 Linux - Software 6 05-18-2003 03:40 PM
Remote X-windows Session tristan_vdv Linux - General 2 01-26-2002 06:19 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration