Remote login with graphical display manager (GDM, LightDM)

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








up vote
22
down vote

favorite
8












Is it possible to remotely (via ssh) make a login to GDM?
I'll explain a situation in which I'd need this:
I'm on my laptop and connect to my desktop via ssh. I realize there are some updates available. I install them all, but I need to reboot the computer. The problem is that once the desktop has rebooted, there will be no GDM session available, since it's necessary to log in. Can I somehow perform the GDM login remotely from my laptop?



Edit: I can't find FreeNX for Maverick, and I haven't been able to configure x11vnc + vncviewer to work. Isn't there an easy way?







share|improve this question

























    up vote
    22
    down vote

    favorite
    8












    Is it possible to remotely (via ssh) make a login to GDM?
    I'll explain a situation in which I'd need this:
    I'm on my laptop and connect to my desktop via ssh. I realize there are some updates available. I install them all, but I need to reboot the computer. The problem is that once the desktop has rebooted, there will be no GDM session available, since it's necessary to log in. Can I somehow perform the GDM login remotely from my laptop?



    Edit: I can't find FreeNX for Maverick, and I haven't been able to configure x11vnc + vncviewer to work. Isn't there an easy way?







    share|improve this question























      up vote
      22
      down vote

      favorite
      8









      up vote
      22
      down vote

      favorite
      8






      8





      Is it possible to remotely (via ssh) make a login to GDM?
      I'll explain a situation in which I'd need this:
      I'm on my laptop and connect to my desktop via ssh. I realize there are some updates available. I install them all, but I need to reboot the computer. The problem is that once the desktop has rebooted, there will be no GDM session available, since it's necessary to log in. Can I somehow perform the GDM login remotely from my laptop?



      Edit: I can't find FreeNX for Maverick, and I haven't been able to configure x11vnc + vncviewer to work. Isn't there an easy way?







      share|improve this question













      Is it possible to remotely (via ssh) make a login to GDM?
      I'll explain a situation in which I'd need this:
      I'm on my laptop and connect to my desktop via ssh. I realize there are some updates available. I install them all, but I need to reboot the computer. The problem is that once the desktop has rebooted, there will be no GDM session available, since it's necessary to log in. Can I somehow perform the GDM login remotely from my laptop?



      Edit: I can't find FreeNX for Maverick, and I haven't been able to configure x11vnc + vncviewer to work. Isn't there an easy way?









      share|improve this question












      share|improve this question




      share|improve this question








      edited Apr 14 '12 at 18:55









      Takkat

      102k35244367




      102k35244367









      asked Feb 7 '11 at 19:00









      luri

      2,73462338




      2,73462338




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          23
          down vote



          accepted










          Install x11vnc on the remote



          We assume a working ssh setup has already been done.



          user@remote: sudo apt-get install x11vnc



          Remote login with GDM



          We assume that a successful vnc setup has already been done.



          user@remote:~$ sudo x11vnc <options>


          x11vnc will use our predefinded VNC settings and passwords. For further options see the manpage and this nice and elaborate tutorial.



          Remote login with Light DM



          To access the Light DM login screen we need to submit the Xauhority file for Light DM



          ssh user@remote
          user@remote: sudo su
          root@remote: x11vnc -auth /var/lib/lightdm/.Xauthority -display :0



          View the remote screen



          On the client side launch the vncviewer (e.g. from xtightvncviewer Install xtightvncviewer) as follows:



          vncviewer -via user@remote localhost:0


          By localhost:0 we display screen 0 on the localhost. The option -via is for using ssh.



          After typing in the password for the remote login we can proceed with the graphical login.






          share|improve this answer























          • Exactly what should I do in the remote machine, and what in the local machine... Additionaly... would that run over shh (encrypted and such)?
            – luri
            Feb 7 '11 at 20:32










          • I'll have to install and configure vnc first... So it'll take some time to test both x11vnc and FreeNX (lil time to test... kids, also :) )
            – luri
            Feb 8 '11 at 15:31










          • When I issue x11vnc command on the remote machine, I get a dramatic warning about not having set a password and about everyone being able to see my desktop.... How do I set a password? Do I really have to set up one?
            – luri
            Feb 15 '11 at 20:02










          • Oh, and actually sudo x11vnc fails to start... says it can't find display
            – luri
            Feb 15 '11 at 20:12










          • What do you mean? I installed x11vnc on the remote machine, and xnc4viewer on the local one. I have an additional problem with the vncviewer command: I'm not using public keys, but password instead, and my ssh server does not run on port 22 (default).
            – luri
            Feb 15 '11 at 21:26


















          up vote
          5
          down vote













          FreeNX. You log in graphically - same as sitting in front of computer. All of it happens tunneled though SSH. You'll love it.






          share|improve this answer





















          • Got to test both x11vnc and FreeNX... I'm quite concerned about security, tho, so I'd like to know which one is the safest.
            – luri
            Feb 7 '11 at 21:30










          • They both forward though SSH.
            – user8290
            Feb 7 '11 at 21:30






          • 1




            I just can't find FreeNX... It's not in the default repositories, and their ppa returns a couple of 404-type errors (i'm using maverick, btw)
            – luri
            Feb 15 '11 at 20:41







          • 1




            The commercial (free) edition is available. nomachine.com/download.php
            – user8290
            Feb 15 '11 at 22:49










          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%2f25189%2fremote-login-with-graphical-display-manager-gdm-lightdm%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          23
          down vote



          accepted










          Install x11vnc on the remote



          We assume a working ssh setup has already been done.



          user@remote: sudo apt-get install x11vnc



          Remote login with GDM



          We assume that a successful vnc setup has already been done.



          user@remote:~$ sudo x11vnc <options>


          x11vnc will use our predefinded VNC settings and passwords. For further options see the manpage and this nice and elaborate tutorial.



          Remote login with Light DM



          To access the Light DM login screen we need to submit the Xauhority file for Light DM



          ssh user@remote
          user@remote: sudo su
          root@remote: x11vnc -auth /var/lib/lightdm/.Xauthority -display :0



          View the remote screen



          On the client side launch the vncviewer (e.g. from xtightvncviewer Install xtightvncviewer) as follows:



          vncviewer -via user@remote localhost:0


          By localhost:0 we display screen 0 on the localhost. The option -via is for using ssh.



          After typing in the password for the remote login we can proceed with the graphical login.






          share|improve this answer























          • Exactly what should I do in the remote machine, and what in the local machine... Additionaly... would that run over shh (encrypted and such)?
            – luri
            Feb 7 '11 at 20:32










          • I'll have to install and configure vnc first... So it'll take some time to test both x11vnc and FreeNX (lil time to test... kids, also :) )
            – luri
            Feb 8 '11 at 15:31










          • When I issue x11vnc command on the remote machine, I get a dramatic warning about not having set a password and about everyone being able to see my desktop.... How do I set a password? Do I really have to set up one?
            – luri
            Feb 15 '11 at 20:02










          • Oh, and actually sudo x11vnc fails to start... says it can't find display
            – luri
            Feb 15 '11 at 20:12










          • What do you mean? I installed x11vnc on the remote machine, and xnc4viewer on the local one. I have an additional problem with the vncviewer command: I'm not using public keys, but password instead, and my ssh server does not run on port 22 (default).
            – luri
            Feb 15 '11 at 21:26















          up vote
          23
          down vote



          accepted










          Install x11vnc on the remote



          We assume a working ssh setup has already been done.



          user@remote: sudo apt-get install x11vnc



          Remote login with GDM



          We assume that a successful vnc setup has already been done.



          user@remote:~$ sudo x11vnc <options>


          x11vnc will use our predefinded VNC settings and passwords. For further options see the manpage and this nice and elaborate tutorial.



          Remote login with Light DM



          To access the Light DM login screen we need to submit the Xauhority file for Light DM



          ssh user@remote
          user@remote: sudo su
          root@remote: x11vnc -auth /var/lib/lightdm/.Xauthority -display :0



          View the remote screen



          On the client side launch the vncviewer (e.g. from xtightvncviewer Install xtightvncviewer) as follows:



          vncviewer -via user@remote localhost:0


          By localhost:0 we display screen 0 on the localhost. The option -via is for using ssh.



          After typing in the password for the remote login we can proceed with the graphical login.






          share|improve this answer























          • Exactly what should I do in the remote machine, and what in the local machine... Additionaly... would that run over shh (encrypted and such)?
            – luri
            Feb 7 '11 at 20:32










          • I'll have to install and configure vnc first... So it'll take some time to test both x11vnc and FreeNX (lil time to test... kids, also :) )
            – luri
            Feb 8 '11 at 15:31










          • When I issue x11vnc command on the remote machine, I get a dramatic warning about not having set a password and about everyone being able to see my desktop.... How do I set a password? Do I really have to set up one?
            – luri
            Feb 15 '11 at 20:02










          • Oh, and actually sudo x11vnc fails to start... says it can't find display
            – luri
            Feb 15 '11 at 20:12










          • What do you mean? I installed x11vnc on the remote machine, and xnc4viewer on the local one. I have an additional problem with the vncviewer command: I'm not using public keys, but password instead, and my ssh server does not run on port 22 (default).
            – luri
            Feb 15 '11 at 21:26













          up vote
          23
          down vote



          accepted







          up vote
          23
          down vote



          accepted






          Install x11vnc on the remote



          We assume a working ssh setup has already been done.



          user@remote: sudo apt-get install x11vnc



          Remote login with GDM



          We assume that a successful vnc setup has already been done.



          user@remote:~$ sudo x11vnc <options>


          x11vnc will use our predefinded VNC settings and passwords. For further options see the manpage and this nice and elaborate tutorial.



          Remote login with Light DM



          To access the Light DM login screen we need to submit the Xauhority file for Light DM



          ssh user@remote
          user@remote: sudo su
          root@remote: x11vnc -auth /var/lib/lightdm/.Xauthority -display :0



          View the remote screen



          On the client side launch the vncviewer (e.g. from xtightvncviewer Install xtightvncviewer) as follows:



          vncviewer -via user@remote localhost:0


          By localhost:0 we display screen 0 on the localhost. The option -via is for using ssh.



          After typing in the password for the remote login we can proceed with the graphical login.






          share|improve this answer















          Install x11vnc on the remote



          We assume a working ssh setup has already been done.



          user@remote: sudo apt-get install x11vnc



          Remote login with GDM



          We assume that a successful vnc setup has already been done.



          user@remote:~$ sudo x11vnc <options>


          x11vnc will use our predefinded VNC settings and passwords. For further options see the manpage and this nice and elaborate tutorial.



          Remote login with Light DM



          To access the Light DM login screen we need to submit the Xauhority file for Light DM



          ssh user@remote
          user@remote: sudo su
          root@remote: x11vnc -auth /var/lib/lightdm/.Xauthority -display :0



          View the remote screen



          On the client side launch the vncviewer (e.g. from xtightvncviewer Install xtightvncviewer) as follows:



          vncviewer -via user@remote localhost:0


          By localhost:0 we display screen 0 on the localhost. The option -via is for using ssh.



          After typing in the password for the remote login we can proceed with the graphical login.







          share|improve this answer















          share|improve this answer



          share|improve this answer








          edited Mar 11 '17 at 18:59









          Community♦

          1




          1











          answered Feb 7 '11 at 19:30









          Takkat

          102k35244367




          102k35244367











          • Exactly what should I do in the remote machine, and what in the local machine... Additionaly... would that run over shh (encrypted and such)?
            – luri
            Feb 7 '11 at 20:32










          • I'll have to install and configure vnc first... So it'll take some time to test both x11vnc and FreeNX (lil time to test... kids, also :) )
            – luri
            Feb 8 '11 at 15:31










          • When I issue x11vnc command on the remote machine, I get a dramatic warning about not having set a password and about everyone being able to see my desktop.... How do I set a password? Do I really have to set up one?
            – luri
            Feb 15 '11 at 20:02










          • Oh, and actually sudo x11vnc fails to start... says it can't find display
            – luri
            Feb 15 '11 at 20:12










          • What do you mean? I installed x11vnc on the remote machine, and xnc4viewer on the local one. I have an additional problem with the vncviewer command: I'm not using public keys, but password instead, and my ssh server does not run on port 22 (default).
            – luri
            Feb 15 '11 at 21:26

















          • Exactly what should I do in the remote machine, and what in the local machine... Additionaly... would that run over shh (encrypted and such)?
            – luri
            Feb 7 '11 at 20:32










          • I'll have to install and configure vnc first... So it'll take some time to test both x11vnc and FreeNX (lil time to test... kids, also :) )
            – luri
            Feb 8 '11 at 15:31










          • When I issue x11vnc command on the remote machine, I get a dramatic warning about not having set a password and about everyone being able to see my desktop.... How do I set a password? Do I really have to set up one?
            – luri
            Feb 15 '11 at 20:02










          • Oh, and actually sudo x11vnc fails to start... says it can't find display
            – luri
            Feb 15 '11 at 20:12










          • What do you mean? I installed x11vnc on the remote machine, and xnc4viewer on the local one. I have an additional problem with the vncviewer command: I'm not using public keys, but password instead, and my ssh server does not run on port 22 (default).
            – luri
            Feb 15 '11 at 21:26
















          Exactly what should I do in the remote machine, and what in the local machine... Additionaly... would that run over shh (encrypted and such)?
          – luri
          Feb 7 '11 at 20:32




          Exactly what should I do in the remote machine, and what in the local machine... Additionaly... would that run over shh (encrypted and such)?
          – luri
          Feb 7 '11 at 20:32












          I'll have to install and configure vnc first... So it'll take some time to test both x11vnc and FreeNX (lil time to test... kids, also :) )
          – luri
          Feb 8 '11 at 15:31




          I'll have to install and configure vnc first... So it'll take some time to test both x11vnc and FreeNX (lil time to test... kids, also :) )
          – luri
          Feb 8 '11 at 15:31












          When I issue x11vnc command on the remote machine, I get a dramatic warning about not having set a password and about everyone being able to see my desktop.... How do I set a password? Do I really have to set up one?
          – luri
          Feb 15 '11 at 20:02




          When I issue x11vnc command on the remote machine, I get a dramatic warning about not having set a password and about everyone being able to see my desktop.... How do I set a password? Do I really have to set up one?
          – luri
          Feb 15 '11 at 20:02












          Oh, and actually sudo x11vnc fails to start... says it can't find display
          – luri
          Feb 15 '11 at 20:12




          Oh, and actually sudo x11vnc fails to start... says it can't find display
          – luri
          Feb 15 '11 at 20:12












          What do you mean? I installed x11vnc on the remote machine, and xnc4viewer on the local one. I have an additional problem with the vncviewer command: I'm not using public keys, but password instead, and my ssh server does not run on port 22 (default).
          – luri
          Feb 15 '11 at 21:26





          What do you mean? I installed x11vnc on the remote machine, and xnc4viewer on the local one. I have an additional problem with the vncviewer command: I'm not using public keys, but password instead, and my ssh server does not run on port 22 (default).
          – luri
          Feb 15 '11 at 21:26













          up vote
          5
          down vote













          FreeNX. You log in graphically - same as sitting in front of computer. All of it happens tunneled though SSH. You'll love it.






          share|improve this answer





















          • Got to test both x11vnc and FreeNX... I'm quite concerned about security, tho, so I'd like to know which one is the safest.
            – luri
            Feb 7 '11 at 21:30










          • They both forward though SSH.
            – user8290
            Feb 7 '11 at 21:30






          • 1




            I just can't find FreeNX... It's not in the default repositories, and their ppa returns a couple of 404-type errors (i'm using maverick, btw)
            – luri
            Feb 15 '11 at 20:41







          • 1




            The commercial (free) edition is available. nomachine.com/download.php
            – user8290
            Feb 15 '11 at 22:49














          up vote
          5
          down vote













          FreeNX. You log in graphically - same as sitting in front of computer. All of it happens tunneled though SSH. You'll love it.






          share|improve this answer





















          • Got to test both x11vnc and FreeNX... I'm quite concerned about security, tho, so I'd like to know which one is the safest.
            – luri
            Feb 7 '11 at 21:30










          • They both forward though SSH.
            – user8290
            Feb 7 '11 at 21:30






          • 1




            I just can't find FreeNX... It's not in the default repositories, and their ppa returns a couple of 404-type errors (i'm using maverick, btw)
            – luri
            Feb 15 '11 at 20:41







          • 1




            The commercial (free) edition is available. nomachine.com/download.php
            – user8290
            Feb 15 '11 at 22:49












          up vote
          5
          down vote










          up vote
          5
          down vote









          FreeNX. You log in graphically - same as sitting in front of computer. All of it happens tunneled though SSH. You'll love it.






          share|improve this answer













          FreeNX. You log in graphically - same as sitting in front of computer. All of it happens tunneled though SSH. You'll love it.







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Feb 7 '11 at 21:12







          user8290


















          • Got to test both x11vnc and FreeNX... I'm quite concerned about security, tho, so I'd like to know which one is the safest.
            – luri
            Feb 7 '11 at 21:30










          • They both forward though SSH.
            – user8290
            Feb 7 '11 at 21:30






          • 1




            I just can't find FreeNX... It's not in the default repositories, and their ppa returns a couple of 404-type errors (i'm using maverick, btw)
            – luri
            Feb 15 '11 at 20:41







          • 1




            The commercial (free) edition is available. nomachine.com/download.php
            – user8290
            Feb 15 '11 at 22:49
















          • Got to test both x11vnc and FreeNX... I'm quite concerned about security, tho, so I'd like to know which one is the safest.
            – luri
            Feb 7 '11 at 21:30










          • They both forward though SSH.
            – user8290
            Feb 7 '11 at 21:30






          • 1




            I just can't find FreeNX... It's not in the default repositories, and their ppa returns a couple of 404-type errors (i'm using maverick, btw)
            – luri
            Feb 15 '11 at 20:41







          • 1




            The commercial (free) edition is available. nomachine.com/download.php
            – user8290
            Feb 15 '11 at 22:49















          Got to test both x11vnc and FreeNX... I'm quite concerned about security, tho, so I'd like to know which one is the safest.
          – luri
          Feb 7 '11 at 21:30




          Got to test both x11vnc and FreeNX... I'm quite concerned about security, tho, so I'd like to know which one is the safest.
          – luri
          Feb 7 '11 at 21:30












          They both forward though SSH.
          – user8290
          Feb 7 '11 at 21:30




          They both forward though SSH.
          – user8290
          Feb 7 '11 at 21:30




          1




          1




          I just can't find FreeNX... It's not in the default repositories, and their ppa returns a couple of 404-type errors (i'm using maverick, btw)
          – luri
          Feb 15 '11 at 20:41





          I just can't find FreeNX... It's not in the default repositories, and their ppa returns a couple of 404-type errors (i'm using maverick, btw)
          – luri
          Feb 15 '11 at 20:41





          1




          1




          The commercial (free) edition is available. nomachine.com/download.php
          – user8290
          Feb 15 '11 at 22:49




          The commercial (free) edition is available. nomachine.com/download.php
          – user8290
          Feb 15 '11 at 22:49












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f25189%2fremote-login-with-graphical-display-manager-gdm-lightdm%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Running the scala interactive shell from the command line

          Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

          What makes Checkinstall packages not suitable for distribution?