View previous topic :: View next topic |
Author |
Message |
Pev n00b
Joined: 12 Nov 2003 Posts: 23 Location: Amherst, MA
|
Posted: Mon May 10, 2004 8:42 pm Post subject: VNC on screen lock? |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon May 10, 2004 9:30 pm Post subject: |
|
|
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 |
|
|
Pev n00b
Joined: 12 Nov 2003 Posts: 23 Location: Amherst, MA
|
Posted: Thu May 13, 2004 2:57 am Post subject: |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu May 13, 2004 8:19 am Post subject: |
|
|
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 |
|
|
|