之前一直是用xmanager连接linux的,后来发现VNC也很不错,故在centos下测试了下,还不错!
[root@oracle ~]# yum -y install tigervnc-server
Loaded plugins: fastestmirror,refresh-packagekit, security
Loading mirror speeds from cached hostfile
*base: centos.ustc.edu.cn
*extras: centos.ustc.edu.cn
*updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_640:1.1.0-5.el6_4.1 will be installed
--> Processing Dependency:xorg-x11-fonts-misc for package: tigervnc-server-1.1.0-5.el6_4.1.x86_64
--> Running transaction check
---> Package xorg-x11-fonts-misc.noarch0:7.2-9.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
tigervnc-server x86_64 1.1.0-5.el6_4.1 base 1.1 M
Installing for dependencies:
xorg-x11-fonts-misc noarch 7.2-9.1.el6 base 5.8 M
Transaction Summary
================================================================================
Install 2 Package(s)
Total download size: 6.9 M
Installed size: 9.7 M
Downloading Packages:
(1/2):tigervnc-server-1.1.0-5.el6_4.1.x86_64.rpm | 1.1 MB 00:00
(2/2):xorg-x11-fonts-misc-7.2-9.1.el6.noarch.rpm | 5.8 MB 00:02
--------------------------------------------------------------------------------
Total 2.2MB/s | 6.9 MB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xorg-x11-fonts-misc-7.2-9.1.el6.noarch 1/2
Installing : tigervnc-server-1.1.0-5.el6_4.1.x86_64 2/2
Verifying :xorg-x11-fonts-misc-7.2-9.1.el6.noarch 1/2
Verifying :tigervnc-server-1.1.0-5.el6_4.1.x86_64 2/2
Installed:
tigervnc-server.x86_64 0:1.1.0-5.el6_4.1
Dependency Installed:
xorg-x11-fonts-misc.noarch 0:7.2-9.1.el6
Complete!
修改vncservers文档 vim /etc/sysconfig/vncservers 修改如下
VNCSERVERS="1:root"
VNCSERVERARGS[2]="-geometry1366x768"
修改vnc密码
[root@oracle ~]# vncpasswd
Password:
Verify:
[root@oracle ~]#
保证系统的防火墙和selinux关闭
客户端安装vnc view并登录,输入对应ip:1即可登录