该仓库为各发行版之中提取出来的GRUB
主题。
提示:
starfield
为GRUB
的图形化菜单的默认主题;
bliss
为Bliss OS
启动时的GRUB
主题;
deepin
为deepin V20
启动时的GRUB 主题;
manjaro-live
为Manjaro
系统安装启动时的GRUB
主题;
ukylin
为优麒麟 20.04 LTS
启动时的GRUB
主题。
-
① 将喜欢的
GRUB
主题复制到/boot/grub/themes/
目录。若
themes
目录不存在,则使用如下命令创建该目录:$ sudo mkdir -pv /boot/grub/themes
并给
themes
目录分配适当的权限:$ sudo chown $USER /boot/grub/themes/
-
② 在
/etc/default/grub
文件中找到GRUB_THEME=
,
并在其后添加喜欢的主题的theme.txt
,
且需取消GRUB_GFXMODE=
注释,以输入背景图像分辨率,
具体修改如下所示:[...] GRUB_THEME=/boot/grub/themes/<主题名称>/theme.txt GRUB_GFXMODE=<分辨率> [...]
注意:
以防万一,更改前请备份GRUB
文件。 -
③ 使用如下命令更新
GRUB
:# Debian及其发行版 $ sudo update-grub # 或者 $ sudo update-grub2 # Red Hat/CentOS/Fedora及其发行版 $ sudo grub-mkconfig -o /boot/grub/grub.cfg # 或者 $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg # ArchLinux及其发行版 $ sudo grub-mkconfig -o /boot/grub/grub.cfg
-
④ 若删除手动安装的
GRUB
主题,
则需删除复制到/boot/grub/themes/
目录的文件夹,
注释或删除/etc/default/grub
文件中GRUB_THEME
与GRUB_GFXMODE
参数
并更新GRUB
即可,
即原路返还。
This repository is the GRUB
theme extracted from each distribution.
Hint:
starfield
is the default theme forGRUB's
graphical menu;
bliss
is theGRUB
theme ofBliss OS
startup
deep
is the GRUB theme whendeep V20
starts
manjaro live
is theGRUB
theme when theManjaro
system installation starts
ukylin
is theGRUB
theme ofUkylin 20.04 LTS
startup.
- ① Copy your favorite
GRUB
theme to the/boot/grub/themes/
directory.
If the
themes
directory does not exist, use the following command to create it:$ sudo mkdir -pv /boot/grub/themesAssign appropriate permissions to the
themes
directory:$ sudo chown $USER /boot/grub/themes/
-
② Find
GRUB_THEME=
in the/etc/default/grub
file,
and add the theme of your favorite theme Txt ,
and cancelGRUB_ GFXMODE=
Comment to input the background image resolution.
The specific modifications are as follows:[...] GRUB_THEME=/boot/grub/themes/<Topic Name>/theme.txt GRUB_GFXMODE=<resolving power> [...]
-
③ Use the following command to update
GRUB
:
# Debian and its distribution
$ sudo update-grub
# Or
$ sudo update-grub2
# Red Hat/CentOS/Fedora and its distribution
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
# Or
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
# ArchLinux and its distribution
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
- ④ If you delete the manually installed
GRUB
theme,
you need to delete the folder copied to the/boot/grub/themes/
directory,
comment or delete theGRUB_THEME
in the/etc/default/grub
file andGRUB_ GFXMODE
parameter
and updateGRUB
.
means original return.