Zucca
Group: Members
Posts: 524
Joined: Feb. 2006 |
|
Posted: June 08 2006,03:34 |
|
This is how I did when I created a vnc access for my friend: - I created a new user. edit .bash_profile for that user and add these lines:
Code Sample | DISPLAY=12 export DISPLAY=12 # I'm not sure wich one works correctly but adding both worked. =D vncserver :12 -geometry 800x600 & logout # you can choose geometry as you like
|
Ok. This needs you to set up sshd server too. What it simply does... it just starts Xvnc server on screen 12 and logs user out. Of course you could do same with script to have this user able to use normal ssh connection to your server too. To log into it use port 5912. Password is same you chosed when added that new user.
You also need some lines to /home/<user_login>/.vnc/xstartup:
Code Sample | torsmo 2>/dev/null & iconsnap.lua &>/dev/null & xtdesk &>/dev/null & swallow.sh docked & exec fluxbox 2>/dev/null |
xstartup file just contains lines to execute when your vnc server starts. Note do not add startx command here. I just messes everything up.
If anyone could tell me how to have it start a vnc server like this without having user to first log in via ssh... ? Some nice lines to /opt/bootlocal.sh?
-------------- Do you have it? - http://dy.fi/mak
|