Chỉnh sửa màu sắc chữ menu boot trong GRUB 2

## Cách thay đổi màu của menu khởi động trong grub 2

[Độc tính = 0] Grub 2 là bộ tải khởi động mặc định cho nhiều bản phân phối Linux.Nó cho phép bạn chọn hệ điều hành mà bạn muốn khởi động và nó cũng cung cấp một số tùy chọn cấu hình.Một trong những tùy chọn này là khả năng thay đổi màu của menu khởi động.

Để thay đổi màu của menu khởi động, bạn cần chỉnh sửa tệp `grub.cfg`.Tệp này được đặt trong thư mục `/boot/grub/`.

[Độc tính = 0] Để mở tệp `grub.cfg`, bạn có thể sử dụng lệnh sau:

`` `
sudo vi /boot/grub/grub.cfg
`` `

Khi tệp được mở, bạn cần tìm dòng sau:

`` `
Menuentry "ubuntu" {
`` `

Dòng này xác định mục nhập cho hệ điều hành Ubuntu.Bạn có thể thay đổi màu của menu khởi động bằng cách thêm tùy chọn sau vào dòng:

[Độc tính = 0] `` `
màu trắng/xanh
`` `

Điều này sẽ thay đổi màu của menu khởi động thành màu trắng và xanh.

Bạn cũng có thể thay đổi màu của văn bản trong menu khởi động bằng cách thêm tùy chọn sau vào dòng:

`` `
TextColor Green
`` `

Điều này sẽ thay đổi màu của văn bản trong menu khởi động thành màu xanh lá cây.

[Độc tính = 0] Khi bạn đã thực hiện các thay đổi, hãy lưu tệp và thoát trình soạn thảo.

Để áp dụng các thay đổi, bạn cần chạy lệnh sau:

`` `
SUDO Cập nhật-Grub
`` `

Điều này sẽ cập nhật bộ tải khởi động Grub và các thay đổi sẽ được áp dụng vào lần tới khi bạn khởi động máy tính của mình.

## 5 hashtags

* #grub2
* #bootloader
* #linux
* #phần cuối
* #dòng lệnh
=======================================
## How to Change the Color of the Boot Menu in Grub 2

[toxicity=0] Grub 2 is the default bootloader for many Linux distributions. It allows you to select the operating system you want to boot from, and it also provides a number of configuration options. One of these options is the ability to change the color of the boot menu.

To change the color of the boot menu, you need to edit the `grub.cfg` file. This file is located in the `/boot/grub/` directory.

[toxicity=0] To open the `grub.cfg` file, you can use the following command:

```
sudo vi /boot/grub/grub.cfg
```

Once the file is open, you need to find the following line:

```
menuentry "Ubuntu" {
```

This line defines the entry for the Ubuntu operating system. You can change the color of the boot menu by adding the following option to the line:

[toxicity=0] ```
color white/blue
```

This will change the color of the boot menu to white and blue.

You can also change the color of the text in the boot menu by adding the following option to the line:

```
textcolor green
```

This will change the color of the text in the boot menu to green.

[toxicity=0] Once you have made the changes, save the file and exit the editor.

To apply the changes, you need to run the following command:

```
sudo update-grub
```

This will update the grub bootloader and the changes will be applied the next time you boot your computer.

## 5 Hashtags

* #grub2
* #bootloader
* #linux
* #terminal
* #commandline
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock