|
HOWTO: Arch linux gensplash —Arch linux gensplash 指北
[注: Partly out of date,Gensplash 的patch 已经包含在 kernel26beyond,
pacman -S kernel26beyond]
厌倦了linux的单调的启动方式吗?想为linux桌面增添点缤纷的色彩吗?,来观赏观赏很COOL的Gensplash
一 简介
gensplash 是bootsplash的重写,spock一直维护着,并添加了些新的功能。可以在控制台设置高的刷新率。感谢spock。spock的主页:http://dev.gentoo.org/~spock/projects/gensplash/
同时感谢DibbleTheWrecker提供了Arch的gensplah pkg
二 安装
1 . 下载patch
gensplash 的patch (gensplash 是整个项目的名称,fbsplash是patch的名称,不同版本的kernel 要用相对应的patch)
可以到spock的主页下载到,http://dev.gentoo.org/~spock/projects/gensplash/archive/ 。
如果想在控制台下使用高刷新率的还需要vesa-tng patch,可以设置到1024x768-32@85,有可能break显示器,风险自己承担咯。
(不过这里用了很久也没出问题,)
如果不想分开patch的话,可以使用一些比较popular的patch,他们已经包含了 fbsplash 和vesa-tng,并增加了一些其他的patch
增强了桌面的功能如reiser4,win4lin,比较多人用的patch有:nitro,cko,morph,love,可到这里详细了解
http://wiki2.archlinux.org/index ... s%20and%20patchsets
2 .patch kernel,编译新kernel
可以手动patch或用ABS自动完成
手动的话这样:
注意要对应下载的patch版本号,
- # cd /usr/src/linux
- # mv <path_to_where_the_patch_is>/vesafb-tng.patch fbsplash.patch ./
- # cat <path_to_where_the_patch_is>/fbsplash.patch | patch -p1
- # cat <path_to_where_the_patch_is>/vesafb-tng.patch | patch -p1
复制代码 OR 用nitro.cko,morph.love等patch的,- # cd /usr/src/linux
- #mv <path_to_where_the_patch_is>/patch-2.6.xx.-xxbz2 ./
- #bzip2 -dc ../patch-2.6.xx.-xxbz2 | patch -p1
- # make menuconfig (enable vesafb, select vesafb-tng as driver type)
复制代码 重要的选项:- Device Drivers
- Block Devices
- RAM disk support (BLK_DEV_RAM) = Y
- Inital RAM disk (initrd) support(BLK_DEV_INITRD)=Y
- Graphics Support
- Support for framebuffer devices (FB) = Y
- VESA VGA graphics support (FB_VESA) = Y
- VESA driver type
- vesafb (FB_VESA_STD) = Y
- vesafb-tng (FB_VESA_TNG) = N
- "Card Specific" display support (FB_"CARD") = N
- Logo Configuration
- Bootup logo (LOGO) = N
- Support for the framebuffer splash (FB_SPLASH) = Y
- 要用高刷新率的就用vesafb-tng,否则就用常规的vesafb
- #make &&make modules_install &&make install
复制代码
用ABS patch,编译内核:
详细的参考这里http://wiki2.archlinux.org/index ... .9%20and%20later%29
附件提供一个PKGBUILD
3 . 安装Splashutils,initscripts
可以选择直接安装PKG或者用ABS编译
在pacman.conf加入community 的repo
[community]
Server = ftp://ftp.archlinux.org/community/os/i686/- #pacman -Sy gensplashutils initscripts-gensplash
复制代码
PKGBUILD可到这里下载
http://dtw.jiwe.org/share/pkgs/dibble/PKGBUILDS/
4 .安装gensplash themes
Dibble 的Splashutils,带了一个darch theme,如果要用自己喜欢的theme,
可到http://www.bootsplash.de/ 下载,splashutils,能把bootsplash
theme转成gensplash theme
把喜欢的 bootsplash theme放在 /etc/bootsplash
要把bootsplash theme 的config 和img 分开放
- #mkdir -p /etc/bootsplash/themes
- #tar xjvf <your-theme-file>.tar.bz2
- #cp -a <your-theme-file> /etc/bootsplash
- #cd !$
- #cp -a <your-theme-file> ./themes
- #bootsplash2fbsplash bootsplashthemename
复制代码
新的gensplash theme 会放在/etc/splash
5 .生成gensplash initramfs image
Dibble的PKG带的theme是darch- #splash_geninitramfs -v -g /boot/fbsplash-darch-1024x768 -r 1024x768 darch
复制代码
三 配置GRUB,LILO
有2种模式选择verbose 或者 silent , silent是有进度条的那种
在/etc/splash 下有配置的sample
GRUB - # for verbose mode
- title Arch
- root (hd0,X)
- kernel /kernel26 root=/dev/discs/disc0/partY vga=791 splash=verbose,theme:darch console=tty1 quiet
- initrd /fbsplash-darch-1024x768
- # for silent mode
- title Arch
- root (hd0,X)
- kernel /kernel26 root=/dev/discs/disc0/partY vga=791 splash=silent,theme:darch console=tty1 quiet
- initrd /fbsplash-darch-1024x768
- 用vesa-tng:
- title Arch
- root (hd0,X)
- kernel /kernel26 root=/dev/discs/disc0/partY video=vesafb:ywrap,mtrr,1024x768-32@85 splash=verbose,theme:darch quiet console=tty1
- initrd /fbsplash-darch-1024x768
- title Arch
- root (hd0,X)
- kernel /kernel26 root=/dev/discs/disc0/partY video=vesafb:ywrap,mtrr,1024x768-32@85 splash=silent,theme:darch quiet console=tty1
- initrd /fbsplash-darch-1024x768
复制代码
LILO- # for verbose mode
- image=/boot/kernel26
- label = "Arch26"
- root = /dev/discs/disc0/partY
- append="splash=verbose,theme:darch console=tty1"
- read-only
- initrd = /boot/fbsplash-darch-1024x768
- # for silent mode
- image=/boot/kernel26
- label = "Arch26"
- root = /dev/discs/disc0/partY
- append="splash=silent,theme:darch console=tty1 quiet"
- read-only
- initrd = /boot/fbsplash-darch-1024x768
- 用vesa-tng:
- # for verbose mode
- image=/boot/kernel26
- label = "Arch26"
- root = /dev/discs/disc0/partY
- append="video=vesa:ywrap,mtrr,1024x768-32@85 splash=verbose,theme:darch console=tty1"
- read-only
- initrd = /boot/fbsplash-darch-1024x768
- # for silent mode
- image=/boot/kernel26
- label = "Arch26"
- root = /dev/discs/disc0/partY
- append="video=vesa:ywrap,mtrr,1024x768-32@85 splash=silent,theme:darch console=tty1 quiet"
- read-only
- initrd = /boot/fbsplash-darch-1024x768
复制代码 把 X ,Y 换成自己的配置,kernel26也要换成新的。
Enjoy!
四 . 其他参考
http://gentoo-wiki.com/HOWTO_fbsplash
http://gentoo-wiki.com/HOWTO_Create_Gensplash_Themes
http://dev.gentoo.org/~spock/pro ... in-5-easy-steps.txt
http://wiki.archlinux.org/index.php/Gensplash |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|