Author Topic: Auto login  (Read 2631 times)

Offline NGIB

  • Newbie
  • *
  • Posts: 16
Auto login
« 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...
« Last Edit: June 05, 2014, 02:01:29 pm by 590 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: Auto login
« Reply #1 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?
« Last Edit: July 01, 2014, 04:06:47 pm by 14 »
Nothing is easy as it looks.

Offline NGIB

  • Newbie
  • *
  • Posts: 16
Re: Auto login
« Reply #2 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...
« Last Edit: July 01, 2014, 04:06:29 pm by 590 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: Auto login
« Reply #3 on: June 05, 2014, 03:08:54 pm »
You right, it's my mistake, sorry.
« Last Edit: July 01, 2014, 04:06:07 pm by 14 »
Nothing is easy as it looks.

Offline NGIB

  • Newbie
  • *
  • Posts: 16
Re: Auto login
« Reply #4 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...
« Last Edit: July 01, 2014, 04:05:47 pm by 590 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: Auto login
« Reply #5 on: June 05, 2014, 03:55:38 pm »
Let me check it on my machine.
« Last Edit: July 01, 2014, 04:05:33 pm by 14 »
Nothing is easy as it looks.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: Auto login
« Reply #6 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.
« Last Edit: July 01, 2014, 04:05:18 pm by 14 »
Nothing is easy as it looks.

Offline NGIB

  • Newbie
  • *
  • Posts: 16
Re: Auto login
« Reply #7 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...
« Last Edit: July 01, 2014, 04:04:58 pm by 590 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: Auto login
« Reply #8 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=


« Last Edit: July 01, 2014, 04:04:44 pm by 14 »
Nothing is easy as it looks.

Offline johnh009

  • Newbie
  • *
  • Posts: 23
Re: Auto login
« Reply #9 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.
« Last Edit: July 01, 2014, 04:04:29 pm by 589 »

Offline NGIB

  • Newbie
  • *
  • Posts: 16
Re: Auto login
« Reply #10 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...
« Last Edit: July 01, 2014, 04:03:24 pm by 590 »

Offline GeneC

  • Full Member
  • ***
  • Posts: 126
Re: Auto login
« Reply #11 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)
Code: [Select]
deb http://packages.solydxk.com/testing/ solydxk main upstream import
I am currently sucessfully using it on 'Sparky' 3.4 XFCE.

Offline wayne

  • Newbie
  • *
  • Posts: 25
Re: Auto login
« Reply #12 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.

Offline GeneC

  • Full Member
  • ***
  • Posts: 126
Re: Auto login
« Reply #13 on: July 03, 2014, 05:39:59 pm »
Hi Wayne... :D

Nice to see you here.

Offline wayne

  • Newbie
  • *
  • Posts: 25
Re: Auto login
« Reply #14 on: July 04, 2014, 09:07:42 am »
Hi Gene,

Good to see an old friend here too.

Wayne