LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-29-2018, 01:10 AM   #1
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,837
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
mint19 lightdm fails


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".
Attached Files
File Type: log xorg.0.log-0lightdm-mint19-ab250.log (17.6 KB, 10 views)
 
Old 11-29-2018, 06:43 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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

Last edited by BW-userx; 11-29-2018 at 06:51 PM.
 
Old 11-29-2018, 08:49 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,837

Original Poster
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 11-29-2018, 09:13 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by mrmazda View Post
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.

Last edited by BW-userx; 11-29-2018 at 09:42 PM.
 
Old 11-30-2018, 12:50 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,837

Original Poster
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 11-30-2018, 06:58 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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

Last edited by BW-userx; 11-30-2018 at 07:50 AM.
 
Old 11-30-2018, 07:47 AM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,837

Original Poster
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
# 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
 
Old 11-30-2018, 07:51 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by mrmazda View Post
#
I just modded my post above, post #6, found some links that you might find helpful.
 
Old 11-30-2018, 08:00 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
Old 12-03-2018, 03:19 AM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,837

Original Poster
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
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.
 
Old 12-03-2018, 06:30 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by mrmazda View Post
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..
 
Old 12-03-2018, 07:15 AM   #12
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,837

Original Poster
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
Quote:
Originally Posted by BW-userx View Post
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).
 
Old 12-03-2018, 07:43 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by mrmazda View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] MAME crashes on Mint19/Ubuntu 18.04 bt101 Linux - Games 2 08-28-2019 06:43 AM
Unable to Detect Networks in Mint19 Dokanon Linux - Networking 2 09-09-2018 10:14 AM
[SOLVED] lightdm-session error message after removal of lightdm rng Linux - General 3 08-28-2017 02:48 PM
LXer: Simple LightDM Manager: Change The LightDM Background Or Logo Using A GUI LXer Syndicated Linux News 0 10-05-2011 05:41 PM
LXer: LightDM Display Manager In Ubuntu 11.10 Oneiric Ocelot | Screenshots | Video Preview LXer Syndicated Linux News 0 07-13-2011 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration