• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 給 debian 安裝 BootSplash

    發表于:2007-05-26來源:作者:點擊數: 標簽:
    有一些發行版帶有 BootSplash,也就是啟動畫面,有的是進度條的,有的是漂亮的背景加啟動文字的??傊呛芷亮???上?debian 默認安裝完以后是不帶這個東西的。不過我們可以自己安裝這個東西,從網上看了一些這方面的介紹,大部分是都是介紹 Gentoo 和 Red
     有一些發行版帶有 BootSplash,也就是啟動畫面,有的是進度條的,有的是漂亮的背景加啟動文字的??傊呛芷亮???上?debian 默認安裝完以后是不帶這個東西的。不過我們可以自己安裝這個東西,從網上看了一些這方面的介紹,大部分是都是介紹 Gentoo 和 RedHat 的,安裝起來都很麻煩,debian 安裝這個東西比起那些發行版來說,可以算是簡單多了,下面就來看看怎樣安裝 BootSplash 吧。
    首先在你的 apt 源里加上這兩行:
    CODE:
    deb http://debian.bootsplash.de unstable main
    deb-src http://debian.bootsplash.de unstable main

    然后用 apt-get update 更新一下軟件列表。
    接下來,先安裝 bootsplash 的內核補丁
    CODE:
    apt-get install kernel-patch-bootsplash

    然后重新編譯內核:
    CODE:
    apt-get install debhelper modutils kernel-package libncurses5-dev
    apt-get install linux-source-2.6.12
    apt-get install fakeroot
    vi /etc/kernel-pkg.conf # 輸入我的名字和郵件地址
    cd /usr/src # 創建目錄
    tar -xjvf linux-source-2.6.12.tar.bz2
    cd linux-source-2.6.12 # 如果這是你的內核源碼
    ../kernel-patches/all/apply/bootsplash # 給內核打補丁
    cp /boot/config-2.6.12-1-686 .config # 將當前配置設定為默認配置
    make menuconfig # 按自己的喜好來定制
    make-kpkg clean # 必須執行這步
    fakeroot make-kpkg --append_to_version -686 --initrd --revision=2.6.12-10 --stem linux kernel_image modules_image
    cd ..
    dpkg -i *.deb

    注意:在上面定制內核選項時,要選擇下列項目:
    CODE:
    Code maturity level options --->
    [*] Prompt for development and/or incomplete code/drivers
    Processor type and features --->
    [*] MTRR (Memory Type Range Register) support
    Device Drivers --->
    Block devices --->
    <*> Loopback device support
    <*> RAM disk support
    (4096) Default RAM disk size
    [*] Initial RAM disk (initrd) support
    Graphics support --->
    [*] Support for frame buffer devices
    [*] VESA VGA graphics support
    Console display driver support --->
    [*] Video mode selection support
    <*> Framebuffer Console support
    Bootsplash configuration --->
    [*] Bootup splash screen

    新內核編譯并安裝以后,就已經支持 BootSplash,下面就可以安裝 BootSplash 的包和主題:
    CODE:
    apt-get install bootsplash bootsplash-theme-debian sysv-rc-bootsplash

    注意:安裝 sysv-rc-bootsplash 包時,要確定你的 sysv-rc 的包 2.86.ds1-1(stable) 版本的,如果是 testing 版本安裝可能會失敗。
    配置 bootsplash 時,他會讓你選擇 initrd 的位置,你就選擇你剛剛編譯并安裝好的那個 /boot/initrd.img-2.6.12-686 就可以了。
    然后是配置 grub:
    CODE:
    title Debian GNU/Linux, kernel 2.6.12-686 (silent)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.12-686 root=/dev/hda1 ro vga=791 splash=silent
    initrd /boot/initrd.img-2.6.12-686
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.12-686 (bootsplash)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.12-686 root=/dev/hda1 ro vga=791
    initrd /boot/initrd.img-2.6.12-686
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.12-686 (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.12-686 root=/dev/hda1 ro single
    initrd /boot/initrd.img-2.6.12-686.orig
    savedefault
    boot

    好了,現在選擇第一項 Debian GNU/Linux, kernel 2.6.12-686 (silent) ,將進入帶進度條動畫的啟動畫面,選第二項 Debian GNU/Linux, kernel 2.6.12-686 (bootsplash),將進入是漂亮的背景加啟動文字的啟動畫面了。
    安裝不困難,只不過編譯內核可能花的時間比較長一些,我編譯內核花了 1 個多小時。呵呵。
    下面是我編譯好的內核(奔4超線程處理器版本)以及相關的 NVidia (顯卡)模塊和 pwc (攝像頭)模塊:
    linux-image-2.6.12-p4_2.6.12-10_i386.deb
    nvidia-kernel-2.6.12-p4_1.0.7174-4+2.6.12-10_i386.deb
    pwc-modules-2.6.12-p4_10.0.7a-5+2.6.12-10_i386.deb
    如果你的顯卡支持特定的 framebuffer 驅動,你也可以不使用 vesafb,例如我的是 sis 顯卡,所以我用的 sisfb,如果要使用 sisfb,那在編譯內核是要把 sisfb 編譯到內核里去,而不要編譯成模塊。
    之后在加載內核時,用下面的方式來加載 sisfb:
    CODE:
    title Debian GNU/Linux, kernel 2.6.12-686 (silent)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.12-686 root=/dev/hda1 ro video=sisfb:mode:1024x768x16,rate:85,mem:32768 splash=silent
    initrd /boot/initrd.img-2.6.12-686
    savedefault
    boot

    這樣就可以將 framebuffer 下的控制臺改成 85Hz 的高刷新率了。
    下面是我編譯好的帶有 sisfb 的內核(奔4超線程處理器版本)以及 pwc (攝像頭)模塊:
    linux-image-2.6.12-sisfb-p4_2.6.12-10_i386.deb
    pwc-modules-2.6.12-sisfb-p4_10.0.9-1+2.6.12-10_i386.deb

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>