You are not logged in.
Subject title basically sums it up.
I installed LightDM, installed lightdm-gtk-greeter and enabled it as instructed by the wiki. However, when booting I am still met by the simple tty and have to log in that way.
It's not a big problem, as I can run "startx" or "systemctl start lightdm" immediately after logging in, but I don't think this is an ideal solution.
What could I have done wrong?
Last edited by frodetb (2015-07-03 17:43:06)
Offline
What is the output of:
ls -l /etc/systemd/system/multi-user.target.wants|grep lightdm
systemctl show default.targetJin, Jîyan, Azadî
Offline
The output of the first line was nothing.
The output of the second line was:
Id=multi-user.target
Names=default.target multi-user.target
Requires=basic.target
Wants=getty.target systemd-ask-password-wall.path netctl-auto@wls1.service dhcpcd@enp0s2
Conflicts=shutdown.target rescue.service rescue.target
After=systemd-user-sessions.service basic.target rescue.service dhcpcd@enp0s25.service s
Documentation=man:systemd.special(7)
Description=Multi-User System
LoadState=loaded
ActiveState=active
SubState=active
FragmentPath=/usr/lib/systemd/system/multi-user.target
UnitFileState=enabled
UnitFilePreset=disabled
InactiveExitTimestamp=Fri 2015-07-03 11:48:51 CEST
InactiveExitTimestampMonotonic=38876713
ActiveEnterTimestamp=Fri 2015-07-03 11:48:51 CEST
ActiveEnterTimestampMonotonic=38876713
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=yes
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=yes
DefaultDependencies=yes
OnFailureJobMode=replace
IgnoreOnIsolate=no
IgnoreOnSnapshot=no
NeedDaemonReload=no
JobTimeoutUSec=0
JobTimeoutAction=none
ConditionResult=yes
AssertResult=yes
ConditionTimestamp=Fri 2015-07-03 11:48:51 CEST
ConditionTimestampMonotonic=38876658
AssertTimestamp=Fri 2015-07-03 11:48:51 CEST
AssertTimestampMonotonic=38876660
Transient=no
Don't know if this is good news or bad.
Offline
How did you enable it? You should have ran (or now can run)
systemctl enable lightdmAlso please use code tags for console output or contents of files on the forums. You can click 'quote' on this post to see how I did it above.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
How did you enable it? You should have ran (or now can run)
systemctl enable lightdmAlso please use code tags for console output or contents of files on the forums. You can click 'quote' on this post to see how I did it above.
I did exactly that. I can do it again now, after booting, and post the results.
Doing it over:
[frode@Apollo ~]$ systemctl enable lightdm
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: frode
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: frode
Password:
==== AUTHENTICATION COMPLETE ===Now:
[frode@Apollo ~]$ ls -l /etc/systemd/system/multi-user.target.wants|grep lightdmi.e. no output;
[frode@Apollo ~]$ systemctl show default.target
Id=multi-user.target
Names=default.target multi-user.target
Requires=basic.target
Wants=systemd-logind.service shadow.timer remote-fs
Conflicts=rescue.target rescue.service shutdown.tar
After=netctl-auto@wls1.service basic.target rescue.
Documentation=man:systemd.special(7)
Description=Multi-User System
LoadState=loaded
ActiveState=active
SubState=active
FragmentPath=/usr/lib/systemd/system/multi-user.tar
UnitFileState=enabled
UnitFilePreset=disabled
InactiveExitTimestamp=Fri 2015-07-03 11:48:51 CEST
InactiveExitTimestampMonotonic=38876713
ActiveEnterTimestamp=Fri 2015-07-03 11:48:51 CEST
ActiveEnterTimestampMonotonic=38876713
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=yes
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=yes
DefaultDependencies=yes
OnFailureJobMode=replace
IgnoreOnIsolate=no
IgnoreOnSnapshot=no
NeedDaemonReload=no
JobTimeoutUSec=0
JobTimeoutAction=none
ConditionResult=yes
AssertResult=yes
ConditionTimestamp=Fri 2015-07-03 11:48:51 CEST
ConditionTimestampMonotonic=38876658
AssertTimestamp=Fri 2015-07-03 11:48:51 CEST
AssertTimestampMonotonic=38876660
Transient=noOffline
I have never used a graphical target, but you may want to check this. If you have ever explicitly set multiuser target to be the default the system would never get to the display manager stage which is where lightdm's service is 'installed'.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
[frode@Apollo ~]$ ls -l /etc/systemd/system/multi-user.target.wants|grep lightdmi.e. no output;
That means lightdm.service is *not* enabled.
Use this to see all enabled .services:
ls -lR /etc/systemd/systemRun `systemctl enable lightdm` *as root* and see if that works.
Jin, Jîyan, Azadî
Offline
HoaS I just had to check the service file - and it does not install as a multi-user target, but as display-manager. It looks like it is enabled, just for a different boot target than the one the above commands checked on.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
HoaS I just had to check the service file - and it does not install as a multi-user target, but as display-manager. It looks like it is enabled, just for a different boot target than the one the above commands checked on.
D'oh!
Nice catch, thanks!
EDIT: To set graphical.target as the default, use:
# systemctl set-default graphical.targetLast edited by Head_on_a_Stick (2015-07-03 11:07:51)
Jin, Jîyan, Azadî
Offline
Run `systemctl enable lightdm` *as root* and see if that works.
[frode@Apollo ~]$ sudo systemctl enable lightdm
[sudo] password for frode:
[frode@Apollo ~]$ ls -l /etc/systemd/system/multi-user.target.wants|grep lightdm
[frode@Apollo ~]$ Does not appear to result in any change.
Use this to see all enabled .services:
ls -lR /etc/systemd/system
Allright, let's see:
[frode@Apollo ~]$ ls -lR /etc/systemd/system
/etc/systemd/system:
total 8
lrwxrwxrwx 1 root root 41 May 31 05:17 default.target -> /usr/lib/systemd/system/multi-user.target
lrwxrwxrwx 1 root root 39 Jun 1 13:20 display-manager.service -> /usr/lib/systemd/system/lightdm.service
drwxr-xr-x 2 root root 4096 May 30 01:16 getty.target.wants
drwxr-xr-x 2 root root 4096 May 30 02:33 multi-user.target.wants
/etc/systemd/system/getty.target.wants:
total 0
lrwxrwxrwx 1 root root 38 May 30 01:16 getty@tty1.service -> /usr/lib/systemd/system/getty@.service
/etc/systemd/system/multi-user.target.wants:
total 0
lrwxrwxrwx 1 root root 39 May 30 01:53 dhcpcd@enp0s25.service -> /usr/lib/systemd/system/dhcpcd@.service
lrwxrwxrwx 1 root root 44 May 30 02:33 netctl-auto@wls1.service -> /usr/lib/systemd/system/netctl-auto@.service
lrwxrwxrwx 1 root root 40 May 30 01:16 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
[frode@Apollo ~]$ Offline
EDIT: To set graphical.target as the default, use:
# systemctl set-default graphical.target
I'll try it out and reboot.
EDIT: Hooray! Thank you very much, it all suddenly worked. I don't know why, but that made all the difference.
Thanks for your patience, and sorry if it ended up being messy. Learning how to write code and quotes is a step forward though! As should be fairly obvious, this is my first post.
Last edited by frodetb (2015-07-03 11:29:00)
Offline
lrwxrwxrwx 1 root root 41 May 31 05:17 default.target -> /usr/lib/systemd/system/multi-user.targetThis is why that worked - as described in the wiki page I linked to.
Please mark the thread as solved by editing your first post to revise the title to prepend [SOLVED].
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline