LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   mint19 lightdm fails (https://www.linuxquestions.org/questions/linux-desktop-74/mint19-lightdm-fails-4175643319/)

mrmazda 11-29-2018 01:10 AM

mint19 lightdm fails
 
1 Attachment(s)
Code:

# journalctl -b | grep ight | tail
Nov 29 00:40:15 ab250 systemd[1]: Starting Light Display Manager...
Nov 29 00:40:16 ab250 systemd[1]: Started Light Display Manager.
Nov 29 00:40:16 ab250 systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 00:40:16 ab250 systemd[1]: lightdm.service: Failed with result 'exit-code'.
Nov 29 00:40:17 ab250 systemd[1]: lightdm.service: Service hold-off time over, scheduling restart.
Nov 29 00:40:17 ab250 systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 6.
Nov 29 00:40:17 ab250 systemd[1]: Stopped Light Display Manager.
Nov 29 00:40:17 ab250 systemd[1]: lightdm.service: Start request repeated too quickly.
Nov 29 00:40:17 ab250 systemd[1]: lightdm.service: Failed with result 'exit-code'.
Nov 29 00:40:17 ab250 systemd[1]: Failed to start Light Display Manager.
# systemctl status lightdm.service
â lightdm.service - Light Display Manager
  Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset: enabled)
  Active: failed (Result: exit-code) since Thu 2018-11-29 00:40:17 EST; 8min ago
    Docs: man:lightdm(1)
  Process: 7419 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
  Process: 7416 ExecStartPre=/bin/sh -c [ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ] (code=exited, status=0/SUCCESS)
 Main PID: 7419 (code=exited, status=1/FAILURE)

This was an "OEM" installation. How does one troubleshoot this? No manual entry for [/etc/lightdm/]lightdm.conf. I see no clues in dmesg. Searching 'lightdm FAQ' proved useless. I thought it might be https://bugs.freedesktop.org/show_bug.cgi?id=104993 fixed upstream last April not included in June Mint release or subsequent updates, but reenabling compositing doesn't fix it. Startx does work as expected (without compositing disabled). Restoring the original lightdm.conf works, but I don't want any autologin, and nothing happens when I select "configure the login window".

BW-userx 11-29-2018 06:43 PM

look for auto login on this page then open your config file then reverse the process for auto login by commenting it out using a terminal and your favorite terminal editor.

https://wiki.archlinux.org/index.php...ling_autologin

mrmazda 11-29-2018 08:49 PM

Quote:

Originally Posted by BW-userx (Post 5931676)
look for auto login on this page then open your config file then reverse the process for auto login by commenting it out using a terminal and your favorite terminal editor.

Reversing the process would technically involve reversing the installation process. Userdel didn't work because autologin in a normal boot has the user involved in a current process that respawns when killed. Userdel worked in multi-user boot, but lightdm apparently cannot cope with not having any autologin user configured. Commenting the autologin lines in lightdm.conf has the same effect as deleting those lines, as I tried before OP, which causes lightdm to fail to start. Aptitude does not find any such package accountservice. Looks like arch's lightdm docs are not appropriate for mint usage.

BW-userx 11-29-2018 09:13 PM

Quote:

Originally Posted by mrmazda (Post 5931714)
Reversing the process would technically involve reversing the installation process. Userdel didn't work because autologin in a normal boot has the user involved in a current process that respawns when killed. Userdel worked in multi-user boot, but lightdm apparently cannot cope with not having any autologin user configured. Commenting the autologin lines in lightdm.conf has the same effect as deleting those lines, as I tried before OP, which causes lightdm to fail to start. Aptitude does not find any such package accountservice. Looks like arch's lightdm docs are not appropriate for mint usage.

how so? it is called a config file for a reason. you say you have startx, keep it in that mode, login then
Code:




sudo nano /etc/lightdm/lightdm.conf

find the line where it states.
Code:

[Seat:*]
autologin-user=username
autologin-session=session

then comment it out.
Code:

[Seat:*]
#autologin-user=username
#autologin-session=session

Quote:

Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:
is they are not uncommented then auto login will not work. as this is the effects that commenting out an instruction, or command has on it. remove yourself from the auto login group, delete it. it is not like that is going to make you any worse off then you already are. I'd stip it al lout of there.



if it is not working then install an different login manager, or remove that one, make sure its cofig is gone then reinstall it. if that still is an issue then go talk to the MINT linux people and give them a piece of your mind.

my Linux MINT does not have auto login so I do not know how this happened to you. as a matter of fact let me go jump in to that an seee what is going on with mine.

ha I mine is not using lxdm, mine is using
Code:


DESCRIPTION="Linux Mint 19 Tara"


ExecStart=/usr/sbin/lightdm
Restart=always
BusName=org.freedesktop.DisplayManager

Code:

Linux Mint turn off automatic login
Enable Automatic Login from GUI. Navigate to Settings->Details->Users .
 To start, first hit Unlock button and enter your administrative password.
 Once ready turn the Automatic Login switch to ON.May 7, 2018

you can save yourself a head ache and install a different login manager.

mrmazda 11-30-2018 12:50 AM

Quote:

Originally Posted by BW-userx (Post 5931718)
how so?

How what so? It's not written to be directly reversible that I can grok.

Quote:

it is called a config file for a reason.
It has a header line and 3 content autologin lines. Without the autologin lines, it crashes. With them commented, it crashes. With them as provided, it's stuck in autologin mode.

Quote:

you say you have startx, keep it in that mode, login then
That's fine most of the time, but not for always.

Quote:

sudo nano /etc/lightdm/lightdm.conf
find the line where it states.
Code:

[Seat:*]
autologin-user=username
autologin-session=session

then comment it out.
Code:

[Seat:*]
#autologin-user=username
#autologin-session=session


crash/black screen (no login screen)

Quote:

is they are not uncommented then auto login will not work.
Expected, yes, but what happens is lightdm doesn't work at all.

Quote:

as this is the effects that commenting out an instruction, or command has on it. remove yourself from the auto login group, delete it. it is not like that is going to make you any worse off then you already are. I'd stip it al lout of there.
stripping it causes crash.

Quote:

if it is not working then install an different login manager, or remove that one, make sure its cofig is gone then reinstall it. if that still is an issue then go talk to the MINT linux people and give them a piece of your mind.
I'd rather be sure what I should expect first. Maybe they already know it crashes. Maybe they expect everyone to use autologin. After all, Mint is supposed to be "easy" for Windows dweebs, right? All the more reason to figure out where the lightdm docs are squirreled away.

Quote:

my Linux MINT does not have auto login so I do not know how this happened to you. as a matter of fact let me go jump in to that an seee what is going on with mine.
I'm waiting....

Quote:

ha I mine is not using lxdm,
lxdm? lightdm here. Is yours an upgrade from 18.x or older rather than fresh 19 as mine is?

Quote:

mine is using
Code:

DESCRIPTION="Linux Mint 19 Tara"

ExecStart=/usr/sbin/lightdm
Restart=always
BusName=org.freedesktop.DisplayManager


What file is that?

Quote:

Code:

Linux Mint turn off automatic login
Enable Automatic Login from GUI. Navigate to Settings->Details->Users .
 To start, first hit Unlock button and enter your administrative password.
 Once ready turn the Automatic Login switch to ON.May 7, 2018


"Users & groups" settings never exits busy cursor, or reacts to its close button. "Settings" has no "Details" heading. "Session and Startup" has nothing that appears related to autologin. "Login Window" fails to open.

Quote:

you can save yourself a head ache and install a different login manager.
Purging lightdm and reinstalling it didn't help, even though the configuration settings in /etc/lightdm are entirely different: no lightdm.conf file, no lightdm.d directory, no lightdm-gtk-greeter.conf.d directory, plus a users.conf file with nothing about autologin in it:
Code:

[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /user/sbin/nologin

I've never used lightdm before that I can remember. One reason I installed Mint was to have something different. No derivative (Mint) of a derivative (*buntu) stands much chance of becoming a primary OS here. It's just a (broken) tool that puzzles me about why it seems so highly recommended and popular.

BW-userx 11-30-2018 06:58 AM

yeah, wait, I had my head screwed on backwards ,, I was thinking lxdm, sorry. that changes everything.



Mine is a fresh install, you might not have lxdm if you cannot find its conf file.

'cat /etc/linuxmint/info' for version info

'cat /etc/systemd/system/display-manager.service' to find out what display manager you're really using.

https://www.freedesktop.org/wiki/Software/LightDM/

looking at and grep'ing my config files I am not coming up with anything in the files themselves. too many different confi files for my taste. btw, still how did yours get set up for auto login in the first place?

from what I can find on it, it is everyone wanting to know how to have auto login and not turn it off, and they are using a gui to do it with. found one, this here might help,

https://unix.stackexchange.com/quest...snt-possible-t
and
https://askubuntu.com/questions/2668...do-i-stop-this


https://gist.github.com/mdeguzis/9b2...e7cccd2120a562


http://www.freekb.net/Article?id=949

mrmazda 11-30-2018 07:47 AM

# cat /etc/os-release
NAME="Linux Mint"
VERSION="19 (Tara)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19"
VERSION_ID="19"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-gui....io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tara
UBUNTU_CODENAME=bionic

# cat /etc/linuxmint/info
RELEASE=19
CODENAME=tara
EDITION="Xfce"
DESCRIPTION="Linux Mint 19 Tara"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_tara_xfce_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_tara_xfce.php
USER_GUIDE_URL=help:linuxmint
GRUB_TITLE=Linux Mint 19 Xfce

# ls -Gg /etc/systemd/system/display-manager.service
lrwxrwxrwx 1 35 Nov 30 01:24 /etc/systemd/system/display-manager.service -> /lib/systemd/system/lightdm.service

# cat /etc/systemd/system/display-manager.service
[Unit]
Description=Light Display Manager
Documentation=man:lightdm(1)
Conflicts=getty@tty7.service plymouth-quit.service
After=systemd-user-sessions.service getty@tty7.service plymouth-quit.service

[Service]
# temporary safety check until all DMs are converted to correct
# display-manager.service symlink handling
ExecStartPre=/bin/sh -c '[ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ]'
ExecStart=/usr/sbin/lightdm
Restart=always
BusName=org.freedesktop.DisplayManager

BW-userx 11-30-2018 07:51 AM

Quote:

Originally Posted by mrmazda (Post 5931846)
#

I just modded my post above, post #6, found some links that you might find helpful.

BW-userx 11-30-2018 08:00 AM

well I just lost my mint install, I plugged in some externals they were not getting recognized, so I rebooted, to see if they would on booting up, then inframs something something came up saying it can't find /root/dev and some other things, and well it crashed. so i got a go see if I can do an easy fix on it, or burn it.

this is in e16 not sinnamon.

mrmazda 12-03-2018 03:19 AM

As a result of purging lightdm, then reinstalling it and slick-greeter, I was able with the help of https://wiki.archlinux.org/index.php/LightDM to stop the crashing. I still haven't found a clue to how to make the greeter produce a list of specified users to choose from, like KDM has made easy since somewhere around the end of last century.

BW-userx 12-03-2018 06:30 AM

Quote:

Originally Posted by mrmazda (Post 5932746)
As a result of purging lightdm, then reinstalling it and slick-greeter, I was able with the help of https://wiki.archlinux.org/index.php/LightDM to stop the crashing. I still haven't found a clue to how to make the greeter produce a list of specified users to choose from, like KDM has made easy since somewhere around the end of last century.

mine just adds the users as they are added to my system..

mrmazda 12-03-2018 07:15 AM

Quote:

Originally Posted by BW-userx (Post 5932791)
mine just adds the users as they are added to my system..

You mean all users over 500? That's not acceptable to me. I want to specify exactly which user(s).

BW-userx 12-03-2018 07:43 AM

Quote:

Originally Posted by mrmazda (Post 5932803)
You mean all users over 500? That's not acceptable to me. I want to specify exactly which user(s).

hum.. that does pose a dilemma. You might want to look into other login managers, Mint is capable of using other than what you already have installed. Like KDM why not just install that one, seeings how you mentioned that you already knew how to use that one to do what it is you're looking for. You do not have to install KDE, they are separate.


All times are GMT -5. The time now is 08:01 AM.