LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2019, 10:17 PM   #1
road hazard
Member
 
Registered: Nov 2015
Posts: 241

Rep: Reputation: Disabled
Question Having zero luck getting Arch auto login working


Used the Zen installer to install Arch. Lightdm/Cinnamon.

Followed this guide: https://wiki.archlinux.org/index.php...rl:vnq64bvr%5D

and I'm having zero luck getting auto login working.

Lightdm.conf

Code:
[Seat:*]
#type=local
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-backend=
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
session-wrapper=/etc/lightdm/Xsession
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
autologin-user=roadhazard
#autologin-user-timeout=0
#autologin-in-background=false
autologin-session=cinnamon
#exit-on-failure=false
pam.d/lightdm

Code:
auto        sufficient  pam_succeed_if.so user ingroup nopasswdlogin
auth        include     system-login
-auth       optional    pam_gnome_keyring.so
account     include     system-login
password    include     system-login
session     include     system-login
-session    optional    pam_gnome_keyring.so auto_start
Those are the two files I edited. My account (roadhazard) is in the autologin and nopasswdlogin groups. When my computer boots, I get a black screen. If I move to tty2 and type my name at the login screen, it immediately brings up the desktop. (I don't have to type my password.... just my username and THEN it brings up the desktop. I think I'm really close but can't get it working.
 
Old 05-26-2019, 10:31 PM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Stupid question, but you've enabled the lightdm service so it runs at boot?
 
Old 05-26-2019, 10:45 PM   #3
road hazard
Member
 
Registered: Nov 2015
Posts: 241

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
Stupid question, but you've enabled the lightdm service so it runs at boot?
No such thing as a stupid question here in newbie land!

I went into my SystemD GUI and see that lightdm is enabled and started. Does that qualify it to be started at boot or do I need to dig deeper?
 
Old 05-26-2019, 10:51 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
No need to dig deeper, the enabled in SystemD is what I was looking for.
 
Old 05-27-2019, 12:58 PM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
I can tell you that this works.

/etc/systemd/system/getty@tty1.service.d/override.conf
Code:
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin username --noclear*%I $TERM
~/.bash_profile
Code:
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  exec startx -- -dpi 100
fi
https://wiki.archlinux.org/index.php/Getty
 
Old 05-28-2019, 04:48 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
autologin-user=roadhazard

Make sure the username is correct. Sometimes you'll have a space after it, which might get in the way, or sometimes is required. Interpreters can be "quirky", version changes between can change those quirks.

Not sure why you changed /etc/pam.d/lightdm? And is - the comment character? Seems more like # is the comment character based on other files in that path.

Isn't cinnamon a fork of gnome? There's a gui user manager with a toggle for auto login. Or so they say, never really gone down that rabbit hole. I tend to run level 3 / multi-user.target and use startx to go GUI. Too many painful memories of broken video drivers and reinstalls to overcome GUI starts, versus changing a configuration file and rebooting. Since proprietary drivers get undone every time you update and the kernel changes.

BITD we used a autologin.c program and put it in the /etc/inittab for one of those [a][ge]tty things.

http://www.linuxquestions.org/questions/t374338.html

But *sigh* systemd no longer does things the traditional way.
 
  


Reply

Tags
arch linux, autologin



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Still no luck getting Brother DCP-7040 working wufo Slackware 1 03-19-2012 12:23 AM
Having trouble getting HP Deskjet D1600 working with Arch Linux bret381 Linux - Hardware 4 06-15-2010 06:13 AM
Auto-login (KDE) - will not auto-login without monitor attached Mithrilhall Linux - General 2 03-04-2008 10:16 AM
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM
Firestarter 'Serious' is non-zero, 'Total' is zero sixerjman Linux - Software 0 08-24-2007 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration