Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Auto login

Started by NGIB, June 05, 2014, 02:01:29 PM

Previous topic - Next topic

NGIB

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...

pavroo

#1
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?
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

NGIB

#2
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...

pavroo

#3
You right, it's my mistake, sorry.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

NGIB

#4
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...

pavroo

#5
Let me check it on my machine.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

pavroo

#6
I've checked two sparky installations and autologin works fine by now.

I don't know why it doesn't work for you, sorry.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

NGIB

#7
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...

pavroo

#8
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=


Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

johnh009

#9
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.

NGIB

#10
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...

GeneC

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)


Change backround/theme (Appearance button)


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.
GeneC

wayne

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.

GeneC

Hi Wayne... :D

Nice to see you here.
GeneC

wayne

Hi Gene,

Good to see an old friend here too.

Wayne

View the most recent posts on the forum