1. CentOS server configuration 1. download the Putty remote logon software and the windows version. Enter the ip address of the CentOS computer and log on to the terminal of the CentOS computer. (Download Putty address: http://download.csdn.net/detail/shaopengf/9457337) 2. enter root: enter the command $ su & nbs 1, CentOS server configuration
1. download the Putty remote logon software and the windows version. Enter the ip address of the CentOS computer and log on to the terminal of the CentOS computer.
(Download Putty address: http://download.csdn.net/detail/shaopengf/9457337)
2. enter root: enter the command $ su
$ (Enter the password)
Check whether the vncserver is installed on the remote computer. enter the command # rpm-q vnc. if not, enter the command
# Yum install tigervnc
# Yum install tigervnc-server.
3. enter the command # vncserver to start the vncserver service. to start the vncserver for the first time, enter the password twice. By default, a Remote Desktop Connection is enabled,
1. if you enter the command # vncserver: 2, connect to the desktop remotely.
Enter the command # vncpasswd to modify the vnc Remote logon password.
4. a graphic interface with a running level of 5 is required on the server, and the GNOME desktop graphic interface has been installed.
The command can be used to query
# Rpm-qa gnome *
# Runleve
5. edit the vnc startup graphic interface file
Enter the command: # sudo vi/root/. vnc/xstartup
Comment out the last line of twm & and add a line of content gnome-session &
Save and exit
6. edit another vnc configuration file.
Enter the command: # sudo vi/etc/sysconfig/vncservers
Modify the last two rows as follows:
VNCSERVERS = "1: root 2: root" (modified)
VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-localhost" (remove the two rows #), save and exit
7. start the vncserver and set it to boot (if the system firewall is not used, close it) and run the following commands:
# Service vncserver restart
# Chkconfig vncserver on
# Service iptables stop
# Chkconfig iptables on
II. Windows client configuration
1. download the Windows version of VNC viewer. During installation, check the VNC viewer client. do not select the VNC server.
(VNC viewer: http://download.csdn.net/detail/shaopengf/9457362)
2. after installation, open the VNC viewer, enter the ip address and port of the server, and enter the password to connect to the CentOS desktop.
OK: After the vncserver and Windows client are configured, use the client to remotely perform graphical interface. Note that when VNC is remote
By default, the first port is 5901, the second interface is 5902, and so on. Therefore, when using the VNC client remotely, pay attention to it. Otherwise, the connection fails.