Results 1 to 3 of 3

Thread: Xvnc4 started from xinetd only displays empty gray X screen

  1. #1
    Join Date
    Apr 2009
    Location
    Milwaukee, Wisconsin, USA
    Beans
    27
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Xvnc4 started from xinetd only displays empty gray X screen

    Hi. I'm attempting to setup an Ubuntu 10.10 box so that anyone can connect to port 5900 and be greeted by the gdm login manager. To do so, I added a vnc entry in /etc/services and I am starting Xvnc4 using this xinetd config file:

    Code:
    service vnc
    {
      protocol = tcp
      socket_type = stream
      wait = no
      user = nobody
      server = /usr/bin/Xvnc
      server_args = -geometry 1000x700 -depth 24 -broadcast -inetd -once -securitytypes None
    }
    This kind of works...I can start multiple sessions all to port 5900, and I get an X screen. The problem is that I only get an empty, gray X screen with no applications started.

    I know when you run vncserver from the command line it will look to your ~/.vnc/ directory for your passwd and xstartup files, and I think what I want to do is put "gnome-session" into the xstart file. However, which xstartup file? The running user is "nobody" who obviously doesn't have a ~/.vnc/ directory. I tried a /root/.vnc/xstartup file and a ~scott/.vnc/xstartup file and it doesn't look like they were even read.

    I changed the xinetd vnc service so that it would "strace" Xvnc4. I looked thru all the "open" lines and didn't get a clue as to what file it was trying to read for xstart.

    Can anyone help? I just want a terminal server where the user is presented with a gdm login screen.

  2. #2
    Join Date
    Apr 2009
    Location
    Milwaukee, Wisconsin, USA
    Beans
    27
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Xvnc4 started from xinetd only displays empty gray X screen

    I finally gave up on this, started fresh from a snapshot of my system, and installed xrdp and vnc4server. Worked right out of the box. Very frustrating. I will be trying VNC again when 11.04 comes out.

  3. #3
    Join Date
    Apr 2011
    Location
    Cambridge UK
    Beans
    4
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Xvnc4 started from xinetd only displays empty gray X screen

    I suspect it's the geometry parameter. I've done pretty much the same thing and providing I leave -geometry out - defaults to 1024x768 - it works, put anything else in, and I get the same as you - no login prompt.

    No idea why - Linux newbie - looking for an answer ....
    Last edited by nmw01223; April 10th, 2011 at 07:23 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •