欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > linux >内容正文

linux

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

发布时间:2023/12/20 linux 36 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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

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

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

(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 p_w_picpath must be 16-bit. Don't worry, we'll walk through converting it to 16-bit.

the p_w_picpath 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 artworkOpen up the p_w_picpath 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 p_w_picpath.

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

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

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 p_w_picpath's original proportions. If the p_w_picpath 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 p_w_picpath 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 p_w_picpath has more horizontal p_w_picpath data than we need. We'll crop it later.

(If p_w_picpath isn't now perfectly 640x480) Crop the p_w_picpath 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 p_w_picpath preview in the bottom of the dialog. Drag the p_w_picpath 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 p_w_picpath around as you desire and when you're satisfied, hit the 'resize' button.

Step 3: Save the p_w_picpath out

可能是软件更新了,我用的gimp要使用导出,而非另存为Still in Gimp, go to "File > Save As..." and save the p_w_picpath 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 p_w_picpathmagick || sudo apt-get install p_w_picpathmagick

打开终端,使用下面的命令修改素材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!

总结

以上是生活随笔为你收集整理的linux引导界面背景,如何个性化syslinux引导界面背景照片的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。