It is very simple to config openvnc to work.
Step 1:
login with your account like myname
run vncserver
input your password
Step 2:
vi ~/.vnc/xstartup
remove with # mark
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
add this line to enable use gnome to show x window in vnc client
gnome-session &
Step3:
vi /etc/sysconfig/vncservers
add these lines,notice that [youname] is your account name
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERS="1:youname"
Step 4:start service
sudo /sbin/service vncserver restart
Step 5:login with browser
in client PC,open your brower with
没有评论:
发表评论