CentOS6.5 and Windows Remote Desktop configuration

Source: Internet
Author: User
Tags windows remote desktop

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

  1. [Root @ xiaoluo ~] # Su-username
  2. [Xiaoluo @ xiaoluo ~] $ Vncpasswd
  3. Password:
  4. 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
  1. # Vim/root/. vnc/xstartup
  2. #! /Bin/sh
  3. # Uncommentthefollowingtwolinesfornormaldesktop:
  4. UnsetSESSION_MANAGER
  5. Exec/etc/X11/xinit/xinitrc
  6. [-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup
  7. [-R$ HOME/. Xresources] & xrdb $ HOME/. Xresources
  8. Xsetroot-solidgrey
  9. Vncconfig-iconic &
  10. Xterm-geometry80x24 + 10 + 10-ls-title "$ vnc1_topdesktop "&
  11. Gnome-session & # setstartingGNOMEdesktop
  12. # Startkde & # kdedesktop
  13. # Twm & # Textinterface
  14. #/Usr/bin/startxfce4
  15. # 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.

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.