Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VNC on screen lock?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Pev
n00b
n00b


Joined: 12 Nov 2003
Posts: 23
Location: Amherst, MA

PostPosted: Mon May 10, 2004 8:42 pm    Post subject: VNC on screen lock? Reply with quote

I have an interesting idea. I'm a college student. I usually lock my screen when I leave the room (I'm running KDE 3.2.1). I'd like to be able to run vnc so I can access my computer from outside of my room but I don't want to have to go into terminal and start it every time (I use tightvnc). Any ideas on how I could get a panel button (ideally the button that's already there) to start up the vnc server and then lock the screen?
That would be totally sweet :) .

PS. I know I could just put a button next to the lock button and click both, but I'm curious to see if this could work.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon May 10, 2004 9:30 pm    Post subject: Reply with quote

Erm.. replace the command under the lock button with a 2-line script ?
Run tightvnc and then exec xlock (so it won't exit after the script does).
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Pev
n00b
n00b


Joined: 12 Nov 2003
Posts: 23
Location: Amherst, MA

PostPosted: Thu May 13, 2004 2:57 am    Post subject: Reply with quote

Ok. Does anyone know where that script is located? Barring that, what is the command to bring up the end session dialogue so I can just write scripts for both buttons? Also, any ideas on how I can kill the vnc server when I unlock the machine?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu May 13, 2004 8:19 am    Post subject: Reply with quote

Brrr, you seem to be averse to learning, but okay:

If you make ONE script, looking like this:
Code:
vncserver <display#>
xlock
vncserver -kill <display#>


It should all be executed in sequence - meaning the vnc server is killed when you get out of the lock.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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