ITPub博客

首页 > Linux操作系统 > Linux操作系统 > VNC

VNC

Linux操作系统 作者:urgel_babay 时间:2016-03-01 10:12:31 0 删除 编辑
[root@RAC1 ~]# yum -y install tigervnc-server
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.1.0-16.el6.centos will be installed
--> Processing Dependency: pixman >= 0.27.2 for package: tigervnc-server-1.1.0-16.el6.centos.x86_64
--> Processing Dependency: libX11 >= 1.6.0 for package: tigervnc-server-1.1.0-16.el6.centos.x86_64
--> Processing Dependency: xorg-x11-fonts-misc for package: tigervnc-server-1.1.0-16.el6.centos.x86_64
--> Running transaction check
---> Package libX11.x86_64 0:1.5.0-4.el6 will be updated
---> Package libX11.x86_64 0:1.6.0-2.2.el6 will be an update
--> Processing Dependency: libX11-common = 1.6.0-2.2.el6 for package: libX11-1.6.0-2.2.el6.x86_64
---> Package pixman.x86_64 0:0.26.2-4.el6 will be updated
---> Package pixman.x86_64 0:0.32.4-4.el6 will be an update
---> Package xorg-x11-fonts-misc.noarch 0:7.2-9.1.el6 will be installed
--> Running transaction check
---> Package libX11-common.noarch 0:1.5.0-4.el6 will be updated
---> Package libX11-common.noarch 0:1.6.0-2.2.el6 will be an update
--> Finished Dependency Resolution


Dependencies Resolved


================================================================================
 Package                 Arch       Version                   Repository   Size
================================================================================
Installing:
 tigervnc-server         x86_64     1.1.0-16.el6.centos       updates     1.0 M
Installing for dependencies:
 xorg-x11-fonts-misc     noarch     7.2-9.1.el6               base        5.8 M
Updating for dependencies:
 libX11                  x86_64     1.6.0-2.2.el6             base        586 k
 libX11-common           noarch     1.6.0-2.2.el6             base        192 k
 pixman                  x86_64     0.32.4-4.el6              base        243 k


Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       3 Package(s)


Total download size: 7.8 M
Downloading Packages:
(1/5): libX11-1.6.0-2.2.el6.x86_64.rpm                   | 586 kB     00:00     
(2/5): libX11-common-1.6.0-2.2.el6.noarch.rpm            | 192 kB     00:01     
(3/5): pixman-0.32.4-4.el6.x86_64.rpm                    | 243 kB     00:00     
(4/5): tigervnc-server-1.1.0-16.el6.centos.x86_64.rpm    | 1.0 MB     00:01     
(5/5): xorg-x11-fonts-misc-7.2-9.1.el6.noarch.rpm        | 5.8 MB     00:09     
--------------------------------------------------------------------------------
Total                                           491 kB/s | 7.8 MB     00:16     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
 From  : http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libX11-common-1.6.0-2.2.el6.noarch                           1/8 
  Updating   : libX11-1.6.0-2.2.el6.x86_64                                  2/8 
  Installing : xorg-x11-fonts-misc-7.2-9.1.el6.noarch                       3/8 
  Updating   : pixman-0.32.4-4.el6.x86_64                                   4/8 
  Installing : tigervnc-server-1.1.0-16.el6.centos.x86_64                   5/8 
  Cleanup    : libX11-1.5.0-4.el6.x86_64                                    6/8 
  Cleanup    : libX11-common-1.5.0-4.el6.noarch                             7/8 
  Cleanup    : pixman-0.26.2-4.el6.x86_64                                   8/8 
  Verifying  : tigervnc-server-1.1.0-16.el6.centos.x86_64                   1/8 
  Verifying  : pixman-0.32.4-4.el6.x86_64                                   2/8 
  Verifying  : xorg-x11-fonts-misc-7.2-9.1.el6.noarch                       3/8 
  Verifying  : libX11-1.6.0-2.2.el6.x86_64                                  4/8 
  Verifying  : libX11-common-1.6.0-2.2.el6.noarch                           5/8 
  Verifying  : pixman-0.26.2-4.el6.x86_64                                   6/8 
  Verifying  : libX11-common-1.5.0-4.el6.noarch                             7/8 
  Verifying  : libX11-1.5.0-4.el6.x86_64                                    8/8 


Installed:
  tigervnc-server.x86_64 0:1.1.0-16.el6.centos                                  


Dependency Installed:
  xorg-x11-fonts-misc.noarch 0:7.2-9.1.el6                                      


Dependency Updated:
  libX11.x86_64 0:1.6.0-2.2.el6       libX11-common.noarch 0:1.6.0-2.2.el6      
  pixman.x86_64 0:0.32.4-4.el6       


Complete!



[root@RAC1 ~]# vncserver :1


You will require a password to access your desktops.


Password:
Verify:
xauth:  creating new authority file /root/.Xauthority
xauth: (stdin):1:  bad display name "RAC1.taryatar.com:1" in "add" command


New 'RAC1.taryatar.com:1 (root)' desktop is RAC1.taryatar.com:1


Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/RAC1.taryatar.com:1.log
 (冒号空格)


[root@RAC1 ~]# chkconfig vncserver on

[root@RAC1 ~]# chkconfig --list |grep -l vnc
(standard input)
[root@RAC1 ~]# chkconfig --list |grep -i vnc
vncserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off

[root@RAC1 ~]# ps -ef |grep vnc
root      2696     1  1 01:16 pts/2    00:00:00 /usr/bin/Xvnc :1 -desktop RAC1.taryatar.com:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
root      2702  2701  0 01:16 pts/2    00:00:00 vncconfig -iconic
root      3125  2534  0 01:17 pts/2    00:00:00 grep vnc


iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30936525/viewspace-2018487/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-02-29

  • 博文量
    203
  • 访问量
    339131