LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
精华主题  
主题工具
旧 05-04-21, 18:56 第 1 帖
zerolin 帅哥
 
zerolin 的头像
 
 
注册会员  
  注册日期: Aug 2003
  帖子: 1,138
  精华: 9
 

标题: HOWTO: Arch linux gensplash —Arch linux gensplash 指北[Last Update 05.6.19]


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/project...plash/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.php...nd%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.php...and%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/***** 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/***** 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/***** 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/***** 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/***** 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/***** 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/***** 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/***** 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/project...easy-steps.txt
http://wiki.archlinux.org/index.php/Gensplash
上传的图像
文件类型: jpg DangerGirl-silent.jpg (93.4 KB, 421 次查看)
文件类型: png girl.png (85.1 KB, 493 次查看)
上传的附件
文件类型: txt PKGBUILD.txt (4.2 KB, 72 次查看)







__________________
To believe yourself to be brave is to be brave; it is the only essential thing

-Mark Twain

此帖于 06-07-31 00:56 被 zerolin 编辑.
  zerolin 当前离线   回复时引用此帖
旧 05-04-21, 20:15 第 2 帖
athlon_r
 
athlon_r 的头像
 
 
注册会员  
  注册日期: Dec 2002
  帖子: 981
  精华: 1
 

感动....
不知道说什么了............ ---------------------







__________________
一个在X11下shell的疯狂CUIer!!!

承诺的誓言不会忘记...

谱写我的诗史由我来创造神话
  athlon_r 当前离线   回复时引用此帖
旧 05-04-21, 21:45 第 3 帖
diony
 
diony 的头像
 
 
注册会员  
  注册日期: Jan 2005
  帖子: 2,162
  精华: 10
 

辛苦了。







__________________
Desktop:
| Core2Duo E6550 | ECS P35T-A | 2G DDR800 X 2 DualChannel | HD4870|
640G SATA X 1
500G SATA X 2
320G SATA X 1

Laptop:
ASUS A8SC Z99S

-------------
别把别人当成猪,但愿自己不是狗。
-------------
  diony 当前离线   回复时引用此帖
旧 05-04-21, 23:58 第 4 帖
休想
 
休想 的头像
 
 
注册会员  
  注册日期: Jan 2003
  我的住址: 火星来的猪
  帖子: 983
  精华: 1
 

一上来就看到了,真的不知道说什么好







__________________
MSN上人太少拉,大家都来+吧,免得看到msn上可怜的几个人……
evinmask at msn dot com
  休想 当前离线   回复时引用此帖
旧 05-04-22, 00:28 第 5 帖
athlon_r
 
athlon_r 的头像
 
 
注册会员  
  注册日期: Dec 2002
  帖子: 981
  精华: 1
 

我真哭了...

代码:
[dibble] Server = http://dtw.jiwe.org/share/pkgs/dibble
这里的 Splashutils, initscripts-gensplash好像有问题... 还需要miscsplashutils 这个...

pacman -Sy gensplashutils cripts-gensplash 提示404错误... - -!
手动下载 initscripts-gensplash miscsplashutils gensplashutils
用pacman -A 安装. 然后 恶梦开始了.......
initscripts-gensplash 装后 启动时 有巨大问题... network等一些服务无法启动
提示 /lib/splash/ 下好象有一堆的文件没找到...
可是并没有 /lib/splash这个目录
将 上面3个包 用pacman -R 移除后 重启 系统挂了- -! 发现initscripts也没了 系统找不到runlevel...... - -!
幸好grub还在... 用安装内核启动 mount / 分区一看
/etc下 rc.multi等runlevel的文件都没了 晕倒.........
chroot, mount安装光盘... pacman -Af initscripts× 。。。
总算救回来了= =!

还有 就是不知道为什么 有时候找不到root? 就是那个VFS的错误...
我用的是soft raid 看到有建立 md1的信息 但就是找不到root 已经指定root=/dev/md1了(没有用devfs)

郁闷...
难道 是和我用的soft raid 有关系???
  athlon_r 当前离线   回复时引用此帖
旧 05-04-22, 01:55 第 6 帖
休想
 
休想 的头像
 
 
注册会员  
  注册日期: Jan 2003
  我的住址: 火星来的猪
  帖子: 983
  精华: 1
 

没有以前真的好像有一个bootsplash,用了以后感觉又没有什么必要了……难道这就是人性……纳闷……
  休想 当前离线   回复时引用此帖
旧 05-04-22, 08:53 第 7 帖
gmet
 
gmet 的头像
 
 
注册会员  
  注册日期: Apr 2004
  我的住址: 成都
  帖子: 90
  精华: 1
 

我昨天pacman -Syu了一下,兮兮,重启之后arch就给我一个莫大的惊喜,它在启动的时候虽然还是一行一行的启动信息,但在左上角多了一张大概300×300的图片。不错。







__________________
我二十年没有打喷嚏了,一遇上你就打足了……

Ar----------------ch--- !!!!

20年的喷嚏!!
  gmet 当前离线   回复时引用此帖
旧 05-04-22, 14:21 第 8 帖
休想
 
休想 的头像
 
 
注册会员  
  注册日期: Jan 2003
  我的住址: 火星来的猪
  帖子: 983
  精华: 1
 

那个logo好像一直都有的说……
  休想 当前离线   回复时引用此帖
旧 05-04-23, 16:15 第 9 帖
zerolin 帅哥
 
zerolin 的头像
 
 
注册会员  
  注册日期: Aug 2003
  帖子: 1,138
  精华: 9
 

引用:
作者: athlon_r

这里的 Splashutils, initscripts-gensplash好像有问题... 还需要miscsplashutils 这个...
Dibble换了新版的gensplash,所以有了新的依赖性。这个版是有问题,特意升级了
,就出问题了,我以前也说过,Dibble的新版gensplash不稳定。

initscripts是很重要系统文件,initscripts-gensplash是patch 过的initscripts
所以删除了要安装回正常的initscripts

原来Dibble新版叫gensplashutils-tng,initscripts-gensplash-tng,常出问题
我向Dibble反映了好几次,最后他不得不把他们移出了repo

我把修改过的打包:
里面有gensplash,initscripts-gensplash的PKGBUILD和nitscripts-gensplash的package,gensplashutils的package太大了,自己makepkg吧
请先把原来的都删除了,包括miscsplashutils,再安装
good luck!
上传的附件
文件类型: bz2 gensplash.tar.bz2 (16.3 KB, 24 次查看)

此帖于 05-04-23 20:32 被 zerolin 编辑.
  zerolin 当前离线   回复时引用此帖
旧 05-04-23, 17:38 第 10 帖
athlon_r
 
athlon_r 的头像
 
 
注册会员  
  注册日期: Dec 2002
  帖子: 981
  精华: 1
 

引用:
作者: zerolin
Dibble换了新版的gensplash,所以有了新的依赖性。这个版是有问题,特意升级了
,就出问题了,我以前也说过,Dibble的新版gensplash不稳定。

initscripts是很重要系统文件,initscripts-gensplash是patch 过的initscripts
所以删除了要安装回正常的initscripts

原来Dibble新版叫gensplashutils-tng,initscripts-gensplash-tng,常出问题
我向Dibble反映了好几次,最后他不得不把他们移出了repo

我把修改过的打包:
里面有gensplash,initscripts-gensplash的PKGBUILD和nitscripts-gensplash的package,gensplashutils的package太大了,自己makepkg吧
请先把原来的都删除了,包括miscsplashutils,再安装
good luck!
没什么说的.... 就是感谢呀...!!!
  athlon_r 当前离线   回复时引用此帖
旧 05-04-26, 23:41 第 11 帖
zerolin 帅哥
 
zerolin 的头像
 
 
注册会员  
  注册日期: Aug 2003
  帖子: 1,138
  精华: 9
 

Dibble发布了新版的gensplashutils and initscript0-gensplash ,
修复了BUG,并可以按F2由silent转到verbose了。
  zerolin 当前离线   回复时引用此帖
旧 05-04-27, 02:43 第 12 帖
休想
 
休想 的头像
 
 
注册会员  
  注册日期: Jan 2003
  我的住址: 火星来的猪
  帖子: 983
  精华: 1
 

#mkdir /etc/bootsplash
#bootsplash2fbsplash bootsplashthemename

我觉得这个工具还是不太好用的说,楼主的能用吗?
  休想 当前离线   回复时引用此帖
旧 05-04-27, 04:29 第 13 帖
zerolin 帅哥
 
zerolin 的头像
 
 
注册会员  
  注册日期: Aug 2003
  帖子: 1,138
  精华: 9
 

能用,这样:
代码:
#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

此帖于 05-04-27 04:32 被 zerolin 编辑.
  zerolin 当前离线   回复时引用此帖
旧 05-04-27, 05:15 第 14 帖
休想
 
休想 的头像
 
 
注册会员  
  注册日期: Jan 2003
  我的住址: 火星来的猪
  帖子: 983
  精华: 1
 

你的意思是在/etc/bootsplash下要有两个目录,都必须放主题/etc/bootsplash/themes and /etc/bootsplash
  休想 当前离线   回复时引用此帖
旧 05-04-27, 14:36 第 15 帖
zerolin 帅哥
 
zerolin 的头像
 
 
注册会员  
  注册日期: Aug 2003
  帖子: 1,138
  精华: 9
 

一个放config文件,一个放image文件,themes下放的是image。
为了方便操作,少输入命令,就把整个 theme文件 copy,嘿嘿
  zerolin 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 14:36


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2010, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2009, LinuxSir.Org