Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1629921
  • 博文数量: 135
  • 博客积分: 2820
  • 博客等级: 少校
  • 技术积分: 2544
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-16 13:33
文章分类

全部博文(135)

文章存档

2015年(1)

2014年(8)

2013年(16)

2012年(43)

2011年(56)

2010年(11)

分类: WINDOWS

2014-11-28 15:12:55


1.安装软件包
[root@node1-kvm ~]# rpm -qa | grep tigervnc
tigervnc-1.1.0-16.el6.centos.x86_64
tigervnc-server-1.1.0-16.el6.centos.x86_64
tigervnc-server-applet-1.1.0-16.el6.centos.noarch
tigervnc-server-module-1.1.0-16.el6.centos.x86_64


[root@node1-kvm ~]# cat /etc/sysconfig/vncservers
VNCSERVERS="1:visitor 2:root"
VNCSERVERARGS[1]="-geometry 800x600" 
VNCSERVERARGS[2]="-geometry 1024x768"
[root@node1-kvm ~]# 


配置文件中的1:visitor 中的1 是标识用户的号码,后面的visitor 是linux系统里的用户。
如果想访问visitor的桌面,那么就需要连接 5901端口。


在linux上创建个普通用户 visitor



在root用户下也需要执行vncpasswd 生成一个vnc登陆时的密码。这样才能使用vnc进行连接。




启动vncserver 
service vncserver start 会报如下错误:

Thu Nov 27 19:13:04 2014
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      Listening for HTTP connections on all interface(s), port 5801
 vncext:      created VNC server for screen 0
[dix] Could not init font path element /usr/share/X11/fonts/misc, removing from list!
[dix] Could not init font path element /usr/share/fonts/default/Type1, removing from list!
[dix] Could not init font path element built-ins, removing from list!
(EE) 
Fatal server error:
(EE) could not open default font 'fixed'(EE) 


[visitor@node1-kvm ~]$ 


解决方法:
yum install -y libXfont xorg-x11-xfs xorg-x11-xfs-utils xorg-x11-xinit  xorg-x11-xdm xorg-x11-fonts*

















可以开启不同用户的桌面



好吧,这样我们的目地就达到了。


















阅读(7557) | 评论(0) | 转发(0) |
0

上一篇:python import math

下一篇:搭建宿主机.1

给主人留下些什么吧!~~