You are not logged in.

#1 2015-07-03 10:00:21

frodetb
Member
Registered: 2015-07-03
Posts: 5

[SOLVED] Not booting into LightDM, despite having enabled and insta...

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

#2 2015-07-03 10:19:00

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

What is the output of:

ls -l /etc/systemd/system/multi-user.target.wants|grep lightdm
systemctl show default.target

Jin, Jîyan, Azadî

Offline

#3 2015-07-03 10:47:03

frodetb
Member
Registered: 2015-07-03
Posts: 5

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

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

#4 2015-07-03 10:51:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

How did you enable it?  You should have ran (or now can run)

systemctl enable lightdm

Also 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

#5 2015-07-03 10:59:04

frodetb
Member
Registered: 2015-07-03
Posts: 5

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

Trilby wrote:

How did you enable it?  You should have ran (or now can run)

systemctl enable lightdm

Also 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 lightdm

i.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=no

Offline

#6 2015-07-03 11:03:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

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

#7 2015-07-03 11:03:22

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

frodetb wrote:
[frode@Apollo ~]$ ls -l /etc/systemd/system/multi-user.target.wants|grep lightdm

i.e. no output;

That means lightdm.service is *not* enabled.

Use this to see all enabled .services:

ls -lR /etc/systemd/system

Run `systemctl enable lightdm` *as root* and see if that works.


Jin, Jîyan, Azadî

Offline

#8 2015-07-03 11:05:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

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

#9 2015-07-03 11:05:46

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

Trilby wrote:

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.target

Last edited by Head_on_a_Stick (2015-07-03 11:07:51)


Jin, Jîyan, Azadî

Offline

#10 2015-07-03 11:18:00

frodetb
Member
Registered: 2015-07-03
Posts: 5

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

Head_on_a_Stick wrote:

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.

Head_on_a_Stick wrote:

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

#11 2015-07-03 11:20:10

frodetb
Member
Registered: 2015-07-03
Posts: 5

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

Head_on_a_Stick wrote:

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

#12 2015-07-03 12:00:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Not booting into LightDM, despite having enabled and insta...

lrwxrwxrwx 1 root root   41 May 31 05:17 default.target -> /usr/lib/systemd/system/multi-user.target

This 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

Board footer

Powered by FluxBB