Important alerts ... email distribution

Forum for discussion and implementation of project work to enhance mxlinux.org and other MX Websites
Message
Author
User avatar
ludolph
Posts: 78
Joined: Fri Oct 07, 2011 7:38 am

Re: Important alerts ... email distribution

#11 Post by ludolph »

JayM wrote: Fri Jun 21, 2019 3:30 am
ludolph wrote: Fri Jun 21, 2019 3:19 am
JayM wrote: Fri Jun 21, 2019 3:16 am If people don't read the Important Alert at the top of every forum page in bright red letters what makes you think that they'll read their email messages?
I do not read MX Forum every day ... but I read all the emails I get!!! :bawling:
I'm just the opposite. I visit the forum every day and only check my email when I happen to remember, usually once or twice a week,

One thing I've learned to do is to keep a USB stick set aside that has a recent personal snapshot of my MX system burned to it, so if something happens it's just a minor annoyance causing me to spend a few minutes reinstalling rather than being a major disaster causing me hours of work, reinstalling from scratch then reconfiguring everything the same way I had it.
OK, but I still thinking, that the email alert could be very useful. I have no idea how many users were affected by this problem, but I am sure that email alert to all MX forum members could prevents serious troubles of many people.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Important alerts ... email distribution

#12 Post by JayM »

AK-47 wrote: Fri Jun 21, 2019 3:36 am
JayM wrote: Fri Jun 21, 2019 3:25 am i would run kmathern's. May as well fix everything at once rather than piecemeal.
The /usr/share/mx-packageinstaller-pkglist/rebuild_dkms_packages.sh script actually does everything kmathern's fix does, and also writes its activity to a log file.
Here's what it looks like:

Code: Select all

#!/bin/bash

#force rebuild of dkms packages (virtualbox, nvidia, fglrx, broadcom, ndiswrapper)
#part of mx-packageinstaller


[[ $(dpkg-query --show $1 2>/dev/null && echo $?) ]] || exit 0


for i in $(dpkg-query -l |grep "\-dkms" |awk '{print $2'}); do
 dpkg-reconfigure $i |tee -a /var/log/rebuild-dkms.log
done

exit 0
So to clarify, just for the sake of Linux newbies, how would ludolph or others use this script on a system that boots to a blinking cursor? I would guess the procedure would be something like
1. Boot to your MX installation medium: DVD or USB stick
2. Mount the root file system on the hard drive by clicking on it in Thunar
3. Open a root Thunar and go to /root on that hard disk partition
4. Right-click there and Create Document of type Empty File and name it something like fixmx.sh
5. Open it in Featherpad and paste the conents of the script there and save it
6. Right-click on it, choose Properties, and check the box to make it executable
7. Boot to the installed system and at the blank screen press alt F2, log on as root, then type

Code: Select all

./fixmx.sh
(enter) then

Code: Select all

shutdown -r now
(enter) to reboot.
Is that about right?
Last edited by JayM on Fri Jun 21, 2019 4:22 am, edited 1 time in total.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
BitJam
Developer
Posts: 2303
Joined: Sat Aug 22, 2009 11:36 pm

Re: Important alerts ... email distribution

#13 Post by BitJam »

ludolph wrote: Fri Jun 21, 2019 3:40 amOK, but I still thinking, that the email alert could be very useful. I have no idea how many users were affected by this problem, but I am sure that email alert to all MX forum members could prevents serious troubles of many people.
I agree that some form of push would be good for dire emergencies. I don't know if email is the best way. For example, text messages might be more useful for some people. I'm hoping this was a rare fluke that does not get repeated for many years, if ever.

This was a serious problem for people running live but installed systems were not seriously damaged. I believe that blank screen with the blinking cursor makes many people feel like their system is totally broken. It also adds another layer of difficulty in providing help since technically "system does not boot" and "X does not start" are very different problems.

I'm hoping that if we had a screen like this:
tty7.png
instead of the blank screen then it would be a little less frightening. It would also make it much easier for people to report to us what is going on and what failed so it is easier for us to help them.
You do not have the required permissions to view the files attached to this post.
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

User avatar
Pierre
Posts: 323
Joined: Thu Apr 19, 2007 9:23 am

Re: Important alerts ... email distribution

#14 Post by Pierre »

JayM wrote: Fri Jun 21, 2019 3:48 am
So to clarify, just for the sake of Linux newbies, how would ludolph or others use this script on a system that boots to a blinking cursor? I would guess the procedure would be something like
1. Mount the root file system on the hard drive by clicking on it in Thunar
~ snip
if you've got an blinking cursor you won't be able to Click on it in Thunar .. ..
- - you would probably have to use Ctrl-F1 to get into an Terminal .. maybe.

User avatar
JmaCWQ
Posts: 285
Joined: Fri Sep 09, 2016 4:42 am

Re: Important alerts ... email distribution

#15 Post by JmaCWQ »

I think if a forum member has "Administrators can email me information:" set to "Yes" in their board preferences, then by all means send them an email.
This issue is a good example of when Admins could email users with relevant information.
The more ways this info gets out there then hopefully the greater number of people can be saved from having this problem.

User avatar
ludolph
Posts: 78
Joined: Fri Oct 07, 2011 7:38 am

Re: Important alerts ... email distribution

#16 Post by ludolph »

JmaCWQ wrote: Fri Jun 21, 2019 4:17 am I think if a forum member has "Administrators can email me information:" set to "Yes" in their board preferences, then by all means send them an email.
This issue is a good example of when Admins could email users with relevant information.
The more ways this info gets out there then hopefully the greater number of people can be saved from having this problem.
Yes, this is one of possible way how to inform community about serious problems ... Important alerts.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Important alerts ... email distribution

#17 Post by JayM »

Pierre wrote: Fri Jun 21, 2019 4:14 am
JayM wrote: Fri Jun 21, 2019 3:48 am
So to clarify, just for the sake of Linux newbies, how would ludolph or others use this script on a system that boots to a blinking cursor? I would guess the procedure would be something like
1. Mount the root file system on the hard drive by clicking on it in Thunar
~ snip
if you've got an blinking cursor you won't be able to Click on it in Thunar .. ..
- - you would probably have to use Ctrl-F1 to get into an Terminal .. maybe.
I'm assuming that people have booted with their USB stick, or else they're not going to be able to access the forum to get the script anyway. I'll edit my post to add that as step 1 and renumber the others.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
asqwerth
Developer
Posts: 7958
Joined: Sun May 27, 2007 5:37 am

Re: Important alerts ... email distribution

#18 Post by asqwerth »

Good points to consider. I'm sure the Dev Team will be discussing what sort of steps to take, if this ever (hopefully not!) happens again.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
asqwerth
Developer
Posts: 7958
Joined: Sun May 27, 2007 5:37 am

Re: Important alerts ... email distribution

#19 Post by asqwerth »

Pierre wrote: Fri Jun 21, 2019 4:14 am
if you've got an blinking cursor you won't be able to Click on it in Thunar .. ..
- - you would probably have to use Ctrl-F1 to get into an Terminal .. maybe.
From BitJam here: viewtopic.php?p=510405#p510405
... for those of you who are at the blank screen with a blinking cursor, you can try pressing <Alt><F2> to get to the login console. If that works then it should save you from having to reboot or edit the bootloader entry.
At the text mode login console, log in as root and run the script?

If Alt-F2 doesn't work for you, reboot. Then at the grub menu for MX:
press 'e' in the bootloader and edit the line that starts with "linux" by added a "3" at the end. the press F10 to boot. This should get you to a console where you can can log in. Then run the command....
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
AK-47
Developer
Posts: 1212
Joined: Sun Mar 24, 2019 7:04 pm

Re: Important alerts ... email distribution

#20 Post by AK-47 »

BitJam wrote: Fri Jun 21, 2019 4:00 amI'm hoping that if we had a screen like this:tty7.png
instead of the blank screen then it would be a little less frightening. It would also make it much easier for people to report to us what is going on and what failed so it is easier for us to help them.
if this tsplash ever makes it into MX Linux I'm switching to it in a flash.
JayM wrote: Fri Jun 21, 2019 3:48 amSo to clarify, just for the sake of Linux newbies, how would ludolph or others use this script on a system that boots to a blinking cursor? I would guess the procedure would be something like
1. Boot to your MX installation medium: DVD or USB stick
2. Mount the root file system on the hard drive by clicking on it in Thunar
3. Open a root Thunar and go to /root on that hard disk partition
4. Right-click there and Create Document of type Empty File and name it something like fixmx.sh
5. Open it in Featherpad and paste the conents of the script there and save it
6. Right-click on it, choose Properties, and check the box to make it executable
7. Boot to the installed system and at the blank screen press alt F2, log on as root, then type

Code: Select all

./fixmx.sh
(enter) then

Code: Select all

shutdown -r now
(enter) to reboot.
Is that about right?
It's already there in the system, so the user shouldn't have to do anything to create the script. I just pasted the contents of the script to show that it does something similar to kmathern's fix.
I am guessing at that point they have access to a shell and the blinking cursor is the prompt?

If so, all you need to do is type something like this (root shell of course):

Code: Select all

/usr/share/mx-packageinstaller-pkglist/rebuild_dkms_packages.sh
reboot

Post Reply

Return to “Website”