SCIENTIFIC-LINUX-USERS Archives

June 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Sun, 31 May 2015 22:06:26 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (84 lines)
Hi All,

Thought you guys might like this note I wrote myself on
how to autologin.  Hopefully it will keep others from
tearing their out.

-T


Autologin:

    References: 
https://wiki.archlinux.org/index.php/LightDM#Enabling_autologin
                 Note: this reference is missing "autologin-session=true"

                 http://www.perturb.org/display/812_GDM_AutoLogin.html
                 http://www.linfo.org/automatic_login.html
 
http://www.freetechie.com/blog/kubuntuand-kde-4-user-auto-login/


You have three possible Screen Managers (the login thingy):

gdm:     gnome
lightdm: lxde, xfce, MATE-Compiz
kdmrc:   KDE4

To double check:
     $ ps ax | grep -i "lightdm\|gdm" | grep -v grep



GDM:

      It only auto-logs in on first boot, and it must be a non-root user.

      edit /etc/gdm/custom.conf:
          [daemon]
          AutomaticLoginEnable=true
          AutomaticLogin=whatever_username
          TimedLoginEnable=true

          TimedLogin=whatever_username
          TimedLoginDelay=0


    The autologin doesn't require a reboot to work, just issue the 
following command:

    /etc/init.d/gdm restart



Lightdm:

       edit /etc/lightdm/lightdm.conf:

           [SeatDefaults]
           pam-autologin-service=lightdm-autologin
           user-session=xfce                         # optional
           session-wrapper=/etc/lightdm/Xsession     # note: change the 
default
           autologin-user=tony
           autologin-user-timeout=0
           autologin-session=true

        Set up LightDM and PAM and autologin

           # groupadd autologin
           # gpasswd --add tony autologin
           # reboot



KDMRC (not verified, use at own risk):

       edit /etc/kde4/kdm/kdmrc:

          [X-:0-Core]
          AutoLoginEnable=true
          AutoLoginLocked=false
          AutoLoginUser=bkevan
          ClientLogFile=.xsession-errors

ATOM RSS1 RSS2