Today, I installed VNC to solve many problems. I wrote a teaching post to show it to new users. If you encounter the same problem, you can solve it quickly without headache or even giving up.
System Environment
VM+RHEL5.1[root@localhost .vnc]# uname -r2.6.18-53.el5xen
Install VNCVIEW on the local XP system to control RHEL5.1 In the VM
Next we will install VNCSERVER on LINUX
1. Go to www.realvnc.com to download the free version for x86 linux
2. Download a tar.gz file. decompress the file and enter the folder. There is a README in it. Please note that you do not need to download the RPM package. The dependency problem and the security signature of the Baotou will make you very depressed.
3. decompress the package and enter the folder. Perform Step 4 According to readme requirements.
% ./vncinstall /usr/local/bin% ./vncinstall /usr/local/bin /usr/local/man% mkdir -p /usr/local/vnc/classes% cp java/* /usr/local/vnc/classes
4. Start VNCSERVER and enter the connection password.
5. The system may prompt linux1x: error while loading shared libraries: libstdc ++-libc6.2-2. so.3: cannot open shared object file: No such file or directory.
Download libstdc ++-libc6.2-2. so.3 and put it in/usr/lib. I encountered this problem and solved it by downloading this SO file)
The following method is not available in this version. I have tried it and it is invalid.
The result of the ls command on my system is libstdc ++. so.5.0.7 libstdc ++. so.6.0.8.
Libstdc ++. so.6.0.8 is what we are looking.
Code:
$ Sudo ln-s libstdc ++. so.6.0.8 libstdc ++-libc6.2-2. so.3
The following error occurs:
Vncpasswd: symbol lookup error: vncpasswd: undefined symbol: _ builtin_vec_new
The error is that the two databases are different and the characters are undefined.
6. Continue to start vncserver. the following error may occur:
vncext: VNC extension running!vncext: Listening for VNC connections on port 5901vncext: Listening for HTTP connections on port 5801vncext: created VNC server for screen 0error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicyCould not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Fatal server error:could not open default font 'fixed'xsetroot: unable to open display 'localhost.localdomain:1'vncconfig: unable to open display "localhost.localdomain:1"Warning: This program is an suid-root program or is being run by the root user.The full text of the error or warning message cannot be safely formattedin this environment. You may get a more descriptive message by running theprogram as a non-root user or by removing the suid bit on the executable.xterm Xt error: Can't open display: %s
Cause: the default font path of the X system searched by vncserver is under/usr/X11R6/lib/X11/fonts/, but RHEL5 is under/usr/share/X11/fonts /.
Solution:
mkdir /usr/X11R6/libcd /usr/X11R6/libln -s /usr/share/X11 X11