LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 5357|回复: 32

Debian安装上gensplash,show一下,:)

[复制链接]
发表于 2005-1-2 20:17:05 | 显示全部楼层 |阅读模式
参考了这文章做的
http://dev.gentoo.org/~spock/projects/gensplash/archive/contrib/ 中的
“debian-fbsplash-howto-by-patrik-olterman”

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-1-2 20:28:05 | 显示全部楼层
debian-fbsplash-howto-by-patrik-olterman
打不开!
发表于 2005-1-2 20:32:55 | 显示全部楼层
8错
靓就一个字
 楼主| 发表于 2005-1-2 20:41:38 | 显示全部楼层
原文:

So you have grown tired of the black and white of the console and need a bit of color to brighten your day. Before Bootsplash would have been your ticket to bliss but the recent rewrite that is now fbsplash is what you should be looking for. This tutorial is made for kernel 2.6.10 and spocks fbsplash patch, but with very little effort you should be able to use it for other kernel versions to

fbsplash is being developed by Spock for gentoo, he has done a fantastic job with this go to his page for more info and to pay tribute http://dev.gentoo.org/~spock/projects/gensplash/

Important note!
There are some problems with fbsplash and the 2.6.9 kernel where fbsplash automatically switches to verbose mode at boot, this is fixed in the 2.6.10 patch so please use that instead

Patch the kernel

You can patch the kernel with the fbsplash diff or perhaps with kolivas Ck4 patch, wich also contains alot of performance power for your desktop system.

Download patch for 2.6.10 here

go to your unpacked kernel source (should be in /usr/src/linux-2.6.10)

cd /usr/src/linux-2.6.10

and run the patch command:

patch -p1 < /path/to/patch/fbsplash-0.9.1-2.6.10-rc3-bk6.patch

Configure and compile your kernel

You need to configure the kernel for Framebuffer support, initial ramdisk and bootsplash. I suggest using vesa framebuffer since it is almost guaranteed to work with any graphics card.

make menuconfig

make

make modules_install

cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.10

ln -s /lib/modules/2.6.10/build/System/map /boot/System.map-2.6.10

create /dev/fbsplash

Fbsplash needs a device in your directory tree to function

The major and minor number needed can be found in /sys/class/misc/fbsplash/dev

cat /sys/class/misc/fbsplash/dev

For me this produces 10:63 (this can only be done after you reboot on your new kernel). Create the node with the command:

mknod /dev/fbsplash c 10 63

download and compile the gensplash utils

The utils are user space utilities for controlling your fbsplash. I had to install a jpeg and a png package to get these to configure.

apt-get install libpng3-dev libjpeg62-dev

Download the utils from here Untar your utils, compile and install them (note to get splashutils to install you must make a symlink named linux from your kernel dir to the splashutils folder where you are making the splashutils)

tar -xjf splashutils-0.9-pre10.tar.bz2

cd splashutils-0.9-pre10.tar.bz2

ln -s /usr/src/linux-2.6.10 linux

./configure

make

make install

This will give you several commands, I have a little initscript that I use for my bootsplash

Download my fbsplash script here

install a theme

You can download a debianized theme from here

start with creating the splash directory and copy the theme into that.

mkdir /etc/splash

cp debian-1.tar.bz2 /etc/splash

cd /etc/splash

tar -xjf debian-1.tar.bz2

I also suggest you make a link for the current theme to be able to very quickly switch themes

ln -s /etc/splash/debian-1 /etc/splash/current

edit the rcS and rc scripts

For the progress bar to function you need to tell the /etc/init.d/rcS and /etc/init.d/rc to update the bar after each init script.

Here is my /etc/init.d/rcS

Here is my /etc/init.d/rc

There are probably many better ways to solve this but I ended up guessing approx how much to add per script and winged it, all I added in the scripts is clearly marked out in boxes of hashes.

generate the ramdisk image

With the commands given by splash utils you can generate a ramdisk image containing your fbsplash theme

splash_geninitramfs -v -g /boot/initrd.img-2.6.10 -r 1024x768 current

Tell grub to load the ramdisk and set up framebuffer

Edit your grub lines to look something like this

title Debian Gnu/Linux (2.6.10)

root (hd0,0)

kernel /boot/vmlinuz-2.6.10 ro root=/dev/hda1 video=vesafb:ywrap,pmipal,1024x768-32@85 splash=silent,theme:current

initrd /boot/initrd.img-2.6.10

Reboot in the ultimate console fluffiness

Now you should have a working fbsplash and will be able to boot in all the colors of your choice.

To change the splash on a console use the following

The following four commands will change your frame buffer theme on the fly, if you want to change a console you are not currently on, omit the setpic command

splash_util --vc=0 --cmd=off

splash_util --vc=0 --theme=current --cmd=setcfg

splash_util --vc=0 --theme=current --cmd=setpic

splash_util --vc=0 --cmd=on

/etc/init.d/
to have the fbsplash be set on all your consoles at boottime you need to fix a init.d script if you have no imagination or scripting skills you can download mine here Copy that script into /etc/init.d and name it fbsplash

then adda symlink to this file in your default runlevel making sure it's the last thing loaded and it should work fine

ln -s /etc/init.d/fbsplash /etc/rc2.d/S99xfbsplash




府:
1 . splashutils

http://dev.gentoo.org/~spock/pro ... ils-0.9-rc1.tar.bz2

2. debian theme
3. script,patch(patch是kernel2.6.9的,要用2.6.10kernel的可以到http://dev.gentoo.org/~spock/projects/gensplash/archive/)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-1-25 05:50:15 | 显示全部楼层
哇.怎么都是E文的.
我的kernel是2.4.27
找不到2.4.27的patch啊.得咋整?
回复 支持 反对

使用道具 举报

发表于 2005-1-25 07:06:52 | 显示全部楼层
有没有不需要编译内核的方法?编译内核实在不适合俺们这样的新手.
回复 支持 反对

使用道具 举报

发表于 2005-1-25 09:30:41 | 显示全部楼层
不错,收藏
回复 支持 反对

使用道具 举报

发表于 2005-1-25 11:19:16 | 显示全部楼层
靓阿
楼主写个经验总结吧,让大家学习学习
那个e文的有点难读
回复 支持 反对

使用道具 举报

发表于 2005-1-25 11:19:55 | 显示全部楼层
不错呵呵,刚装完Debian就看到这么好的东东
回复 支持 反对

使用道具 举报

发表于 2005-2-20 11:21:29 | 显示全部楼层
不错,好东西,先收藏
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表