PDA

View Full Version : [ubuntu] Remote Desktop at Startup/Login Screen



speedgrind
September 6th, 2008, 10:03 AM
I am a newbie to Ubuntu but have installed Ubuntu Server after following some guides. I have done lots of search through the Forums and internet but still could not find a solution for my problem. I am trying to remote control my Ubuntu box at login screen where I could enter username and password and then login. This should be done all remotely. I have try X11VNC but this do not help. Anyone please show me a complete guide to do this.

veloce
September 8th, 2008, 11:40 AM
I am a newbie to Ubuntu but have installed Ubuntu Server after following some guides. I have done lots of search through the Forums and internet but still could not find a solution for my problem. I am trying to remote control my Ubuntu box at login screen where I could enter username and password and then login. This should be done all remotely. I have try X11VNC but this do not help. Anyone please show me a complete guide to do this.

It's not clear what you are actually trying to do but I don't think you'll find a complete guide for this.

What I think you are after is XDMCP. This is a standard feature of Ubuntu logins. You can select to login locally or to a remote machine.

slanbarn
September 8th, 2008, 01:17 PM
If it's the other way around you look for ie. logging in remotely to the ubuntu-box you need to allow XDMCP in GDM settings.

veloce
September 9th, 2008, 02:21 AM
Good point, what are you trying to log in *from*?

I assumed another Ubuntu box.

speedgrind
September 12th, 2008, 04:17 PM
Yes. I want to remote control the Ubuntu box right at the login screen. This mean, I will remotely send magic packet to wake up the Ubuntu box, then I will remote access the ubuntu box again and I will be able to control the screen with my mouse. The Ubuntu box has a graphical user interface installed.

Please show me a complete working guide on how to Wake up LAN and remote access at login screen. Thanks.

benjick
September 12th, 2008, 04:28 PM
What's "the other box"? If Ubuntu use XDMCP as suggested.

For the Wake on LAN; see http://ubuntuforums.org/showthread.php?t=234588

garydauphin
September 21st, 2008, 02:04 AM
I am in a similar position. I need to setup an Ubuntu server in a remote location, with no monitor or keyboard.

Therefore, when it boots to the login screen, I need to be able to control it remotely from Linux, Windows, and Mac.

Remote Desktop works fine once you're logged in. I need it to work BEFORE login.

Is there a way to start the RD process before the login screen appears?

Is there a new / better tool that would let me accomplish this?

Thanks,

Gary

veloce
September 22nd, 2008, 01:57 AM
I am in a similar position. I need to setup an Ubuntu server in a remote location, with no monitor or keyboard.

Therefore, when it boots to the login screen, I need to be able to control it remotely from Linux, Windows, and Mac.

Remote Desktop works fine once you're logged in. I need it to work BEFORE login.

Is there a way to start the RD process before the login screen appears?

Is there a new / better tool that would let me accomplish this?

Thanks,

Gary

XDMCP allows (requires) you to log in to the remote linux machine.

XDMCP will work from linux. For Windows and Mac you'd need a local x server.

erwall
September 22nd, 2008, 02:44 AM
Here's how I've done it on several computers, has worked great.


sudo aptitude install x11vnc
sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.pass
then

sudo gedit /etc/gdm/Init/Default
then
add this line to the bottom above exit:

/usr/bin/x11vnc -rfbauth -noxdamage /etc/x11vnc.pass -o /tmp/x11vnc.log -forever -bg -rfbport 5900
then

sudo gedit /etc/gdm/gdm.conf-custom
add the following right below "[daemon]":

KillInitClients=false
then

sudo reboot

garydauphin
October 7th, 2008, 08:58 PM
Thanks, but this did not work.

It might be turning X-based remote login, but it doesn't work for VNC.

gd

fermulator
October 7th, 2008, 09:33 PM
I'm also trying to do something similar....
http://ubuntuforums.org/showthread.php?t=939221

veloce
October 7th, 2008, 10:16 PM
Thanks, but this did not work.

It might be turning X-based remote login, but it doesn't work for VNC.

gd

Is there a reason you don't want to use XDMCP?

garydauphin
October 21st, 2008, 12:58 AM
Is there a reason you don't want to use XDMCP?
No particular reason. I just don't know anything about it, and I know there are so many VNC related tools that pre-load as a service on Win and Mac so that you can control a machine BEFORE login, and they are all easy to use and setup.

Am I thinking small?

gd

angel6700
November 5th, 2008, 03:36 PM
As and additional explanation, I want to point that with VNC you get access to your desktop as the currently-logged-in-user. If there is someone else working in that computer you will move its mouse and all their windows.

With xdmcp you get the log-in window and you can log in the system as another user with any disturbance to any other users logged in this machine.

Regards.

sideshowmel
May 1st, 2009, 10:38 PM
Yes I would like that ability, too... to be able to take over the machine as-is...l the user at the box could see all the movements/commands. I could reboot and still access.

Sure, SSH works great, but sometimes I'd like to be able to show somebody something remotely without having to generate and send screenshots.

Just curious, thanks.

veloce
May 4th, 2009, 01:17 AM
There appear to be two different use cases here and, IMHO, the best solution for each is different.

If you want to provide user support by "taking over" a users machine then VNC is the way to go. You don't need to set it up as a service as the user will be logged in.

If you want to log into a machine remotely with a separate session to any current user, then use XDMCP - it's what it's there for. It's much faster.

[And if you want to control several different machines that sit on your desktop then use Synergy]

speedgrind
May 9th, 2009, 03:09 AM
The problem that we always face is - if we RESTART the server, we can NEVER use VNC to remote again to login. You just cannot connect vith VNC and it give you errors and NO connection

BAD POINT = VNC can ONLY be use after we have logon to desktop.

Any idea how to solve this or workaround?

Problem: Can you imagine if I was troubleshooting the server remotely and I need to restart the server and I cannot login no more. The lousy workaround is I need someone to be in front of the server to login one time for me and the VNC services will run.

I have tried to put the VNC service in startup but nothing seems to work.

To all experts and professionals, please advice this Novice fellow who is new to Ubuntu.

Many thanks.

krunge
May 9th, 2009, 02:07 PM
sudo gedit /etc/gdm/Init/Default
then add this line to the bottom above exit:

/usr/bin/x11vnc -rfbauth -noxdamage /etc/x11vnc.pass -o /tmp/x11vnc.log -forever -bg -rfbport 5900


The above has a typo, the -noxdamage was inserted in the wrong place. The line should read:

/usr/bin/x11vnc -noxdamage -rfbauth /etc/x11vnc.pass -o /tmp/x11vnc.log -forever -bg -rfbport 5900
This way -rfbauth points to the password file now.

More info on this here:

http://www.karlrunge.com/x11vnc/faq.html#faq-display-manager

see that section marked 'Continously' in the above faq item.

veloce
May 10th, 2009, 11:44 PM
The problem that we always face is - if we RESTART the server, we can NEVER use VNC to remote again to login.

For this task, you would be better to use xdmcp. What advantage does vnc have in this situation?

motodc
July 31st, 2009, 08:49 PM
This isn't very secure, but how about this guy's solution:
http://www.lucidtips.com/2008/06/29/enable-remote-desktop-and-auto-login-on-ubuntu/

mrfantastic
November 28th, 2010, 12:18 PM
Just wanted to share my experience trying to set Ubuntu 10.10 to enable remote VNC logins directly to Ubuntu Login Screen (when no user is logged in yet):

First I had to install x11vcn from Synaptic Package Manager.

Then I had to add password to x11vcn:


sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.passAnd lastly I had to add just one line at the end of /etc/gdm/Init/Default file (remember to put that line before 'exit 0' line ):


/usr/bin/x11vnc -noxdamage -rfbauth /etc/x11vnc.pass -o /var/x11vnc.log -forever -bg -rfbport 5900That's it, because Ubuntu 10.10 is using new version of GDM and x11vcn I didn't have to edit any other files to set KillInitClients=false, and now I can login to Ubuntu Login Screen from Windows machine using UltraVNC Viewer by simply using 192.168.1.2:5900 as a VNC address.

Thanks for all previous posters giving excellent tips.

tkelito
December 1st, 2010, 04:48 PM
mrfantastic - thank you for appending your thoughts to this thread.

Your steps worked perfectly and were simplistic enough to complete over SSH.

alfonso78
March 19th, 2011, 03:51 PM
Just wanted to share my experience trying to set Ubuntu 10.10 to enable remote VNC logins directly to Ubuntu Login Screen (when no user is logged in yet):

First I had to install x11vcn from Synaptic Package Manager.

Then I had to add password to x11vcn:


sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.passAnd lastly I had to add just one line at the end of /etc/gdm/Init/Default file (remember to put that line before 'exit 0' line ):


/usr/bin/x11vnc -noxdamage -rfbauth /etc/x11vnc.pass -o /var/x11vnc.log -forever -bg -rfbport 5900That's it, because Ubuntu 10.10 is using new version of GDM and x11vcn I didn't have to edit any other files to set KillInitClients=false, and now I can login to Ubuntu Login Screen from Windows machine using UltraVNC Viewer by simply using 192.168.1.2:5900 as a VNC address.

Thanks for all previous posters giving excellent tips.

Hi guys,

be aware that many people encountered a bug in ubuntu 10.10 due to x11vnc (X crashes and you get log off / log out and back to login screen). Check here: http://ubuntuforums.org/showpost.php?p=10455539&postcount=20

using -noxrecord -noxfixes -noxdamage options for x11vnc solved the problem for me (or at least so it seems so far)

rberger
March 23rd, 2011, 09:17 PM
Will this work on Ubuntu 10.04?

royoni
April 10th, 2011, 05:39 AM
Hi,

Just one reminder to this helpful x11vnc tip, make sure correct permissions are applied to the x11vnc.pass and x11vnc.log for it to load correctly at start up, else it won't work :)

Thanks!


Just wanted to share my experience trying to set Ubuntu 10.10 to enable remote VNC logins directly to Ubuntu Login Screen (when no user is logged in yet):

First I had to install x11vcn from Synaptic Package Manager.

Then I had to add password to x11vcn:


sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.passAnd lastly I had to add just one line at the end of /etc/gdm/Init/Default file (remember to put that line before 'exit 0' line ):


/usr/bin/x11vnc -noxdamage -rfbauth /etc/x11vnc.pass -o /var/x11vnc.log -forever -bg -rfbport 5900That's it, because Ubuntu 10.10 is using new version of GDM and x11vcn I didn't have to edit any other files to set KillInitClients=false, and now I can login to Ubuntu Login Screen from Windows machine using UltraVNC Viewer by simply using 192.168.1.2:5900 as a VNC address.

Thanks for all previous posters giving excellent tips.

nmw01223
April 10th, 2011, 07:57 AM
I'm trying to do something similar that sort of worked - see this thread http://ubuntuforums.org/showthread.php?t=1725675

swhetsel
November 10th, 2011, 08:38 PM
Just wanted to share my experience trying to set Ubuntu 10.10 to enable remote VNC logins directly to Ubuntu Login Screen (when no user is logged in yet):

First I had to install x11vcn from Synaptic Package Manager.

Then I had to add password to x11vcn:


sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.passAnd lastly I had to add just one line at the end of /etc/gdm/Init/Default file (remember to put that line before 'exit 0' line ):


/usr/bin/x11vnc -noxdamage -rfbauth /etc/x11vnc.pass -o /var/x11vnc.log -forever -bg -rfbport 5900That's it, because Ubuntu 10.10 is using new version of GDM and x11vcn I didn't have to edit any other files to set KillInitClients=false, and now I can login to Ubuntu Login Screen from Windows machine using UltraVNC Viewer by simply using 192.168.1.2:5900 as a VNC address.

Thanks for all previous posters giving excellent tips.

&

Hi,

Just one reminder to this helpful x11vnc tip, make sure correct permissions are applied to the x11vnc.pass and x11vnc.log for it to load correctly at start up, else it won't work :)

Thanks!

&

I Did this. http://www.ubuntugeek.com/how-to-install-gdm-gnome-display-manager-theme-in-ubuntu.html

So I am trying to do this on 11.10 and having no luck. I have installed gdm and edited all the files as stated above yet I can not VNC in to the login screen. Any idea? (VNC is working fine when a user is already logged in.)

EDIT: Ignore the above. I was using tight VNC to no avail, however Regular old VNC viewer worked fine. Sorry and thanks for the info!

irvin
February 11th, 2012, 02:41 PM
Here's something that will work !

before login screen, secure, with password and numeric keys are working !

http://www.dannratemal.de/?p=450

cybergalvez
February 12th, 2012, 10:16 PM
use x2go google it

pbhound
February 14th, 2012, 05:40 PM
Here's something that will work !

before login screen, secure, with password and numeric keys are working !

http://www.dannratemal.de/?p=450

this website appears to be in dannish...

Krytarik
February 14th, 2012, 06:53 PM
this website appears to be in dannish...
Actually, it's German ;-) ; and the English version is right below the German one (though not easily to spot, yes).

Regards.

perspectoff
February 14th, 2012, 09:18 PM
I recommend a VPN server/client configuration then XDMCP.

Unless something has changed, XDMCP is not secure by itself. Using OpenVPN, though, you can get a secure connection through which you can use XDMCP.

While I use OpenSSH/X11VNC/KRDC many times a day (I use Kubuntu so I use KRDC instead of Vinagre), it is for access to servers that only have 1 user at a time.

For servers that have multiple users at once, XDMCP is superior. So only the secure tunnel (OpenVPN) is then required, and there can be many VPN connections as well.

whiskers751
March 20th, 2012, 08:01 AM
Just set your login prefs to auto-login :)