Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[ SOLVED ] Enable autologin on xfce

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
jarp53
Posts: 6
Joined: 2017-12-03 16:19

[ SOLVED ] Enable autologin on xfce

#1 Post by jarp53 »

I'm trying to learn Debian , so I install it with the XFCE desktop, I have done a few things, ( install nvidia drivers , set up firewall, install software store, got the panel set up , and few others ) but now I like to do autologin ; so from here [ https://wiki.debian.org/LightDM#Enable_autologin ] I install LightDM, and now I have to configure the file , the instructions says I need to " enable autologin look up these lines in lightdm configuration file, uncomment them and customize to your preference. #autologin-user=
#autologin-user-timeout=0
in the file they look like this:
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
can some one please show me how to uncomment them and customize them so I can start the session with out login in
Last edited by jarp53 on 2020-06-25 15:27, edited 1 time in total.


User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 504
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Enable autologin on xfce

#3 Post by Bloom »

That link points to what you had to do in Jessie. Nowadays, it is MUCH easier.
Open and edit /etc/lightdm/lightdm.conf with root rights.
Find:

Code: Select all

[Seat:*]
#autologin-user=
and make it like this:

Code: Select all

[Seat:*]
autologin-user=jarp53
Or if your username isn't jarp53, put your actual username in there. Uncomment means remove the '#' in front.

jarp53
Posts: 6
Joined: 2017-12-03 16:19

Re: Enable autologin on xfce

#4 Post by jarp53 »

thank you very much; and Bloom you're right after looking at other responses from the past now days is a lot easier

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: [ SOLVED ] Enable autologin on xfce

#5 Post by francois.e »

Very useful for me.
Thanks.

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: [ SOLVED ] Enable autologin on xfce

#6 Post by francois.e »

Finally, it did not worked. I have tried:
autologin-user = fl

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

Re: [ SOLVED ] Enable autologin on xfce

#7 Post by Head_on_a_Stick »

There shouldn't be any spaces around the = sign.
deadbang

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: [ SOLVED ] Enable autologin on xfce

#8 Post by francois.e »

Sorry, I did not came for a long time.

In fact here is what I had:
# Seat configuration is matched against the seat name glob in the section, for example:
[Seat:*] matches all seats and is applied first.
autologin-user=fl

And what happens is that the system will boot text mode, and then I will get:
login:
password:

Then I have to issue startx to get into the X environment.

I will come back soon.

Suggestions are really appreciated.

Thanks.

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: [ SOLVED ] Enable autologin on xfce

#9 Post by francois.e »

Finally, I removed the autologin to see what it does:
# autologin-user=fl

During bootup of the system I can see many times the following error message:

Code: Select all

failed to start light display manager
Interesting!

Then according to:
https://www.debugpoint.com/2021/03/fail ... t-lightdm/

Code: Select all

fl@francois-asus:~/Downloads$ systemctl status lightdm
● lightdm.service - Light Display Manager
   Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset:
   Active: failed (Result: exit-code) since Wed 2021-04-14 22:13:40 EDT; 9min ag
     Docs: man:lightdm(1)
  Process: 754 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager
  Process: 756 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
 Main PID: 756 (code=exited, status=1/FAILURE)
lines 1-7/7 (END)
Any additional comprehension to the problem?

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: [ SOLVED ] Enable autologin on xfce

#10 Post by francois.e »

The difficulty booting with lightdm is solved with the help of :
https://www.debugpoint.com/2021/03/fail ... t-lightdm/
systemctl status lightdm
lightdm --test-mode --debug

My /etc/lightdm/lightdm.conf file was corrupted wth some info that should have been preceded by a # sign.

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: [ SOLVED ] Enable autologin on xfce

#11 Post by francois.e »

However, I am still unable to autologin. Debug file:

Code: Select all

fl@francois-asus:~$ su
Password: 
root@francois-asus:/home/fl# lightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=2424
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/xfce4/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG:   [LightDM] contains unknown option autologin-user
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Error: The connection is closed

[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: posix_spawn avoided (fd close requested) 
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+0.01s] DEBUG: XServer 1: Can't launch X server Xephyr, not found in path
[+0.01s] DEBUG: XServer 1: X server stopped
[+0.01s] DEBUG: Releasing VT 7
[+0.01s] DEBUG: Seat seat0: Display server stopped
[+0.01s] DEBUG: Seat seat0: Can't create display server for greeter
[+0.01s] DEBUG: Seat seat0: Session stopped
[+0.01s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.01s] DEBUG: Seat seat0: Stopping
[+0.01s] DEBUG: Seat seat0: Stopped
[+0.01s] DEBUG: Failed to start seat: seat0
root@francois-asus:/home/fl# 
And it seems that what is missing is:
[Seat:*]
autologin-user=fl

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: [ SOLVED ] Enable autologin on xfce

#12 Post by francois.e »

It works.

Thanks.

Post Reply