Results 1 to 4 of 4

Thread: X11vnc with gdm not finding display

  1. #1
    Join Date
    Jun 2010
    Beans
    13

    X11vnc with gdm not finding display

    Hi Im trying to get the gdm login manager to work with x11vnc
    ive tried all the usual suspects
    Code:
    -auth /var/gdm/:0.Xauth
    -auth /var/lib/gdm/:0.Xauth
    -auth /var/run/lightdm/root/:0
    -auth guess
    -findauth
    -env FD_XDM=1 -auth guess
    these are suggested by many help pages with no luck on any of them
    ps wwwaux | grep auth shows
    Code:
    root      2236  0.0  0.0  29996   880 ?        Ss   Dec04   0:01 /usr/sbin/vmware-authdlauncher
    myUserName 21349  0.0  0.0  12048   896 pts/2    S+   06:02   0:00 grep --color=auto auth
    Ive had this working with lxdm with no issues by changing to one of the auth lines revealed from the above command but there doesnt seem to be one for gdm

    This is the error from the logfile
    Code:
    06/12/2011 05:50:13 passing arg to libvncserver: -desktop
    06/12/2011 05:50:13 passing arg to libvncserver: MyPCName:0
    06/12/2011 05:50:13 passing arg to libvncserver: -rfbauth
    06/12/2011 05:50:13 passing arg to libvncserver: /home/MyUserName/.vnc/passwd
    06/12/2011 05:50:13 passing arg to libvncserver: -rfbversion
    06/12/2011 05:50:13 passing arg to libvncserver: 3.6
    06/12/2011 05:50:13 passing arg to libvncserver: -permitfiletransfer
    06/12/2011 05:50:13 x11vnc version: 0.9.12 lastmod: 2010-09-09  pid: 21211
    06/12/2011 05:50:13 XOpenDisplay(":0") failed.
    06/12/2011 05:50:13 Trying again with XAUTHLOCALHOSTNAME=localhost ...
    
    06/12/2011 05:50:13 ***************************************
    06/12/2011 05:50:13 *** XOpenDisplay failed (:0)
    Im using this command to start x11vnc at the moment
    Code:
    sudo /usr/bin/x11vnc -rc ~/.x11vncrc~ -auth -auth /var/lib/gdm/:0.Xauth - display :0 -o /var/x11vnc.log

  2. #2
    Join Date
    Nov 2006
    Location
    OE
    Beans
    2,831
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: X11vnc with gdm not finding display

    Is the client/computer you are using to connect to your server or remote computer also using linux? I'm just offering ideas that may inspire you btw but you can look at the vnc guide here (which I've used) but perhaps more specific to the error you are getting is the FAQ help at this website. Good luck.
    Good site to search for guides & how-tos.

  3. #3
    Join Date
    Dec 2006
    Beans
    810

    Re: X11vnc with gdm not finding display

    Is there an X server even running? x11vnc needs to attach to an already running X server. Try this to start looking if one is running:
    Code:
    ps wwaux | grep X
    If there is none you will need to configure your system to start one (gdm init script is a common way.)

  4. #4
    Join Date
    Jun 2010
    Beans
    13

    Re: X11vnc with gdm not finding display

    Ive managed to resolve this for now thankyou for your help

    the default login manager hadn't been set even though i selected gdm after uninstalling ldxe so I had to manually edit that file

    then the gdm authorisation poped up with the ps wwwaux | grep auth command and i can use that to attach to the running display and the -create option seems to be working so if noone is logged in i get to the login screen and can login sucsessfully

    Thanks again

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
  •