grub2引导linux_如何轻松配置Linux Grub2引导菜单

grub2引导linux

grub2引导linux

We, like many Linux geeks, have had some trouble making the transition to Grub2, or for some of us, learning how to configure it from scratch. Fortunately, a new graphical tool has made this process easy and straightforward!

与许多Linux极客一样,我们在过渡到Grub2时遇到了一些麻烦,或者对我们中的一些人来说,学习了如何从头开始配置它。 幸运的是,新的图形工具使此过程变得简单而直接!

Photo by e_monk.

e_monk摄

安装Grub Customizer (Installing Grub Customizer)

The tool in question is called Grub Customizer, created by Daniel Richter. He’s provided a PPA to make installing the tool quick and easy.

有问题的工具称为Daniel Grich Customizer,由Daniel Richter创建。 他提供了一个PPA,以使安装该工具更加便捷

Open a terminal window (Ctrl+Alt+T or Applications > Accessories > Terminal) and type in the following commands.

打开一个终端窗口(Ctrl + Alt + T或“应用程序”>“附件”>“终端”),然后键入以下命令。

sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer

sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer

Grub Customizer will now show up in the Applications > System Tools menu.

Grub Customizer现在将显示在“应用程序”>“系统工具”菜单中。

sshot-1

Or you can open it from the command line.

或者,您可以从命令行打开它。

gksudo grub-customizer

gksudo grub-customizer

隐藏启动菜单选项 (Hide Boot Menu Options)

Over time, your boot menu can get cluttered with old versions of the Linux kernel. In a previous article, we showed you how to remove these manually; Grub Customizer makes this process much easier.

随着时间的流逝,您的引导菜单可能会被Linux内核的旧版本所困扰。 在上一篇文章中,我们向您展示了如何手动删除这些内容。 Grub Customizer使此过程更加容易。

When Grub Customizer starts up, you’ll see a list of all the items that show up in the boot menu.

当Grub Customizer启动时,您将看到启动菜单中显示的所有项目的列表。

Grub Customizer_002

To hide entries that you don’t want to see anymore, simply uncheck the checkbox next to them.

要隐藏您不想再看到的条目,只需取消选中它们旁边的复选框即可。

Grub Customizer_004

Click the Save button at the top-left to make your changes permanent.

点击左上角的保存按钮,使更改永久生效。

sshot-3

You can uncheck entire sections if you don’t want Grub2 to probe for new operating systems, or give you the option to test your computer’s memory.

如果您不希望Grub2探索新的操作系统,或者可以选择测试计算机的内存,则可以取消选中所有部分。

Note that, unlike the manual method, this process does not actually remove the kernels from your computer, it just hides them from the boot menu.

请注意,与手动方法不同,此过程实际上不会从计算机中删除内核,而只是从启动菜单中将其隐藏。

自定义G行为 (Customize Grub Behavior)

Grub Customizer can do much more than hide boot menu entries! Opening up the Preferences window lets you customize almost every aspect of Grub.

Grub Customizer所做的不只是隐藏启动菜单项! 打开“首选项”窗口,您可以自定义Grub的几乎每个方面。

For example, you can set the default boot menu entry to a certain position, or a specific item.

例如,您可以将默认启动菜单项设置为某个位置或特定项目。

sshot-2

If you’re bored by the default white-text-on-black-background look of Grub2, you can add a background image and customize text colors.

如果您对Grub2的默认黑底白字外观感到厌倦,则可以添加背景图像并自定义文本颜色。

Grub Customizer - settings_006

And, for Grub2 experts, you can set advanced settings much more easily than by editing the configuration files manually.

而且,对于Grub2专家来说,与手动编辑配置文件相比,您可以更轻松地设置高级设置。

Grub Customizer - settings_007

Grub Customizer is a great addition to any Linux installation that uses Grub2!

Grub Customizer是任何使用Grub2Linux安装的重要补充!

Thanks to How-To Geek commenter Hugues for recommending this program!

感谢How-To Geek评论员Hugues推荐了此程序!

See this Ubuntu Forums post for more detailed information on Grub Customizer.

有关Grub Customizer的更多详细信息,请参见Ubuntu论坛帖子。

翻译自: https://www.howtogeek.com/howto/43471/how-to-configure-the-linux-grub2-boot-menu-the-easy-way/

grub2引导linux

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值