红联Linux门户
Linux帮助

realvnc无法连接

发布时间:2011-09-14 15:38:21来源:红联作者:zhwtjxx
大家好,这是我主机的配置,但在客户端无法登录,请大家帮忙看看是什么问题造成的,谢谢~~~
[root@localhost ~]# rpm -qa | grep vnc
vnc-server-4.1.2-14.el5_3.1
[root@localhost ~]# chkconfig --list | grep vnc
vncserver 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭

[root@localhost ~]# vi /root/.vnc/xstartup
#!/bin/sh

# 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 &
[root@localhost ~]# vi /etc/sysconfig/vncservers
VNCSERVERS="1:root 2:zhang"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -nohttpd "
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
[root@localhost ~]# /etc/init.d/vncserver start
启动 VNC 服务器:1:root
New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log

2:zhang [失败]
文章评论

共有 0 条评论