Installation and configuration of VNC in CentOS 6

Source: Internet
Author: User

Installation and configuration of VNC under CentOS 6 I. Download and install // go to http://www.realvnc.com/download the latest version of vnc including vnc server under linux and VNC view under 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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.