SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-12-05 22:38:04

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

LIGHTDM { Help Please } [ SOLVED ]

Hi All,

I have just done a net install and moved over to sid, which went well and is working ok, but it comes with lightdm installed which is working but I am trying to figue out how to get it to autologin. I have googled it and searched this forum but am unable to get it to work.

I have altered things in lightdm.conf

autologin-user=gordon
autologin-user-timeout=0
pam-service=lightdm-autologin

and in lightdm-autologin

auth required pam_succeed_if.so user != root quiet_success
auth    required        pam_permit.so

but with no luck and I am unable to find any other info on what to do, hence my request. Any help would be very much appreciated neutral

Last edited by Gordon (2012-12-06 16:40:51)


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

Help fund CrunchBang, donate to the project!

#2 2012-12-05 23:00:37

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,108

Re: LIGHTDM { Help Please } [ SOLVED ]

/etc/pam.d/lightdm-autologin

#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
auth required pam_succeed_if.so user != root quiet_success
auth required pam_permit.so
@include common-account
session required pam_limits.so
@include common-session
@include common-password

http://siripong-computer-tips.blogspot. … heezy.html

Last edited by dura (2012-12-05 23:01:55)

Offline

#3 2012-12-06 07:01:03

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: LIGHTDM { Help Please } [ SOLVED ]

Hi dura,

Those other items were already there here is th full pam.d

#%PAM-1.0
auth    requisite       pam_nologin.so
auth    required        pam_env.so readenv=1
auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
auth required pam_succeed_if.so user != root quiet_success
auth    required        pam_permit.so
#auth    sufficient      pam_thinkfinger.so
@include common-account
# SELinux needs to be the first session rule. This ensures that any 
# lingering context has been cleared. Without out this it is possible 
# that a module could execute code in the wrong domain.
# When the module is present, "required" would be sufficient (When SELinux
# is disabled, this returns success.)
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
session required        pam_limits.so
# session required        pam_loginuid.so
@include common-session
# SELinux needs to intervene at login time to ensure that the process
# starts in the proper default security context. Only sessions which are
# intended to run in the user's context should be run after this.
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
# When the module is present, "required" would be sufficient (When SELinux
# is disabled, this returns success.)
@include common-password

Should I delete all the other entries ?


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#4 2012-12-06 11:59:04

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: LIGHTDM { Help Please } [ SOLVED ]

Hi Gordon,

in lightdm.conf you should only uncomment/change
autologin-user=gordon

The other two entries  (pam and timeout)  you don't need to change for autologin.
What you should change is /usr/share/xsessions/lightdm-xsession.desktop to load the environement you want to have, example:

[Desktop Entry]
Version=1.0
Name=Xfce session
Exec=startxfce4
Icon=
Type=Application

Last edited by machinebacon (2012-12-06 12:00:42)


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#5 2012-12-06 16:00:12

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: LIGHTDM { Help Please } [ SOLVED ]

Hi machinebacon,

Thanks for the reply, I have just got in so I will now do as you say. All the other info in pam.d was already in there except 1 line that dura suggested, anyway I will alter things to what you say and see how it goes. I will report back one I have altered things. Wife has just got back from being at sons place. smile


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#6 2012-12-06 16:56:41

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: LIGHTDM { Help Please } [ SOLVED ]

Hi Folks one and all

As you can see , you have yet again solved my little problem for which I am trully gratefull.. I don't know but I think it is using a part of all sugestions.

This is what I now have in lightdm

#%PAM-1.0
auth    requisite       pam_nologin.so
auth    required        pam_env.so readenv=1
auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
auth required pam_succeed_if.so user != root quiet_success
auth required pam_permit.so
@include common-account
session required        pam_limits.so
@include common-session
@include common-password

lightdm-autologin

#%PAM-1.0
auth    requisite       pam_nologin.so
auth    required        pam_env.so readenv=1
auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
auth required pam_succeed_if.so user != root quiet_success
auth    required        pam_permit.so
session required        pam_limits.so
@include common-account
@include common-session
@include common-password

lightmd-xsessions.desktop

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

and in lightdm.conf  I have changed autologin-user= and uncommented it

Again thanks for all your help  big_smile


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#7 2013-02-22 19:49:29

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,863

Re: LIGHTDM { Help Please } [ SOLVED ]

Know it's marked as solved but had some babble to add anyway.


Had a similar headache w lightdm. Finally figured it out and for me turned out to be exactly what Machinebacon said. Wanted to add some clarifications on the process that may help others though. Was more of a pita figuring it out than expected and enabling autologin with lightdm doesn't seem to be covered very well on the web.

Mentioned ... did exactly what MB advised.

In the /etc/lightdm/lightdm.conf file, there's more than one entry for "autologin-user=". A person needs to uncomment and add their username to the entry in the file under the section [SeatDefaults] Rather than in the section above it.

Uncomment that line and change it to autologin-user=yourusername ...

Next stop was /usr/share/xsession ...

Where I found a file named Default Xsession. I didn't have a file named "lightdm-xsessions.desktop" but am dorking around with Machines Trollinger OS here. So there were a couple xsessions.desktop files already setup. Opened that Default Xsession file with root or sudo privileges and changed it from this ...

[Desktop Entry]
Version=1.0
Name=Default Xsession
Exec=default
Icon=
Type=Application

To this ...

[Desktop Entry]
Version=1.0
Name=Openbox Session
Exec=openbox-session
Icon=
Type=Application


That worked for me and were the only things/changes I had to make. Obviously a person can edit that file differently and still works in launching openbox. ie: Gordon used openbox and I used openbox-session, both worked and that's probably all that matters anyway. End babble ...


Vll! smile

Last edited by CBizgreat! (2013-02-22 20:59:48)


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo