linux引导界面背景,如何个性化syslinux引导界面背景照片

如何个性化syslinux引导界面背景照片

总结起来这个文件有两个要求

1、640*480分辨率,16位色

2、png格式的文件,引导时需要把后缀名改为jpg(原文作者也不记得为什么了)

主体步骤

1/安装gimp或者任何您习惯的工具把尺寸处理成640*480。

2/把素材导出png格式。

3/调整文件为16位色。

convert  -depth 16 -colors 65536 syslinux.png syslinux-vesa-splash.png

4/复制文件到tftp目录,重命名为jpg,测试。

How to create a custom syslinux splash

如果制作一个个性化的syslinux splash

From FedoraProject

来自 Fedora项目

Contents

内容

Hicolor Syslinux Splash

下图是制作好的一个示例文件

0818b9ca8b590ca3270a3433284dd417.png

这是实际引导时看到的效果图

0818b9ca8b590ca3270a3433284dd417.png

(Above: preview graphic showing syslinux using the very first graphic above)

Step 1: Create or find some artwork

Create or find some artwork to use as your syslinux splash. The main restriction on syslinux hicolor splashes is that they must be 640 x 480 pixels (not very large these days!) There aren't any practically limiting color limits, though - 65,536 colors ought to be enough for anybody. :)

There are two odd requirements, though. We'll get you through them, no problem:

the image must be 16-bit. Don't worry, we'll walk through converting it to 16-bit.

the image should be a png with a jpg extension. I don't remember why, but it's how it is. Again, an easy thing to account for.

Step 2: Scale down the artwork

Open up the image you've got in the gimp. (yum install gimp)

安装gimp yum -y install gimp || sudo apt-get install gimp

Go to "Image > Scale Image" in the Gimp menus along the top of the image.

展开菜单Image > Scale Image,锁定比例,尝试修改参数。若宽度修改为640时调试大于480就按此方案;反之修改调试为480并保存。

展开菜单Image > Canvas Size,解除比例锁定,修改另外一个参数使结果为宽度480、高度640,调整图形至合适位置。

0818b9ca8b590ca3270a3433284dd417.png

In the "Scale Image" dialog, make sure the lock icon is closed, then type in '640' for the width, erasing whatever was there. Gimp will automagically update the height field to scale it proportionally to a 640 pixel width based on the image's original proportions. If the image isn't in the same ratio as 640, 480, the height won't automagically update to '480'. That's okay. Based on what Gimp fills in for the height, we'll be able to change the picture's ratio. (see below)

If gimp fills in the 'height' field to a value greater than 480 (for example, 550), accept that value and hit the 'Scale' button in the lower right of the dialog. (This means the image ratio has more height than we need, so we'll crop it later.)

If gimp fills in the 'height' field with a value less than 480 (for example, 300), then change the 'height' value to 480. This will update the 'width' value to a value greater than 640. That's okay. It just means that the image has more horizontal image data than we need. We'll crop it later.

(If image isn't now perfectly 640x480) Crop the image down to 640x480 by opening up the "Image > Canvas Size" dialog. Click on the lock icon so it is unlocked. Replace the 'width' value with '640', and replace the 'height' value with '480'. There will be an image preview in the bottom of the dialog. Drag the image around in the preview - anything falling outside of the rectangular border that appears in the center of the preview will be cropped out. Move the image around as you desire and when you're satisfied, hit the 'resize' button.

Step 3: Save the image out

可能是软件更新了,我用的gimp要使用导出,而非另存为

Still in Gimp, go to "File > Save As..." and save the image as "syslinux.png". Save it to your Desktop, okay? The instructions from here on out will assume you saved to your Desktop.

Step 4: Correct Colors & Color depth

yum -y install imagemagick || sudo apt-get install imagemagick

打开终端,使用下面的命令修改素材

Open up a terminal, you'll need the command line.

We're going to be using ImageMagick. If you don't know if you have it installed, try yum install ImageMagick.

Okay, cd ~/Desktop, and type the following command:

convert  -depth 16 -colors 65536 syslinux.png syslinux-vesa-splash.png

Step 5: Change File Extension

更改文件名

Still in the terminal, type the following to change the png to a jpg file extension:

mv syslinux-vesa-splash.png syslinux-vesa-splash.jpg

Step 6: Testing syslinux splash (mystery!)

Other Information

I don't know how to test syslinux's splash. The only way I can think of is by using a custom Fedora spin. The only reason you'd want to customize your syslinux splash is for a live usb stick - syslinux's splash is the first thing you see on the screen when you boot off of a Fedora live USB stick. So if you use a live usb stick try replacing the files at the paths listed in the steps above with the ones you created here!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值