分页: 1 / 1

vnc无法连接的问题

发表于 : 2008-09-28 15:27
kingsin
按照教程配置了vnc
1.创建vnc user

代码: 全选

# useradd larry
# passwd larry ***
2.创建vnc文件
使用larry登陆

代码: 全选

#vncpassword
[~]$ cd .vnc
[.vnc]$ ls
passwd
3.编辑配置文件

代码: 全选

vi /etc/sysconfig/vncservers
在文件末尾加入
VNCSERVERS="1:larry "
VNCSERVERARGS[1]="-geometry 640x480"
4.编辑xstartup

代码: 全选

vi ~/.vnc/xstartup

#!/bin/sh
# Add the following line to ensure you always have an xterm available.
while true &
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
我是按照上面的方法配制的!结果在localhost.localdomain:1.log报错 Xmanager也无法连接!!!

代码: 全选

** (nm-applet:18370): WARNING **: <WARNING>      nma_dbus_init (): nma_dbus_init() could not acquire its service.  dbus_bus_acquire_service() says: 'Connection ":1.108" is not allowed to own the service "org.freedesktop.NetworkManagerInfo" due to security policies in the configuration file'
我不知道我错在什么地方了!