With Ubuntu 17.10 Desktop version, how may I configure x11vnc so that I may log in remotely with a vnc client?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite












I have phrased my question very carefully. After much research and trial and error, I am able to have x11vnc start at boot as a system service by using this command line in my service file:



ExecStart=/usr/bin/x11vnc -auth /run/user/121/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared


I figured out as many others have that the auth guess argument doesn't work in 17.10. I also figured out that 121 is the number for the user 'gdm' that owns the greeter X session, and that is where my Xauthority file resides. Checking xorg processes via ssh:



user@foo:~$ ps -ax |grep xorg
886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3


Okay, so I can connect via vnc client and I see the greeter and login, but logging in yields a plain black screen with an active mouse pointer. Looking again at xorg processes:



user@foo:~$ ps -ax |grep xorg
886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3
1384 tty2 Sl+ 0:00 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3


I see that there is a new X session owned by the user that logged in (me!), and using the Xauthority file in that location. The problem seems to be that the VNC client is stuck at the original X session for the greeter owned by 'gdm'. How can I coax the vnc client to follow to the new X session without opening a second instance of the client? Surely it is possible to log in and use the desktop manager graphical interface with x11vnc and a vnc client, no? Thanks very kindly!







share|improve this question
























    up vote
    3
    down vote

    favorite












    I have phrased my question very carefully. After much research and trial and error, I am able to have x11vnc start at boot as a system service by using this command line in my service file:



    ExecStart=/usr/bin/x11vnc -auth /run/user/121/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared


    I figured out as many others have that the auth guess argument doesn't work in 17.10. I also figured out that 121 is the number for the user 'gdm' that owns the greeter X session, and that is where my Xauthority file resides. Checking xorg processes via ssh:



    user@foo:~$ ps -ax |grep xorg
    886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3


    Okay, so I can connect via vnc client and I see the greeter and login, but logging in yields a plain black screen with an active mouse pointer. Looking again at xorg processes:



    user@foo:~$ ps -ax |grep xorg
    886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3
    1384 tty2 Sl+ 0:00 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3


    I see that there is a new X session owned by the user that logged in (me!), and using the Xauthority file in that location. The problem seems to be that the VNC client is stuck at the original X session for the greeter owned by 'gdm'. How can I coax the vnc client to follow to the new X session without opening a second instance of the client? Surely it is possible to log in and use the desktop manager graphical interface with x11vnc and a vnc client, no? Thanks very kindly!







    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I have phrased my question very carefully. After much research and trial and error, I am able to have x11vnc start at boot as a system service by using this command line in my service file:



      ExecStart=/usr/bin/x11vnc -auth /run/user/121/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared


      I figured out as many others have that the auth guess argument doesn't work in 17.10. I also figured out that 121 is the number for the user 'gdm' that owns the greeter X session, and that is where my Xauthority file resides. Checking xorg processes via ssh:



      user@foo:~$ ps -ax |grep xorg
      886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3


      Okay, so I can connect via vnc client and I see the greeter and login, but logging in yields a plain black screen with an active mouse pointer. Looking again at xorg processes:



      user@foo:~$ ps -ax |grep xorg
      886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3
      1384 tty2 Sl+ 0:00 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3


      I see that there is a new X session owned by the user that logged in (me!), and using the Xauthority file in that location. The problem seems to be that the VNC client is stuck at the original X session for the greeter owned by 'gdm'. How can I coax the vnc client to follow to the new X session without opening a second instance of the client? Surely it is possible to log in and use the desktop manager graphical interface with x11vnc and a vnc client, no? Thanks very kindly!







      share|improve this question












      I have phrased my question very carefully. After much research and trial and error, I am able to have x11vnc start at boot as a system service by using this command line in my service file:



      ExecStart=/usr/bin/x11vnc -auth /run/user/121/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared


      I figured out as many others have that the auth guess argument doesn't work in 17.10. I also figured out that 121 is the number for the user 'gdm' that owns the greeter X session, and that is where my Xauthority file resides. Checking xorg processes via ssh:



      user@foo:~$ ps -ax |grep xorg
      886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3


      Okay, so I can connect via vnc client and I see the greeter and login, but logging in yields a plain black screen with an active mouse pointer. Looking again at xorg processes:



      user@foo:~$ ps -ax |grep xorg
      886 tty1 Sl+ 0:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3
      1384 tty2 Sl+ 0:00 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3


      I see that there is a new X session owned by the user that logged in (me!), and using the Xauthority file in that location. The problem seems to be that the VNC client is stuck at the original X session for the greeter owned by 'gdm'. How can I coax the vnc client to follow to the new X session without opening a second instance of the client? Surely it is possible to log in and use the desktop manager graphical interface with x11vnc and a vnc client, no? Thanks very kindly!









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 20 at 2:49









      egregious

      163




      163

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026569%2fwith-ubuntu-17-10-desktop-version-how-may-i-configure-x11vnc-so-that-i-may-log%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026569%2fwith-ubuntu-17-10-desktop-version-how-may-i-configure-x11vnc-so-that-i-may-log%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?