Xvnc,Xinetd和Jaunty =灰色屏幕狂热

我一直在尝试一个'时间',以获得这个错误…

在一个新鲜的最小安装jaunty; apt-get install xinetd vnc4server openbox。 在/etc/xinetd.d/Xvnc:service Xvnc中编辑一个服务文件

{ type = UNLISTED disable = no socket_type = stream protocol = tcp wait = no user = root server = /usr/bin/Xvnc server_args = -inetd :1 -query ::1 -geometry 800x600 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared -securitytypes=none -extension XFIXES port = 5901 } 

在〜/ .vnc / xstartup中设置一个xstartup文件:

 #!/bin/sh openbox-session & xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & 

所有我得到的是一个灰色的屏幕(旧的X风格),每当我尝试改变任何选项,一遍又一遍的调整。

但,

如果我只是运行一个:

 vncserver :1 

我能够连接xterm显示..等。

任何想法 ?

我想你需要设置一个显示pipe理器,比如GDM。 当Xvnc启动时,它会尝试通过XDMCP与正在运行的显示pipe理器进行通信。 这就是你的xinetd文件中的-query ::1选项。 我之前在哈代设立了GDM,而且工作得很好。 试试这个:

如果尚未安装GDM,请安装它。

编辑/etc/gdm/gdm-cdd.conf

  • [xdmcp]部分中,将Enabled选项设置为true
  • [daemon]部分中,将RemoteGreeter选项设置为与Greeter选项相同。 这不是绝对必要的,但更漂亮。

重新启动GDM。

然后尝试再次连接。 您应该看到一个login屏幕,您可以在其中input您的用户名和密码。 如果这不起作用,请尝试更改-query ::1-query 127.0.0.1 。 IPv6可能有问题。