CentOS6.5 and Windows Remote Desktop configuration
I. Server
VNC (Virtual Network Computing) is a common graphical remote management tool in Linux systems (such as BSD and Mac). It uses RFB Protocol. Like SSH, VNC is also divided into clients and servers. we install the VNC server on the server to be remotely accessed, and connect the client program for installing VNC on other computers. In CentOS 6/RHEL 6, tigervnc is used as the built-in VNC tool. By default, this tool is not installed. If we want to use the VNC service, follow these steps:
1. First, we need to install tigervnc using yum: yum install tigervnc-server
2. After installation, the vnc configuration file does not have any configuration information by default. Therefore, if you need to use the VNC service, modify the configuration information:
Vi/etc/sysconfig/vncservers
Added: VNCSERVERS = "number: username"
3. After the VNC is configured, The VNC still requires a separate VNC password. Therefore, we need to create a separate VNC password for each user who enables the VNC service, and run the vncpasswd command ([Note:] You must switch to this user. Otherwise, the VNC service cannot be started ):
[Plain] view plaincopy
- [Root @ xiaoluo ~] # Su-username
- [Xiaoluo @ xiaoluo ~] $ Vncpasswd
- Password:
- Verify:
4. After setting a separate VNC password for the user, we will start the vncserver service: service vncserver start.
5. You usually need to disable iptables (/sbin/service ipstables stop) or clear the rules in iptables, or add a rule to iptables, otherwise, you cannot remotely log on to the vnc server through the vnc client: iptables-F
[Note] After the above configuration, you also need to modify a file to solve the Remote Desktop and local desktop synchronization problem:
[Plain] view plaincopy
- # Vim/root/. vnc/xstartup
- #! /Bin/sh
- # Uncommentthefollowingtwolinesfornormaldesktop:
- UnsetSESSION_MANAGER
- Exec/etc/X11/xinit/xinitrc
- [-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup
- [-R$ HOME/. Xresources] & xrdb $ HOME/. Xresources
- Xsetroot-solidgrey
- Vncconfig-iconic &
- Xterm-geometry80x24 + 10 + 10-ls-title "$ vnc1_topdesktop "&
- Gnome-session & # setstartingGNOMEdesktop
- # Startkde & # kdedesktop
- # Twm & # Textinterface
- #/Usr/bin/startxfce4
- # Exec/usr/bin/fluxbox
Enter service vncserver start after modification.
At this time, the server configures OK and then configures the client.
Ii. Client
Client download: http://download.csdn.net/detail/u010066564/8135121
Enter the Server IP Address: Port Number (the "Number" VNCSERVERS = "number: username" set in the preceding step 2nd), and connect to the server.