LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2240|回复: 3

请问为什么我的linux重启之后vnc就连接不上了呢?

[复制链接]
发表于 2006-9-23 10:18:31 | 显示全部楼层 |阅读模式
如果我直接不在服务器上登陆桌面,vnc就无法连接,怎么办啊~~55555555555
发表于 2006-9-23 10:33:06 | 显示全部楼层
一,VNC 有没有 chkconfig --add ?
二,把 /etc/sysconfig/vncserver及 /root/.vnc/xstatup 贴上来看看?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 11:49:18 | 显示全部楼层
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.  
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.

# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.

# Use "-nohttpd" to prevent web-based VNC clients connecting.

# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel.  See the "-via" option in the
# `man vncviewer' manual page.

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
回复 支持 反对

使用道具 举报

发表于 2006-9-25 01:52:08 | 显示全部楼层
这样多好呀~ 哈哈  putty 你可以用这个软件 远程后 在启动VNC的服务  这样安全多啦  我经常这样 最好不要自动启动服务
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表