LXQt autologin setup?

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
psilospiral
Posts: 7
Joined: 2021-02-15 14:15

LXQt autologin setup?

#1 Post by psilospiral »

I have managed to setup autologin in Debian LXDE via /etc/lightdm/lightdm.conf - but that same file / directory structure does not exist in Debian 10 with LXQt. How do I setup a user to automatically be logged in after boot in Debian 10 - LXQt?

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 55 times

Re: LXQt autologin setup?

#2 Post by arochester »

Which Display Manager are you using? LightDM? SDDM? Other?

psilospiral
Posts: 7
Joined: 2021-02-15 14:15

Re: LXQt autologin setup?

#3 Post by psilospiral »

Code: Select all

cat /etc/X11/default-display-manager
/usr/bin/sddm

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 55 times

Re: LXQt autologin setup?

#4 Post by arochester »

But which Display Manager are you using?

https://wiki.debian.org/DisplayManager

User avatar
Head_on_a_Stick
Posts: 14113
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 135 times

Re: LXQt autologin setup?

#5 Post by Head_on_a_Stick »

psilospiral wrote:

Code: Select all

cat /etc/X11/default-display-manager
/usr/bin/sddm
https://wiki.archlinux.org/index.php/SDDM#Autologin
deadbang

psilospiral
Posts: 7
Joined: 2021-02-15 14:15

Re: LXQt autologin setup?

#6 Post by psilospiral »

I read the related info found at that link. It mentions autologin info can be added to /etc/sddm.conf.d/autologin.conf

A search of stock Debian 10 LXQt returns only a single file containing 'autologin': /etc/pam.d/sddm-autologin

So I

Code: Select all

cd /etc/pam.d/
sudo cp sddm-autologin sddm-autologin.bak
then determined what my session type(s) were with:

Code: Select all

ls /usr/share/xsessions
lxqt.desktop
then

Code: Select all

sudo nano /etc/pam.d/sddm-autologin
and added to the end:
# autologin
[Autologin]
User=psilospiral
Session=lxqt.desktop
^x, y [enter]

and rebooted, but was presented with the same prompt as usual - waiting on password entry.


User avatar
Head_on_a_Stick
Posts: 14113
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 135 times

Re: LXQt autologin setup?

#8 Post by Head_on_a_Stick »

psilospiral wrote:So I

Code: Select all

cd /etc/pam.d/
sudo cp sddm-autologin sddm-autologin.bak
Why did you do that? :?

Just create a file at /etc/sddm.conf.d/autologin.conf with the content listed in the ArchWiki page to which I linked and nothing else. The PAM stuff is probably breaking the configuration file.
deadbang

psilospiral
Posts: 7
Joined: 2021-02-15 14:15

Re: LXQt autologin setup?

#9 Post by psilospiral »

Head_on_a_Stick wrote:Why did you do that? :?
So that if my attempt did not work, I could revert easily with:

Code: Select all

cd /etc/pam.d
sudo cp sddm-autologin.bak sddm-autologin
Which I did. Then created your suggested directory structure (/etc/sddm.conf.d does not exist on my stock Debian-LXQt) with:

Code: Select all

cd /etc/sddm.conf.d
bash: cd: /etc/sddm.conf.d: No such file or directory
sudo mkdir /etc/sddm.conf.d
cd sddm.conf.d
sudo nano autologin.conf
and added:

# autologin
[Autologin]
User=psilospiral
Session=lxqt.desktop

Then, ^x, y [enter]

Then I rebooted and was immediately logged in with no password prompt!

Thank you arochester and Head_on_a_Stick for your patience and help!

psilospiral
Posts: 7
Joined: 2021-02-15 14:15

[SOLVED] LXQt autologin setup?

#10 Post by psilospiral »

Below is the exact method I used to setup autologin at boot time for Debian LXQt.

This is tested and confirmed to work on both Debian 10 Buster and Debian 11 Bullseye:

# Determine your display manager

Code: Select all

cat /etc/X11/default-display-manager
/usr/bin/sddm
# Determine your session(s)

Code: Select all

ls /usr/share/xsessions
lxqt.desktop
# Make a /etc/sddm.conf.d/autologin.conf file and add info: (only for SDDM display manager)

Code: Select all

cd /etc/sddm.conf.d
bash: cd: /etc/sddm.conf.d: No such file or directory
sudo mkdir /etc/sddm.conf.d
cd /etc/sddm.conf.d
sudo nano autologin.conf
# Add to the file:

Code: Select all

# autologin
[Autologin]
User=[insert the desired user name here]
Session=lxqt.desktop
# ^x, y [enter]
# reboot to test!

Post Reply