From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C7BC61382C5 for ; Wed, 16 Jun 2021 00:51:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23CF1E0905; Wed, 16 Jun 2021 00:51:05 +0000 (UTC) Received: from pmta21.teksavvy.com (pmta21.teksavvy.com [76.10.157.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6BAAAE08BF for ; Wed, 16 Jun 2021 00:51:04 +0000 (UTC) IronPort-SDR: LBHDqy/4zsnMpwDZsjFfvoInoHk3HeBPidXt9WS8LFQHZ/BoJzIydwu52ShoaOh95fdiHfZiXO Q51r+jEub8+g== IronPort-HdrOrdr: =?us-ascii?q?A9a23=3A9oNihqrnDyRRn0IHDvidnsYaV5pFeYIsim?= =?us-ascii?q?QD101hICG9E/b4qynApp8mPHPP4gr5O0tPpTnjAsW9qBrnnPZICOIqUotKMj?= =?us-ascii?q?OKhFeV?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FxEAAJSslg/wvUbkFaHgEBCxIMQAm?= =?us-ascii?q?BQwuDIlZsiHyEUIZhggMdAzgBg0yZATwLAQEBAQEBAQEBQAcBAgQBAQMDgVa?= =?us-ascii?q?CbgQCAoJqJjcGDgIEAQEBEgEBAQUBAQEBAQYEAgKBAIVoDYJzY4EIAQEBAQE?= =?us-ascii?q?BAQEBAQEBAQEBAQEBAQEBAQESAg1SZwEFOhwzIxwSEEcZgnKDBw+ob4E0gQG?= =?us-ascii?q?DSwGBGIU9BoE6jWpDQIEJRIEUgnWDTwSBKIEDhS4EgxpaNQEpAkZ+GpIHAow?= =?us-ascii?q?SnmgKgxyBJweIYpQTlQaQXwGhbJMphwaBf30IgyRQGQ5WkTmFFIVmKC8CNgI?= =?us-ascii?q?GCgEBAwlXAYkIAQE?= X-IPAS-Result: =?us-ascii?q?A2FxEAAJSslg/wvUbkFaHgEBCxIMQAmBQwuDIlZsiHyEU?= =?us-ascii?q?IZhggMdAzgBg0yZATwLAQEBAQEBAQEBQAcBAgQBAQMDgVaCbgQCAoJqJjcGD?= =?us-ascii?q?gIEAQEBEgEBAQUBAQEBAQYEAgKBAIVoDYJzY4EIAQEBAQEBAQEBAQEBAQEBA?= =?us-ascii?q?QEBAQEBAQESAg1SZwEFOhwzIxwSEEcZgnKDBw+ob4E0gQGDSwGBGIU9BoE6j?= =?us-ascii?q?WpDQIEJRIEUgnWDTwSBKIEDhS4EgxpaNQEpAkZ+GpIHAowSnmgKgxyBJweIY?= =?us-ascii?q?pQTlQaQXwGhbJMphwaBf30IgyRQGQ5WkTmFFIVmKC8CNgIGCgEBAwlXAYkIA?= =?us-ascii?q?QE?= X-IronPort-AV: E=Sophos;i="5.83,276,1616472000"; d="scan'208";a="163598833" Received: from 65-110-212-11.cpe.pppoe.ca (HELO waltdnes.org) ([65.110.212.11]) by smtp12.teksavvy.com with SMTP; 15 Jun 2021 20:51:02 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Tue, 15 Jun 2021 20:51:25 -0400 From: "Walter Dnes" Date: Tue, 15 Jun 2021 20:51:25 -0400 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] [SOLVED} Exact setting in grub to default to a kernel by name? Message-ID: References: <20210615145648.05f6aec3@digimed.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210615145648.05f6aec3@digimed.co.uk> X-Archives-Salt: e19f9c22-07ba-4cdf-9eb7-b64bf5ac8f2c X-Archives-Hash: ee5c1e063c00c6f4cf8a3f983656bea5 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 I don't run "desktop environments"; I run useful applications