以前修改背景是

# sudo -u gdm dbus-launch gnome-control-center

这种操作手法只能改变用户登录界面的背景,还有个grub登陆的界面--纯黑色的,有时候想要换个新鲜的 然后找到grub的修改方式。

找到grub的Documentation,它提供了grub的一些文档(比如这个),又找到个manual,感觉差不多就开工了

找到key file -- /etc/default/grub 修改/etc/default/grub,添加GRUB_BACKGROUND参数 比如我:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.dm=0 rd.lvm.lv=vg_yu/lv_root  KEYTABLE=us SYSFONT=latarcyrheb-sun16 rd.luks=0 rd.lvm.lv=vg_yu/lv_swap LANG=en_US.UTF-8 rhgb quiet"
#GRUB_THEME="/boot/grub2/themes/system/theme.txt"
GRUB_BACKGROUND="/usr/share/images/desktop-base/nature.jpg"

当然,还有更多各种配置.

完了测试下能不能用

# grub2-mkconfig

确认无误后,将其写入boot -- 也就是前文说过的key file列表中的另一个成员

# grub2-mkconfig -o /boot/grub2/grub.cfg

下次就有惊喜了

References :

Categories: Code

Yu

Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

7 Comments

philosophos · April 28, 2016 at 11:44

IceWeasel 38.7.1 IceWeasel 38.7.1 GNU/Linux x64 GNU/Linux x64

其实办法很多了,这有5种。http://www.blackmoreops.com/2015/11/27/change-grub-background-in-kali-linux/

heyuan · January 20, 2014 at 14:41

Google Chrome 21.0.1180.89 Google Chrome 21.0.1180.89 Windows 7 Windows 7

没用过,不过看来不错

熊猫家族 · February 23, 2013 at 20:39

Google Chrome 24.0.1312.57 Google Chrome 24.0.1312.57 Windows 7 Windows 7

没试过也

    Yu Jing · February 23, 2013 at 20:47

    Google Chrome 24.0.1312.57 Google Chrome 24.0.1312.57 Windows 7 x64 Edition Windows 7 x64 Edition

    其实就是提供个文档介绍
    尝试过后表示,如果艺术天赋细胞太弱(比如我),没有设置好GRUB_THEME文件,又挑了张奇怪的图,还不如黑底白字呢。

花七七 · February 22, 2013 at 22:11

Google Chrome 26.0.1399.0 Google Chrome 26.0.1399.0 Windows 8 x64 Edition Windows 8 x64 Edition

设置Grub4DOS背景图片格式很坑爹……

    Yu Jing · February 23, 2013 at 20:53

    Google Chrome 24.0.1312.57 Google Chrome 24.0.1312.57 Windows 7 x64 Edition Windows 7 x64 Edition

    额…没有尝试过Grub4DOS.找了下资料,看起来很厉害的样子.

    GRUB2只要随便找张jpg,png或其他什么文件就可以了,格式貌似没啥特别的要求

ghostry · February 4, 2013 at 10:40

Google Chrome 24.0.1312.56 Google Chrome 24.0.1312.56 Windows 7 Windows 7

恩.前两天刚做了启动usb

Leave a Reply to philosophos Cancel reply

Your email address will not be published. Required fields are marked *