Objective: 1. To achieve remote CentOS 7
2. data transmission between Win7 and CentOS
1. implement remote CentOS in Win7 format
Step 1: Check whether vnc-server is installed on CentOS
[Root @ Linux ~] # Rpm-qa | grep vnc
Tigervnc-server-1.1.0-5.el6_4.1.i686
Tigervnc-1.1.0-5.el6_4.1.i686
Tigervnc-server-module-1.1.0-5.el6_4.1.i686
The preceding three packages are displayed because they have been installed. If they are not installed, run the following command to install them:
[Root @ Linux ~] # Yum install tigervnc-server.i686 tigervnc. i686
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* Base: mirrors.grandcloud.cn
* Extras: mirrors.grandcloud.cn
* Rpmforge: ftp.riken.jp
* Updates: mirrors.grandcloud.cn
Setting up Install Process
Package tigervnc-server-1.1.0-5.el6_4.1.i686 already installed and latest version
Package tigervnc-1.1.0-5.el6_4.1.i686 already installed and latest version
Nothing to do
Step 2: Configure VNC
[Root @ Linux ~] # Vim/etc/sysconfig/vncservers
Change to the following format:
# The VNCSERVERS variable is a list of display: user pairs.
#
# Uncomment the lines below to start a VNC server on display: 2
# As my 'myusername' (adjust this to your own). You will also
# Need to set a VNC password; run 'man vncpasswd' to see how
# To do that.
#
# Do not run this service if your local area network is
# Untrusted! For a secure way of using VNC, see this URL:
# Http://kbase.RedHat.com/faq/docs/DOC-7028
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-localhost" to prevent remote VNC clients connecting tables t when
# Doing so through a secure tunnel. See the "-via" option in
# 'Man vncviewer 'manual page.
VNCSERVERS = "1: chen 2: root"
VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-localhost"
Where
VNCSERVERS = "1: chen 2: root"
The format is (desktop number: User). You can add multiple
Step 3: Set the vnc connection password
[Root @ Linux ~] # Vncpasswd
Step 4. Restart vncserver
[Root @ Linux ~] # Service vncserver restart
Shutting down VNC server: 1: chen 2: root [OK]
Starting VNC server: 1: chen
New 'linux: 1 (chen) 'desktop is Linux: 1
Starting applications specified in/home/chen/. vnc/xstartup
Log file is/home/chen/. vnc/Linux: 1.log
2: root
New 'linux: 2 (root) 'desktop is Linux: 2
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/Linux: 2.log
[OK]
Step 5: either Set firewall rules or disable Firewall
[Root @ Linux ~] # Service iptables stop
Step 6. Download VNC-Viewer in win7
Download the lucky Luck line and enter the ip Address: desktop number eg: 192.168.0.6: 1. Then, the system prompts you to enter the password OK.
Now, you can access the CentOs desktop through the win7 interface.
2. data transmission between Win7 and CentOS
SSH Secure File Transfer Client
Open and enter: Host Name: 192.168.0.6
User Name: Your name
Click the link and enter the password. OK.
So far, the two functions at the beginning of this article have been implemented!
VNC installation Configuration
Install and configure VNC in CentOS 6.3
In Linux, the dependency installation VNC is not detected.
CentOS6 VNC service installation and configuration
VNC remote control installation and Setup
Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop