Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st July 2005, 10:13 AM
PaLoBo Offline
Registered User
 
Join Date: Jun 2005
Location: Portugal
Posts: 76
VNC and current session question.

Hi all,

I've followed some excelent guides found on this great forum and managed to get VNC working just great with my new FC4 setup.
However I've noticed that when I login to my pc remotely it starts a new session, however I would like to be able to see what I was doing in the previous session. ( maybe an explanation will help...)

Say I start bittorrent or amule. Leave it running for the weekend and during the weekend I want to check on the progress of a certain download or something of the sort. How can I do that? (My FC4 box is at work.)

Can this be done even though it starts a new session? Any info is welcome. Thanks in advance.

Cheers,
P.
Reply With Quote
  #2  
Old 1st July 2005, 02:10 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
If an account is connected and runing in the VNCserver then the only time the session would end is if you logged out or stopped VNC. The trick would be that the connected session on the work box needs to be left running with out being connected.

So start the session from another box with a remote viewer. When it is up and running close the viewer program but don't log off. The session and program remain running.

Then you could start a connection from home with SSH port 22. (assuming your work network is step up to allow the routes and the port.

There is a shared account session where the two connection share a screen but needs to have some more setup and a SELinux check box set for shared memory (I think). I would test it at work first.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 1st July 2005, 02:24 PM
woppa30 Offline
Registered User
 
Join Date: May 2005
Location: England
Posts: 107
I do exactly what you are after, basically you want to see the 0 display as opposed to the new one that VNCSERVER starts. To do that edit /etc/X11/xorg.conf and in the "module" section add
Load "vnc"
and in the "screen" section add

Option "passworddFile" "/root/.vnc/passwd"

Once you reboot and point your favorite vnc viewer at your IP you can see the display:0 i.e. what is currently being diplayed on the monitor attcahed to your linux box. It is possible to tunnel this over ssh which is another thread, even from a windows machine. VNC doesn't to my knowledge use any decent encryption and so using the default ports will leave you open to an attack if you are trying to view your display over the web. If you need instructions on how to do this post back.
Best wishes,
David.
Reply With Quote
  #4  
Old 1st July 2005, 02:17 PM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
the 2 models you are talking about are Xvnc and vino-server the "Remote desktop" from main menu is the vino-server which doesn't close the session and Xvnc is a way to initiate xdm/gdm/ or directly wm, so you can have both
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #5  
Old 1st July 2005, 02:35 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
OK, but in real life I wouldn't use root and I wouldn't assume the work box is in a trusted area to be having the screen and worked displayed.

So vino is for noobs and end users and Xvnc is for geeks with no concept of security.

SJ
__________________
Do the Math
Reply With Quote
  #6  
Old 1st July 2005, 02:55 PM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
no Xvnc closes the session which is not so geeky if you want to leave it open aigh'
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #7  
Old 1st July 2005, 02:59 PM
charlien Offline
Registered User
 
Join Date: Jun 2005
Location: Milwaukee, WI USA
Posts: 7
Got to Desktop -> Preferences -> Remote Desktop and set it up to allow remote access. I'd use a password and not have it directly on the Internet. I VPN into my network and do the vnc remote connection. Works just the way you want it to.
Reply With Quote
  #8  
Old 1st July 2005, 03:19 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
It does seem like the Remote Desktop does not close the remote session but shares it?

If Xvnc closes the remote session, what the difference from vino?

Which one(s) use shared memory?

Which ones require more setup, SELinux changes?
Isn't "Load vnc" the same as start vncserver, except one is varified as started before hand and the other could cause problems, or hang when needed? Theory is thoery but the trenches are a dirty business.

SJ
__________________
Do the Math
Reply With Quote
  #9  
Old 1st July 2005, 03:22 PM
PaLoBo Offline
Registered User
 
Join Date: Jun 2005
Location: Portugal
Posts: 76
Thanks all for your input. I think for now I will try and use charlien's method. Sounds safer to me. That should do what i need for now. By the way charlien, could you give some pointers as how to configure VPN+vnc.

Thanks. I will post back with the results of my labour.
Cheers,
P.
Reply With Quote
  #10  
Old 1st July 2005, 05:47 PM
charlien Offline
Registered User
 
Join Date: Jun 2005
Location: Milwaukee, WI USA
Posts: 7
Quote:
Originally Posted by PaLoBo
Thanks all for your input. I think for now I will try and use charlien's method. Sounds safer to me. That should do what i need for now. By the way charlien, could you give some pointers as how to configure VPN+vnc.

Thanks. I will post back with the results of my labour.
Cheers,
P.
My VPN is setup through my router. It is a Linksys router that is a VPN server. I access my home network from work over the VPN tunnel between the two routers. There are alot of other ways to create a VPN tunnel. Open VPN seems to be gaining popularity.
Reply With Quote
  #11  
Old 1st July 2005, 10:29 PM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
actually since you have VPN (general setup with encryption no restrictions) then vnc through it is not a question of how rather it's a top layer...
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #12  
Old 2nd July 2005, 12:04 AM
Error403 Offline
Registered User
 
Join Date: Jun 2004
Location: St-Amable, QC
Age: 33
Posts: 64
Why don't you just save your .torrent files to a directory and then use btdownload in a terminal window? that way you can simply ssh to the box and see the progress.

to start a .torrent download:
Code:
screen btdownloadcurses.py file.torrent --max_upload_rate 123
Note the screen command in front of it. It emulates a shell in a shell. So when you're in a screen session, you can simply do CTRL+A and D to (d)etach, and to return to a screen, you do:
Code:
screen -ls
That will output something like this:
Code:
There is a screen on:
        10995.pts-1.localhost   (Detached)
1 Socket in /var/run/screen/S-phil.
Then you can go back to the # of the process:
Code:
screen -r 10995
And voila! You're back in your uninterrupted download!
All you have to do then is login by ssh and do the same thing to check your downloads! I would suggest binding an alias to start a download, kinda like this:
Code:
alias btget='screen btdownloadcurses.py --max_upload_rate 10'
Hope it helps
__________________
Quote:
"640 kilobytes of RAM capacity should be more than enough for any PC user". -- Bill Gates
"The Customer Can Have Any Color He Wants So Long As It's Black". -- Henry Ford
Reply With Quote
  #13  
Old 3rd July 2005, 12:41 AM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
wow nice approach definitely news for me
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
Reply

Tags
current, question, session, vnc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing current session on desktop jdogzilla Servers & Networking 1 23rd January 2007 04:42 AM
Open programs at start-up/stuck current session RyanGRA Using Fedora 3 27th April 2006 02:01 PM
VNC: starting automatically + current session johannlo Using Fedora 3 11th January 2006 07:10 AM
End Current Session/Login Screen Problem mkoljack Using Fedora 0 29th July 2005 07:45 AM


Current GMT-time: 05:12 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat