sunack
Group: Members
Posts: 11
Joined: Sep. 2006 |
|
Posted: Sep. 20 2006,03:20 |
|
I just wanted to put this out here in case anyone else can use the info. I like to post when I figure stuff out so other people can know how to do it sooner.
I needed VNC Server to do two things. When a client connects it comes up to the current X destop that is on the screen and it asks for a password first.
Here is what I did.
Edit the .xinitrc in /home/dsl
right before the dillo command add the following two lines
/usr/local/bin/vnc4x.sh /usr/local/bin/vnc4x0.sh
then I edited the vnc4x0.sh in /home/dsl/.vnc and changed the line from:
/usr/local/bin/x0vncserver -SecurityTypes=none
to:
/usr/local/bin/x0vncserver -SecurityTypes=VncAuth -PasswordFile=/home/dls/.vnc/passwd
then I edited the vnc4x.sh in /home/dsl/.vnc and change the line from:
/usr/local/bin/vncserver -SecurityTypes=none
to:
/usr/local/bin/vncserver -SecurityTypes=VncAuth
(This tells it to use Vnc Authentication and to use the password file /home/dsl/.vnc/passwd)
then do a vncpasswd from a shell
it will ask you to put the password in two times
Restart X and then you will be set.
|