Xvnc, Xinetd and Jaunty = grey screen mania

vnc

I've been trying for a 'while' to get this bug out …

In a fresh minimal install of jaunty; apt-get install xinetd vnc4server openbox. Edited a service file in /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
}

Set up a xstartup file in ~/.vnc/xstartup :

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

All i get is a grey screen (old X style) whenever i try changing any option, tweaked over and over.

But,

If i simply run a :

vncserver :1

I'm able to connectm xterm shows .. etc.

Any idea ?

Best Answer

I think you need to set up a display manager such as GDM. When Xvnc is starting up, it tries to communicate with a running display manager via XDMCP. That's what the -query ::1 option is in your xinetd file. I've set up GDM on Hardy before, and it worked pretty well. Give this a try:

Install GDM if it's not already installed.

Edit /etc/gdm/gdm-cdd.conf:

  • In the section [xdmcp], set the Enabled option to true.
  • In the section [daemon], set the RemoteGreeter option to the same as the Greeter option. This isn't strictly necessary, but it's prettier.

Restart GDM.

Then try connecting again. You should see a login screen where you can enter your username and password. If that doesn't work, try changing -query ::1 to -query 127.0.0.1. It may be having trouble with IPv6.