How to remotely control centOS desktop using windows

Source: Internet
Author: User

How to use windows to remotely control centOS desktop 1. check whether vnc is installed on the local machine (centOS5 has vnc installed by default) rpm-q vnc-server if the result is: package vnc is not installed vnc-server-4.1.2-14.e15_3.1 congratulations, vnc has been installed on the machine. If not, you have to install it on your own. Here we will not describe how to install it. It is very simple. Search in the centOS software library and click Install 2. add the Remote Desktop user to the configuration file vi/etc/sysconfig/vncservers use the vi editor to open the configuration file and add the following two lines of command VNCSERVERS = "1: root "-- specify remote user VNCSERVERARGS [1] ="-geometry 1024x768 "-- specify Remote Desktop resolution 3. set the password vncpasswd for the Remote Desktop user root you just set. 4. open Start VNC port vi/etc/sysconfig/iptables use the vi editor to open the configuration file, add the following command in the file-a rh-Firewall-l-INPUT-p tcp-m tcp -- dport 5900: 5903-j ACCEPT 5. restart the Firewall service iptables restart 6. modify the remote desktop display configuration file (the Remote Desktop you see is quite simple without modifying this file, which is equivalent to a command line operation. For remote operations, make sure to modify the configuration file by referring to the following methods) cd ~ /. Vnc/vi xstartup use the vi editor to open the configuration file, and make the following changes # xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & -- comment it, add # stands for comment # twm & -- annotate it with gnome-session & -- add it and read this code. You should understand what is going on. 7. start vnc service/sbin/service vncserver start 8. open the vnc client through a remote connection. In the server box, enter ip: 1 (1 indicates the remote user code configured above. Multiple remote users can be configured in the configuration file ), then you can easily control centOS through a friendly Remote Desktop. 9. automatically Start vnc vi/etc/rc at startup. d/rc. local Open the configuration file in the vi editor and modify/etc/init as follows. d/vncserver start -- how to add a new line vi Editor: vi editor is divided into several mode command mode: The cursor can be moved, can be copied, can delete words or line insert mode: in this mode, you can enter text (press I to enter this mode from command mode, Press Esc to exit this mode) Bottom Line Mode: Save the file, exit the vi Editor (Enter: No, followed by w fname -- specify the file name to save wq -- save and exit q! -- Do not save and Exit)

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.