Remote login with graphical display manager (GDM, LightDM)

Clash Royale CLAN TAG#URR8PPP up vote
22
down vote
favorite
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?
ssh gdm lightdm login-screen
add a comment |Â
up vote
22
down vote
favorite
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?
ssh gdm lightdm login-screen
add a comment |Â
up vote
22
down vote
favorite
up vote
22
down vote
favorite
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?
ssh gdm lightdm login-screen
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?
ssh gdm lightdm login-screen
edited Apr 14 '12 at 18:55
Takkat
102k35244367
102k35244367
asked Feb 7 '11 at 19:00
luri
2,73462338
2,73462338
add a comment |Â
add a comment |Â
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 ) 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.
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
 |Â
show 5 more comments
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.
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
add a comment |Â
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 ) 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.
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
 |Â
show 5 more comments
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 ) 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.
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
 |Â
show 5 more comments
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 ) 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.
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 ) 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.
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
 |Â
show 5 more comments
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
 |Â
show 5 more comments
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
FreeNX. You log in graphically - same as sitting in front of computer. All of it happens tunneled though SSH. You'll love it.
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password