VNC configuration and installation process

Source: Internet
Author: User

VNC configuration and installation process Document declaration: Installation Process on CentOS5.4 desktop. This article is only a personal installation process, where the software configuration scheme is only selected based on personal needs, may not meet all the needs. The configuration may also be incorrect due to personal capacity issues, not optimal, or redundant configuration options. Thank you for your understanding. Port, which starts from 5900 by default, and adds your desktop number. For example, if your desktop number is 1, the connection Port Number of vnc is 5900 + 1 = 5901. For example, if your desktop number is 10000, then, the connection Port Number of vnc is 5900 + 10000 = 15900 ============================== ========================================================== = configure the VNC Server below, allows the user (root) to remotely connect to the linux system GUI through the vnc client (provided that your server needs to install the desktop) 1. check whether VNC rpm-q vnc-server is installed in linux. If "package vnc-server is not installed" is displayed, the vnc server is not installed. If not, run the following command to install vnc yum install vnc-server: 2. start vnc service vncserver You will require a password to access you Rdesktops. password: Verify: the system will prompt you to enter the Password, which is required for remote logon. Enter the Password, press ENTER 4, and switch to the root account: su root then enter the root account password vim/etc/sysconfig/vncservers # vnc configuration file to remove the following two lines of comments. VNCSERVERS = "1: root" #1: root (desktop number: User ), configure to start VNCSERVERARGS [2] = "-geometry 1204x768-nolisten tcp-localhost" // 800x600 indicates that the desktop resolution is saved and exited. 5. Restart the vnc server. Method 1: etc/init. d/vncserver restart Method 2: service vncserver restart 6. Set the vnc server to automatically start vi/etc/rc upon startup. local Add the following content to the file:/etc/init. d/vncserverstart 7. Change the vnc connection password vncpasswd 8. Connect to the Remote Desktop and use SecureCRT to connect to the target machine. Run the iptables-F command and connect to the remote desktop using the VNC Viewer. Then, restart the firewall to create a remote vnc connection. Note: If a gray screen appears after the connection, you can set the user's home directory cd/home/user as follows. If the user logs on with the root account, the current directory is the user root directory cd ~ /. Vncvi xstartup # edit # twm & # comment out this line of gnome-session & # Add this line of source http://blog.csdn.net/rentiansheng/article/details/8893442

Related Article

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.