一、设置GRUB背景图片
1.1 制作符合要求的GRUB背景图片;
[root@instructor Desktop]# yum -y install ImageMagick [root@instructor Desktop]# cp /opt/iso/rh6.5/isolinux/splash.jpg ./ [root@instructor Desktop]# convert -colors 14 -geometry 640x480 splash.jpg grub.xpm [root@instructor Desktop]# mv grub.xpm.gz /boot/grub/
1.2 加载GRUB背景图片;
[root@instructor Desktop]# vim /boot/grub/grub.conf default=0 timeout=5 splashp_w_picpath=(hd0,0)/grub/grub.xpm.gz ##加载指定格式的背景图片 #hidedenmenu ##注释或***隐藏菜单选项 title RHEL6 INSTRUCTOR COMPUTER (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=UUID=490e8615-713a-464f-bbc2-6d2386b5ced1 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-431.el6.x86_64.img
二、设置GRUB全局密码以防止单用户模式修改ROOT密码
2.1 生成MD5加密的密码;
[root@instructor Desktop]# grub-md5-crypt Password: redhat Retype password: redhat $1$nAgck1$kcf/d2CuywVF4sRlM3fb2.
2.2 在grub.conf中明文设定GRUB全局密码;
[root@instructor Desktop]# vim /boot/grub/grub.conf default=0 timeout=5 splashp_w_picpath=(hd0,0)/grub/grub.xpm.gz ##加载指定格式的背景图片 title RHEL6 INSTRUCTOR COMPUTER (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=UUID=490e8615-713a-464f-bbc2-6d2386b5ced1 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-431.el6.x86_64.img
三、改系统启动进度条为详细启动信息
3.1 在grub.conf文件内核启动项中,清除rhgb选项,以输出系统启动详细信息;
[root@instructor Desktop]# vim /boot/grub/grub.conf default=0 timeout=5 splashp_w_picpath=(hd0,0)/grub/grub.xpm.gz ##加载指定格式的背景图片 title RHEL6 INSTRUCTOR COMPUTER (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=UUID=490e8615-713a-464f-bbc2-6d2386b5ced1 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM quiet ##***rhgb选项 initrd /initramfs-2.6.32-431.el6.x86_64.img
四、开机重启测试
4.1 GRUB启动界面

4.2 系统启动相信信息输出

五、试验中出现的问题及解决方法
5.1 出现问题:依照上述操作步骤,在系统启动时,GRUB背景图片出现了严重的失真状况;
解决方法:原图片过大需处理一下,将其大小控制在500K左右即可(这里用PS重新处理了splash.jpg);
















