Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Getting Password Authentication for VNC Server, How to setup VNCServer with a Password< Next Oldest | Next Newest >
sunack Offline





Group: Members
Posts: 11
Joined: Sep. 2006
Posted: Sep. 20 2006,03:20 QUOTE

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.
Back to top
Profile PM 
eastos Offline





Group: Members
Posts: 1
Joined: Oct. 2006
Posted: Oct. 25 2006,03:57 QUOTE

Thank you, It make me saved a lot of time. :D
Back to top
Profile PM 
1 replies since Sep. 20 2006,03:20 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Getting Password Authentication for VNC Server

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code