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引导界面背景照片的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 连接QuickBooks Online实
- 下一篇: Linux常用命令,个人学习笔记