LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2019, 01:04 PM   #61
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210

Quote:
Originally Posted by toddly View Post
By the way, I am wondering whether there is some way to turn off the computer from the root, rather than manually holding down the power button. It seems so harsh.
Perhaps the command exit or quit would work.
 
Old 09-01-2019, 01:51 PM   #62
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,877
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by toddly View Post
By the way, I am wondering whether there is some way to turn off the computer from the root, rather than manually holding down the power button. It seems so harsh.
Code:
man systemctl
systemctl poweroff

Also, /sbin/shutdown is a symlink to /usr/bin/systemctl.
 
Old 09-01-2019, 02:01 PM   #63
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
shutdown -r now

or
shutdown reboot now

you can but a time on it instead of now, and alert all logged in users
but I have never done that , i want it now and I'm the only user

man shutdown
 
Old 09-01-2019, 02:17 PM   #64
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,877
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Shutdown is a symlink to systemctl. As a symlink, it is subject to future deprecation. Linuxmint is run by systemd, thus systemctl is the actual binary responsible for shutdown. If you really want simple or less typing, try (seven strokes):
Code:
init 0
 
Old 09-01-2019, 02:28 PM   #65
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
shutdown
is 6 if you are happy to wait a 1 minute

shut<tab><enter>

unless you have something else starting shut
:P
 
Old 09-01-2019, 02:38 PM   #66
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,877
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by toddly View Post
update-alternatives --display x-session-manager > https://pastebin.com/kEPiMnpM
This one suggests it's worth a try to start a Gnome session. Try logging in as normal user on tty3 (Ctrl-Alt-F3 from a black screen if necessary), then do:
Code:
startx /usr/bin/gnome-session
If this doesn't produce a GUI desktop of some kind instead of errors, try the same logged in as root or with sudo. Error messages from either would be useful to know here. Whether this can work I don't know, because the last time I installed Gnome was about two decades ago and I don't plan to do it again in the foreseeable future. To make startx run as normal user might require first you do:
Code:
sudo apt install xserver-xorg-legacy
Yet more to try if all the above fails, if not first:
Code:
sudo update-alternatives --config x-session-manager
Make a note of where the asterisk appears, then choose any of the other options, then reboot normally. If still no joy, repeat with another selection. If still no joy and there is another option to select, try it. Do
Code:
man update-alternatives
if you get stuck and don't want to wait for us to see what your results are to this point.
 
Old 09-01-2019, 02:45 PM   #67
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,877
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by Firerat View Post
shutdown
is 6 if you are happy to wait a 1 minute
init 6 means reboot, not shutdown, which is 0, unless systemd changed that too. I don't think it did:
Code:
man telinit
 
Old 09-01-2019, 02:54 PM   #68
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
6 key presses since we started getting silly counting strokes

but I take the point that it might get depreciated
 
Old 09-03-2019, 03:18 PM   #69
toddly
Member
 
Registered: Apr 2019
Posts: 67

Original Poster
Rep: Reputation: Disabled
lastest non-results

First, I was unable to use Ctrl-Alt-F3 from either a black screen, or any time during start-up. The screen simply remained black. So, using Escape at start-up I went into recovery mode and got to the root shell prompt.

Once there, I tried startx /usr/bin/gnome-session | pastebinit
The screen looked interesting for a second, the came back to black screen and told me I was trying to send an empty document. It left me with a blinking cursor and no way to type or to get back to the root shell prompt.

After restarting the process, I tried sudo startx... and nothing.

Next I tried: sudo apt install xserver-xorg-legacy (Sorry, I still can't figure out how to activate the "quote" cut and paste feature.) I got the following result: https://pastebin.com/LAVeyTTZ

Afterwards, I tried "startx /usr/bin..." again, and got nothing. Same for "sudo startx..."

Then I tried: sudo update-alternatives --config x-session-manager, and I received the following result:
https://pastebin.com/9eaEX1MV

I could not find an asterix anywhere on the screen, but did see this reference: "(**) from config file," ?? I was not given "any of the other options" so I was unable to "repeat with another selection".

Because I was not given any options, I have not yet tried: man update-alternatives

At this point I want to clarify our process. It seems that I have a defective light display manager, and that it may be either hardware- or software-related. Right? At this point we are simply attempting to get more information about the particular problem in order to determine how we can resolve it. Is this correct?
Thanks again.
 
Old 09-03-2019, 03:53 PM   #70
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
yeah, I doubt X will run in recovery mode

In the past you have not been put into recovery mode.
Is that correct?
 
Old 09-03-2019, 06:19 PM   #71
toddly
Member
 
Registered: Apr 2019
Posts: 67

Original Poster
Rep: Reputation: Disabled
I've only been in recovery mode

Quote:
Originally Posted by Firerat View Post
yeah, I doubt X will run in recovery mode

In the past you have not been put into recovery mode.
Is that correct?
I have done everything in this thread in recovery mode with the root shell prompt. I have no other choice/option that I am aware of.

From an earlier post of mine you might have missed:
Quote:
Originally Posted by toddly View Post
Below is my play-by-play report:
Turned on computer, hit Escape. Then selected Advanced Options for Ubuntu.
Arrived at GNU GRUB 2.02
I selected Ubuntu, with Linux 4.15.0-20-generic (recovery mode), although there were 2 other recovery mode options available: 4.15-0-51 and 4.15-0-50. I didn't know whether it would make any difference which I selected. Was I wrong?
Next, I was presented with the Recovery Menu, and I selected 'root' "Press Enter for maintenance of Ctrl to continue".
I selected Enter and arrived at the root shell prompt: root@todd-Inspiron-3576:~#

Last edited by toddly; 09-03-2019 at 06:26 PM.
 
Old 09-03-2019, 11:16 PM   #72
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,877
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Toddly, unless proceeding to try to fix this is mainly or purely a learning exercise for you, and given the great degree of difficulty you have had pursuing our suggestions, us keeping straight what you have and haven't succeeded to do, and the length of this thread making attempts to help increasingly difficult, I suggest it may be time to abandon repair and install fresh. If you take this new path, you may wish to consider adding the new installation alongside (multiboot) instead of wiping out the old, so that you can pursue repair in the interest of education later on sometime.
 
Old 09-05-2019, 04:45 AM   #73
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Well toddly, seems you're not alone. On an old laptop I rarely use, that has Ubuntu on it, I tried an upgrade from (I think) Xenial to Bionic, and it's now broken. My recent upgrade on my Debian desktop (from 9 to 10) went okay, though in that case I was careful to check out release notes and such, rather than impulsively ploughing ahead as I did with the old laptop. Anyway, I shan't hijack this thread with my own problems (I'll likely start a new thread on it).
 
Old 09-05-2019, 08:21 PM   #74
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by toddly View Post
I followed the link to instructions on how to Boot to Recovery Mode. I arrived at the following options:
resume
clean
dpkg
fsck
grub
network
root
system-summary

Which option should I select?
Thanks
Try the option dpkg. It will reconfigure your install and try to fix it. It's nice and automatic (I'm just discovering this for myself). [edit] This (the dpkg option) did fix the issues I was having with booting into my laptop after upgrading it. So, it may help your issue. Worth a try, IMO.

Last edited by mark_alfred; 09-07-2019 at 07:02 PM.
 
Old 10-01-2019, 03:16 PM   #75
toddly
Member
 
Registered: Apr 2019
Posts: 67

Original Poster
Rep: Reputation: Disabled
I've been incommunicado... now back

I will try the dpkg command in recovery mode and see if it resolves the dead Light Display Manager issue. If it does not, then I may try to start a new thread dealing just with the LDM issue.
I've been incommunicado for weeks because the old laptop I was using to communicate about my other Linux laptop also died. I was left with no means of going online.
I feel this thread has been a big learning opportunity for me, and I can now understand more of what people are asking of me. Initially, all the jargon seemed like another language.
In any case, I'll report back about the dpkg effort.
Thanks everybody!!
 
1 members found this post helpful.
  


Reply

Tags
boot issues, ldm, updates



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
failed to start light display manager blfs (system gets stuck) ahmed bedair Linux From Scratch 4 07-13-2019 06:57 AM
Failed to start Light Diaplay Manager RippleRock Linux Deepin 1 08-22-2018 08:39 PM
[SOLVED] Light Display Manager hangs during boot, after installing (some) software packages jjanderson5 Linux - Laptop and Netbook 5 02-23-2017 11:03 PM
[SOLVED] Changed my display manager to light-gtk-greeter. Now I can't login. marinecomm Ubuntu 1 08-31-2013 09:13 AM
bZerk keyboard w/ blue light.. with no light? Flexo Linux - Hardware 0 03-06-2006 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 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