topic title: AntiX 15 b3-V
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#211
We first look for the"default_user" in slim.conf. Then we look for the"autologin-user" in lightdm. conf. Then we look for the user with UID 1000, and if all else fails, we use the user named"demo". If all of this fails then we issue a warning"No default user <name> found on the system". This should also show up on the screen and in the live-init.log file.
Yes, a pair of logged lines"no default user demo found" is logged during each boot.
Just know that I haven't touched/managed any user accounts during testing. Autologin was the default; I haven't changed that (nor any session config stuff).

live-init.log snippet:
Fri Jun 19 11:41:38 EDT 2015 /live/etc/init.d/live-init
live-init : Localizing/configuring X-Windows
Automount disabled
Enabling fstab hotplugging
Localizing source repos using Antarctica/South_Pole
Assuming hwclock is set to local time
Scanning for hardware specific video modules ...
Found video module(s) nvidia
No default user demo found on the system.
No default user demo found on the system.
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#212
there's no RC1"development" discussion topic yet, and it seemed wrong to reply to announcements topic with this

tiny request:
mv /var/log/live/initrd.log /var/log/live/initrd.log.prior
during init, preserve the logfile from the previous run. Glancing at it is a handy way to double-check which boot codes were used (vs relying on memory or scribbled notes)
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#213
skidoo wrote:Yes, a pair of logged lines"no default user demo found" is logged during each boot.
Just know that I haven't touched/managed any user accounts during testing. Autologin was the default; I haven't changed that (nor any session config stuff).
That's strange.

It's also strange that the error message gets printed twice. What's the output of this command?
sed -r -n 's/^\s*default_user\s+//p' /etc/slim.conf | cat -A
Ah, I bet the default_user line appears twice in your slim.conf. I can fix this by only looking at the last occurrence of that line.

Thanks!
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#214
What's the output of this command?
Quote:
sed -r -n 's/^\s*default_user\s+//p' /etc/slim.conf | cat -A
the output is

Code: Select all

demo$
demo$
tailend of the slim.conf
# shutdown / reboot messages
shutdown_msg The system is shutting down...
reboot_msg The system is rebooting...

default_user demo
# Set to"yes" to enable this feature
#focus_password no

# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme antiX

# Lock file
#lockfile /var/run/slim.lock

# Log file
#logfile /var/log/slim.log

# Automatically login the default user (without entering
# the password. Set to"yes" to enable this feature
auto_login yes

# default user, leave blank or remove this line
# to avoid pre-loading the username.
default_user demo
auto_login yes
lockfile /var/run/slim.lock
logfile /var/log/slim.log
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#215
Thanks skidoo. I've got it fixed. Good catch.