run vncserver in ubuntu
download the latest vnc from http://www.realvnc.com/cgi-bin/download.cgi
1. error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
need to download the file and put it in /usr/lib and link it under /lib if necessary
2. check errors in ~/vnc/$HOSTNAME:1.log
to fix could not open default font 'fixed'
$mkdir -p /usr/X11R6/lib/X11
$sudo ln -s ln -s /usr/share/X11 /usr/X11R6/lib/X11
3. vi ~/.vnc/xstartup
add 2 lines after [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
change "twm &" to "gnome-session &"
4. make /etc/X11/xinit/xinitrc executable
$sudo chmod u+x /etc/X11/xinit/xinitrc
you can see gnome desktop from vnc client...
沒有留言:
張貼留言