From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] [SOLVED} Exact setting in grub to default to a kernel by name?
Date: Tue, 15 Jun 2021 20:51:25 -0400 [thread overview]
Message-ID: <YMlLDfwNob6dwVOH@waltdnes.org> (raw)
In-Reply-To: <20210615145648.05f6aec3@digimed.co.uk>
On Tue, Jun 15, 2021 at 02:56:48PM +0100, Neil Bothwick wrote
> On Mon, 14 Jun 2021 16:25:00 -0400, Walter Dnes wrote:
>
> > Unfortunately, just like the standard grub.cfg, it's a tiny-looking
> > text font on my 1920x1080 monitor that I have to squint at. Next
> > step... what do I do to get a functioning GUI?
>
> Set up a theme, you can use one of the supplied examples as a base, with
> a larger font.
>
> https://www.gnu.org/software/grub/manual/grub/grub.html#Fonts
After more reboots than I want to remember, I'm finally where I want
to be. Thanks for everybody's help. I found a thread on Stackexchange
https://unix.stackexchange.com/questions/31672/can-grub-font-size-be-customised
which supplied the final piece of the puzzle. That thread was started
9 years, 4 months ago. grub1 is now a distant memory, so change all
mentions of "grub2" to plain "grub". As per the Stackexchange thread,
there's a grub-mkfont command that can translate ttf files to pf2 files
readable by grub. ***AND YOU CAN RESIZE THE FONT WHILE YOURE AT IT***.
So I ran grub-mkfont, with "-s 64" which means 64 pixels high...
grub-mkfont -s 64 -o /boot/grub/fonts/HonkingBigFont.pf2 /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf
My grub.cfg follows. Yours would obviously differ in details.
====================================================================
search --set=root --label rootfs
sleep 2
set timeout=15
set gfxmode=640x480
set gfxpayload=keep
loadfont /boot/grub/fonts/HonkingBigFont.pf2
insmod all_video
insmod gfxterm
terminal_output gfxterm
menuentry 'Linux Experimental' {
linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0
intel_pstate=disable ipv6.disable=1
}
menuentry 'Linux Experimental Recovery' {
linux /vmlinuz-experimental root=/dev/sda2 ro
}
menuentry 'Linux Production' {
linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 i
ntel_pstate=disable ipv6.disable=1
}
menuentry 'Linux Production Recovery' {
linux /vmlinuz-production root=/dev/sda2 ro
}
====================================================================
The menu output is Y-U-U-U-U-U-GE, which makes it nice and readable on
my 1920x1080 monitor. There's a cosmetic problem in that this font
doesn't have "line-drawing characters"...
1) The box around the menu is composed of garbage characters.
2) The bit about using up-arrow and down-arrow keys to select also shows
the same garbage characters.
grub-mkfont man page says "Convert common font file formats into PF2",
so I may look at other character sets that have line-drawing characters.
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
next prev parent reply other threads:[~2021-06-16 0:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-13 4:07 [gentoo-user] Exact setting in grub to default to a kernel by name? Walter Dnes
2021-06-13 4:46 ` Hund
2021-06-13 13:33 ` Walter Dnes
2021-06-13 17:38 ` [gentoo-user] " Grant Edwards
2021-06-13 22:57 ` Walter Dnes
2021-06-13 23:20 ` Neil Bothwick
2021-06-14 2:34 ` Walter Dnes
2021-06-14 11:47 ` Neil Bothwick
2021-06-14 1:00 ` Grant Edwards
2021-06-14 6:44 ` Walter Dnes
2021-06-14 8:38 ` Grant Edwards
2021-06-14 20:25 ` Walter Dnes
2021-06-15 13:56 ` Neil Bothwick
2021-06-16 0:51 ` Walter Dnes [this message]
2021-06-13 18:05 ` [gentoo-user] " Neil Bothwick
2021-06-13 18:45 ` Michael
2021-06-13 20:09 ` Philip Webb
2021-06-13 20:58 ` Walter Dnes
2021-06-14 8:25 ` Peter Humphrey
2021-06-13 8:21 ` Neil Bothwick
2021-06-13 8:26 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YMlLDfwNob6dwVOH@waltdnes.org \
--to=waltdnes@waltdnes.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox