LXQt autologin setup?
-
- Posts: 7
- Joined: 2021-02-15 14:15
LXQt autologin setup?
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?
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 55 times
-
- Posts: 7
- Joined: 2021-02-15 14:15
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 55 times
- 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?
https://wiki.archlinux.org/index.php/SDDM#Autologinpsilospiral wrote:Code: Select all
cat /etc/X11/default-display-manager /usr/bin/sddm
deadbang
-
- Posts: 7
- Joined: 2021-02-15 14:15
Re: LXQt autologin setup?
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
then determined what my session type(s) were with:
then
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.
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
Code: Select all
ls /usr/share/xsessions
lxqt.desktop
Code: Select all
sudo nano /etc/pam.d/sddm-autologin
# 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.
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 55 times
- 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?
Why did you do that?psilospiral wrote:So ICode: Select all
cd /etc/pam.d/ sudo cp sddm-autologin sddm-autologin.bak
![Confused :?](./images/smilies/icon_confused.gif)
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
-
- Posts: 7
- Joined: 2021-02-15 14:15
Re: LXQt autologin setup?
So that if my attempt did not work, I could revert easily with:Head_on_a_Stick wrote:Why did you do that?![]()
Code: Select all
cd /etc/pam.d
sudo cp sddm-autologin.bak sddm-autologin
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
# 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!
-
- Posts: 7
- Joined: 2021-02-15 14:15
[SOLVED] LXQt autologin setup?
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
# Determine your session(s)
# Make a /etc/sddm.conf.d/autologin.conf file and add info: (only for SDDM display manager)
# Add to the file:
# ^x, y [enter]
# reboot to test!
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
Code: Select all
ls /usr/share/xsessions
lxqt.desktop
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
Code: Select all
# autologin
[Autologin]
User=[insert the desired user name here]
Session=lxqt.desktop
# reboot to test!