grub 背景图片

在 grub 內要显示背景图片,有以下几个限制:

1. 图片大小限制在 640x480
2. 顏色限制在 14 色
3. 文件格式为 xpm,且需经过 gzip 压缩为 gz 的文件
4. /boot/menu.lst 中设定背景文件的路径,grub能读取的格式,例如(hd0,6)/boot/grup/bg.xpm.gz

制作过程
~$convert -colors 14  xxx.jpg bg.xpm
~$gzip bg.xpm产生  bg.xpm.gz
~$sudo cp bg.xpm.gz /boot/grub/
~$sudo vi /boot/grub/menu.lst
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
color cyan/blue white/blue
#splashimage info
splashimage (hd0,6)/boot/grub/bg.xpm.gz

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret


注:其中(hd0,6)是你的grub的根目录,在启动时,按c进入grub的command line
使用find /boot/grub/menu.lst
显示的内容就是你的grub的安装位置
例如我的显示(hd0,6)
那么说明我的grub安装在第一个硬盘的第七个分区上。(grub对分区从0开始计数)

最后就去欣赏你的成果吧


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值