SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: NGIB on June 05, 2014, 02:01:29 PM

Title: Auto login
Post by: NGIB on June 05, 2014, 02:01:29 PM
Didn't see any entries on the menu or in the Sparky center that addressed this.  I also edited /etc/lightdm/lightdm.conf manually and it didn't work.



So far my test of the latest Sparky LXDE 64 bit is going well...
Title: Re: Auto login
Post by: pavroo on June 05, 2014, 02:11:48 PM
There is not.

If you edit the file manually, you should change the lines from:

Code:

#autologin-user=
#autologin-user-timeout=0


to:

Code:

autologin-user=your-nickname
autologin-user-timeout=0


Is it what you done?
Title: Re: Auto login
Post by: NGIB on June 05, 2014, 02:19:54 PM
I didn't change the "guest" line as it wasn't necessary in other distro's I've used (most recently WattOS, also Debian based now).  I'll try this tonight, thanks...
Title: Re: Auto login
Post by: pavroo on June 05, 2014, 03:08:54 PM
You right, it's my mistake, sorry.
Title: Re: Auto login
Post by: NGIB on June 05, 2014, 03:36:35 PM
So editing the config file will not work?  I did edit both lines and save the file (as root) and on the reboot I was still taken to the login screen...
Title: Re: Auto login
Post by: pavroo on June 05, 2014, 03:55:38 PM
Let me check it on my machine.
Title: Re: Auto login
Post by: pavroo on June 05, 2014, 09:28:47 PM
I've checked two sparky installations and autologin works fine by now.

I don't know why it doesn't work for you, sorry.
Title: Re: Auto login
Post by: NGIB on June 06, 2014, 12:03:03 PM
I verified twice that the changes I made to /etc/lightdm/lightdm.conf actually took and the system still boots to the login screen.  Sadly, it has always been little things like this that kept me from being a longtime Sparky user.  I tested this same strategy with 2 other Debian based Linux distros and it worked on them...
Title: Re: Auto login
Post by: pavroo on June 06, 2014, 02:27:19 PM
Check what is your default x-session, if not 'startlxde', set it up:

Code:

update-alternatives --config x-session-manager




You can change the line in lightdm.conf file with your name as well:

Code:

user-session=




Pam.d: /etc/pam.d/lightdm-autologin should be the same as

/etc/pam.d/lightdm but just replacing the auth lines with:

Code:

auth    required        pam_permit.so




Check file: ~HOME/.dmrc - it should looks like that:

Code:

[Desktop]
Session=LXDE
Language=<your-language>




If still doesn't work edit file /usr/share/xsessions/lightdm-xsession.desktop and change default session for:

Code:

[Desktop Entry]
Version=1.0
Name=LXDE
Exec=startlxde
Type=Application
Icon=


Title: Re: Auto login
Post by: johnh009 on June 07, 2014, 05:54:19 PM
NGIB, the following may (or may not) be of use:



Having had the same problem with a 32bit Mate version, I amended /etc/lightdm/lightdm.conf as described with no effect. However, there are 2 sections of file with the same lines in, the first (which I initially amended) appearing to be a description of what happens below (hope you can follow that). When I finally amended the 2nd section, autologin worked!



I'd be interested to know what worked for you.
Title: Re: Auto login
Post by: NGIB on June 09, 2014, 11:59:26 AM
I went back and saw the sections duplicated and edited the 2nd section as well.  It worked.  Why it was setup this way is beyond me...
Title: Re: Auto login
Post by: GeneC on July 02, 2014, 04:44:18 PM
I am using the XFCE edition of Sparky, and of course it uses 'lightdm'.  If you also have lightdm and like a nice GUI try 'LightDM Manager'. 
Its from the developer of 'Solydxk' (the same who made our Device Driver Manager)..

Login (Users button)
(http://i285.photobucket.com/albums/ll58/genecharb/1-1.png)

Change backround/theme (Appearance button)
(http://i285.photobucket.com/albums/ll58/genecharb/2.png)

You can get it by 'temporarily' adding their repo
(comment it out after install, as it may conflict with 'Sparky' repo)
deb http://packages.solydxk.com/testing/ solydxk main upstream import

I am currently sucessfully using it on 'Sparky' 3.4 XFCE.
Title: Re: Auto login
Post by: wayne on July 03, 2014, 05:27:57 PM
I just installed regular Sparky xfce 3.4 ( non-uefi)

then, use the traditional method of changing the line on /etc/lightdm/lightdm.conf

Quote#display-setup-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
##autologin-guest=false
autologin-user=wayne
#autologin-user-timeout=0
##autologin-in-background=false
##autologin-session=UNIMPLEMENTED
#exit-on-failure=false


and upon reboot, autologic seems to work.
Title: Re: Auto login
Post by: GeneC on July 03, 2014, 05:39:59 PM
Hi Wayne... :D

Nice to see you here.
Title: Re: Auto login
Post by: wayne on July 04, 2014, 09:07:42 AM
Hi Gene,

Good to see an old friend here too.

Wayne