PDA

View Full Version : [SOLVED] Autologin in LXDM



beastrace91
June 9th, 2010, 05:03 AM
Howdy All,

I was wondering how I can toggle auto-login while using LXDM. I add the line
[base]
autologin=jeff to my /etc/lxdm/lxdm.conf file but that did not do the trick.

What do I need to do to enable auto login?

Per advice I found here (http://manpages.ubuntu.com/manpages/lucid/man1/lxdm.1.html) for Lubuntu I also added the above line to my /etc/xdg/lubuntu/lxdm/lxdm.conf and it still does not auto log in for me :-/

~Jeff

cavalier911
July 7th, 2010, 01:22 AM
My configuration to turn on numlock wasn't working.Edited both files you indicated identical but lxdm wasn't reading the configuration.The first time I ran the command for update-alternatives there was no current choice indicated with an asterisk.I choose 0, the asterick showed when I ran the command again.I rebooted and my numlock light came on.

There is more details in man lxdm and man update-alternatives



sudo update-alternatives --config lxdm.conf

There are 2 choices for the alternative lxdm.conf (providing /etc/lxdm/default.conf).

Selection Path Priority Status
------------------------------------------------------------
* 0 /etc/xdg/lubuntu/lxdm/lxdm.conf 60 auto mode
1 /etc/lxdm/lxdm.conf 50 manual mode
2 /etc/xdg/lubuntu/lxdm/lxdm.conf 60 manual mode

Press enter to keep the current choice , or type selection number:

SteveDee
October 29th, 2010, 06:01 PM
With Lubuntu 10.10 it now seems that you only need to change: /etc/xdg/lubuntu/lxdm/lxdm.conf



[base]
autologin=steve

xepe
November 1st, 2010, 02:49 AM
With Lubuntu 10.10 it now seems that you only need to change: /etc/xdg/lubuntu/lxdm/lxdm.conf



[base]
autologin=steve

I changed /etc/xdg/lubuntu/lxdm/lxdm.conf and got an Xsession error, I think lxdm is looking for a gnome session

SteveDee
November 1st, 2010, 07:26 PM
I changed /etc/xdg/lubuntu/lxdm/lxdm.conf and got an Xsession error, I think lxdm is looking for a gnome session

Oh, that's odd. I've only tried this on one Lubuntu system, which has a pretty clean install, and as I said I only need to change one copy of lxdm.conf.

However, I have another computer where I selected auto login during install, and just checking this, I see both copies of lxde.conf are identical. So the safest advice is probably to keep the 2 conf files the same.

lordyarox
November 3rd, 2010, 04:17 PM
I recovred my password here to post what worked for me. I just installed lxde on my server (need it for a gui hava app) and I too needed it to auto log-in.

Add autologin=username to the first line of base in /etc/lxdm/default.conf

Good luck!

dabbi2000
November 29th, 2010, 06:04 PM
is there any way to select a user by default, without auto-login?

(that is only having to write the password)

beastrace91
November 29th, 2010, 09:41 PM
is there any way to select a user by default, without auto-login?

(that is only having to write the password)

Not currently.

~Jeff

AugustinMa
March 11th, 2011, 02:50 AM
I have summarized some of this information in this tutorial:
http://linux.overshoot.tv/wiki/system/desktop_auto_login

I still have some pieces missing (See: http://ubuntuforums.org/showthread.php?t=1703824 ), so if you have more information to complete the article, let me know.

Thanks.

n8bounds
July 4th, 2011, 01:14 PM
LXDM supports themes:
http://blog.lxde.org/?p=595

And I'd like one that supports a user list, although I'm not the first to think of this:
https://bugs.launchpad.net/ubuntu/+source/lubuntu-artwork/+bug/666590
-&-
http://forum.lxde.org/viewtopic.php?f=8&t=1953

Maybe I could rip one off another distro? Does anyone know of another LXDE-based distribution that already has a LXDM theme with user list support?

zipizap
June 26th, 2012, 05:51 PM
Ubuntu Server 10.04.4 LTS, with LXDE installed manually - to enable autologin, I had to do 2 steps:

1) add a new line "autologin=yourUserName" just after the "[base]" line

sudo nano /etc/lxdm/lxdm.conf


2) Run the following, to use the configuration changes made in 1)

sudo update-alternatives --config lxdm.conf

Next time you reboot, lxdm will do autologin and send you straight to the desktop session