Vnc Remote desktop configuration on centos6.2

Source: Internet
Author: User
We plan to configure vncserver to manage the server in root remote desktop mode. The following is the basic configuration process: 1. first check whether the vnc service is installed, if installed, do not need the second step of Operation # rpm-q | grepvnc-server2. because I didn't install it before, now I use yum... we plan to configure vncserver to manage the server in root remote desktop mode. The following is the basic configuration process: 1. first check whether the vnc service is installed, if installed, do not need the second step of Operation # rpm-q | grep vnc-server2. because I did not install it before, now install # yum install vnc-server3 through yum. start the vnc service www.2cto.com # vncserverYou will require a password to access your tops. password: Verify Password does not matter, then enter the password to confirm 4. modify the configuration file/etc/sysconfig/vncserver # VNCSERVERS = "2: myusername". find this line, remove the annotator, and set your desktop number and remote account, here, the desktop number I modified is 10, the account is rootVNCSERVERS = "10: root", and then save and exit 5. configure the firewall, allow port 5900 + 10 to run the vnc Remote server vi/etc/sysconfig/iptables-a input-m state -- state NEW-m tcp-p tcp -- dport 5910-j ACCEPT6. then restart the service. # service iptables restart # service vncserver restart7. the first method is to set the vnc server to automatically start when it is started: run the "ntsysv" command to start the graphical service configuration program. add an asterisk to the vncserver service and click "OK ".. Method 2: Use "chkconfig" to operate in command line mode. use the following chkconfig vncserver onchkconfig -- list vncservervncserver 0: off 1: off 2: on 3: on 4: on 5: on 6: off8. change the vnc connection password www.2cto.com vncpasswd9. now, the basic vnc configuration is complete, and then install the vnc client software locally, you can access the vnc client normally: your ip address: 5910 (the port starts from 5900 by default, and your desktop number is added. many people may make mistakes here, ip address: desktop number) 10. tip: 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 author wmlunge

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.