LinuxSir.cn,穿越时空的Linuxsir!

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

vnc一登录就断开,配置内详。

[复制链接]
发表于 2008-5-13 14:26:37 | 显示全部楼层 |阅读模式
Ubuntu,安装了x11vnc和vnc4server两个包,
在/etc/X11/xorg.conf中,设置了

  1. Section "Module"
  2. ...
  3. Load "vnc"
  4. EndSection

  5. Section "Screen"
  6. ...
  7. Option "SecurityTypes" "VncAuth"
  8. Option "UserPasswdVerifier" "VncAuth"
  9. Option "PasswordFile" "/root/.vnc/passwd
  10. EndSection
  11. [code]
  12. 密码文件存在且登录成功,但是在3秒内会断开。
  13. 命令行下登录的错误信息如下:
  14. [code]
  15. xz@Xz-Laptop:~$ vncviewer 202.121.210.72
  16. VNC server supports protocol version 3.8 (viewer 3.3)
  17. Password:
  18. VNC authentication succeeded
  19. Desktop name "x11"
  20. Connected to VNC server, using protocol version 3.3
  21. VNC server default format:
  22.   32 bits per pixel.
  23.   Least significant byte first in each pixel.
  24.   True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
  25. Using default colormap which is TrueColor.  Pixel format:
  26.   32 bits per pixel.
  27.   Least significant byte first in each pixel.
  28.   True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
  29. Using shared memory PutImage
  30. vncviewer: read: Connection reset by peer
  31. ShmCleanup called
  32. xz@Xz-Laptop:~$
复制代码

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

本版积分规则

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