Installation and configuration of VNC in CentOS6 I. download and install // you can http://www.realvnc.com/ Download the latest version of vnc, including vncserver in linux and vncview in windows [root @ YYzs ~] # Cd/tmp [root @ YYzstmp] # installation and configuration of VNC under tar-xvfvnc-4_1_3... CentOS 6 I. download and install // you can http://www.realvnc.com/ Download the latest version of vnc, including vnc server in linux and vnc view in windows [root @ YYzs ~] # Cd/tmp [root @ YYzs tmp] # tar-xvf vnc-4_1_3-x86_linux.tar.gz [root @ YYzs tmp] # cd vnc-4_1_3-x86_linux // the following/usr/local/bin is the execution file directory, /usr/local/share/man is the help Documentation Directory [root @ YYzs vnc-4_1_3-x86_linux] #. /vncinstall/usr/local/bin/usr/local/share/man [root @ YYzs vnc-4_1_3-x86_linux] # mkdir-p/usr/local/vnc/classes [root @ YYzs vnc-4_1_3-x86_linux] # cp java/*/usr/local/vnc/classes [root @ YYzs vnc-4_1_3-x86_linux] #/usr/ Local/bin/vncserver // the following error occurs: www.2cto.com // vncpasswd: error while loading shared libraries: libstdc ++-libc6.2-2. so.3: cannot open // shared object file: No such file or directory // libstdc ++-libc6.2-2 is missing as prompted. so.3 this library file, put it under/usr/lib can be [root @ YYzs vnc-4_1_3-x86_linux] # cp/tmp/libstdc ++-libc6.2-2. so.3/usr/lib [root @ YYzs vnc-4_1_3-x86_linux] #/usr/local/bin/vncserver You will require a password to acce Ss your has Tops. // at this time, you will be asked to enter the password. the first input is the password used later. you need to enter the password twice. // to change the password, run/usr/local/vncpasswdPassword: Verify: xauth: creating new authority file/root /. xauthority New 'yyzs: 1 (root) 'desktop is YYzs: 1 // The "1" generated above is the number used for client login, it can be considered as the port Creating default startup script/root /. vnc/xstartupStarting applications specified in/root /. vnc/xstartupLog file is/root /. vnc/YYzs: 1.log 2. configure vnc // in general, the Linux desktop we use is "Gnome" Desktop, so it is a habit to configure this desktop. [Root @ YYzs bin] # vi ~ /. Modify vnc/xstartup: www.2cto.com # xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & # twm & gnome-session & 3. remote login 1. client login in windows open vnc view input: 192.168.1.107: 1 enter the password to log on 2. log on to the browser in windows and open the browser. in the address bar, enter the address or IP address of the controlled terminal, and add the port number ": 5800 + display number" to the address to control the computer. The input is http: // 192.168.1.107: 5801. note: At first, I used the source code to install it again. However, after the service is started, the process is always unavailable and I uninstalled it, I plan to use yum for installation. However, the yum source does not have vnc (realvnc) but only tightvnc. the versions of the two are obviously different. However, after tightvnc is installed, the startup file cannot be found, I think the process is correct. do you want to restart the system? so I restarted the system and found that the vncserver can be started normally after the restart and can be logged on to windows. This indicates that the vnc installation needs to be restarted. we hope you can restart it in this case. This also indicates that the system needs to be restarted when the source code is installed. I also found that I did not modify the configuration after installing tightvnc, but I used the configuration when I used the source code to install env, this also indicates that the configuration file and file structure of env and tigheenv are the same, and there is no essential difference.
Author: jian_zhi_sheng
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service