A Possible Way to Improve Linux



wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
9,894
I have 30 minutes to kill while my Grub reconfigures itself (penalty of running 62 Linux on one rig) so I'll tell you a story, if it's TL;DR skip it :)

When I install a new Distro, after enabling the firewall and running Timeshift or installing it and running if it is not there, next thing I do is tweak /etc/default/grub and then update-grub.

On this Linux Mint I am currently on, my grub file looks like this:

[email protected]:~$ cat /etc/default/grub
# If you change this file, run 'sudo update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

#GRUB_DEFAULT=0
GRUB_DEFAULT=saved
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="noquiet nosplash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
# CRAP Obsolete use videoinfo
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_SAVEDEFAULT=true

Changes from the default?

1. 1st comment I alter to sudo update-grub as I almost invariably do it as the regular user.

2. I change the parameter at end of GRUB_DEFAULT= from zero to saved, and then add a line at the bottom

GRUB_SAVEDEFAULT=true

These mean that each time I reboot it first of all highlights the entry of the Distro I used on the previous session.

3. GRUB_TIMEOUT gets altered to 10 seconds if not already, giving me time to think where I will boot to.

4. GRUB_CMDLINE_LINUX_DEFAULT gets altered from quiet splash to noquiet nosplash so that I can watch startup output spool by for warnings or errors.

5. Where the comments are

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

I follow with a line

# CRAP Obsolete use videoinfo

and so on.

Number 5 is my gesture of defiance, shaking my fist to the powers that be, because it is wrong (a comment, but an incorrect comment).

You can read about vbeinfo and videoinfo online, but basically vbeinfo has been deprecated in favour of videoinfo since at least 2015, although it was able to be used in Manjaro for some time after that.

In that 5 - 6 years I have probably run 150 or more Distros, and no matter the family, Debian, RPM, Arch, etc., wherever the line appears (90% or more cases) they have the obsolete vbeinfo reference.

Since last year, Manjaro have changed their default grub file comment to, and followed by my response

# you can see them in real GRUB with the command 'videoinfo'
# Yeay!! Correct!!!

What's the point?

Linux always needs to be open to change, in order to advance. Managed change, not just change for the sake of it. Some of those changes might include using functionalities such as Windows or MacOS uses, and some of them may be uniquely Linux in origin and focus. Windows may snap up and run with some of the latter, and imitation is the finest form of flattery.

Wizard
Linux user for 10 years, exclusively for 6 and a half years.

Keep the peace, one and all.
 

Members online


Latest posts

Top