zoukankan      html  css  js  c++  java
  • 装扮了一下兔兔(gentoo)

    想起init3下面难看的字符终端,就算加上zhcon,看到熟悉的中文,也未免太单调了。所以还是决定弄一个splash和终端背景。

    下面,秀一下我滴成果。

    不要以为我只玩vm滴,其实我这个VM server上的兔兔,是自己的机器做的stage4 :)
    嗷嗷。。。

    bootpic.jpg       bootsplash.JPG

    download   

    开始动工:
    1、编译内核
    cd linux
    make oldconfig
    make modules_prepare

    把以下各项编译进内核.不要编译成模块,也不要开启 nvidia 或 ATI 选项(我们只要有vesa就可以了).

    编译配置内核,使其支持gensplash,必要的选项如下:(引用了gentoo官方的:) ,其实如果你以前编译了这些模块,这回就表折腾内核了!)

    Required Kernel OptionsLinux Kernel Configuration: 2.6 - Required for Non-genkernel & Genkernel users alike

    Device Drivers>

    Graphics support:>

    [*] Support for frame buffer devices

     <*> VESA VGA graphics support

    VESA driver type (vesafb-tng) —>

    (HRESxVRES@FREQ) VESA default mode

    # Pick your resolution@freq # Ex: (1024×768@72)

    Device Drivers>

    Graphics support>

    Console display driver support:

    [*] Video mode selection support

    <*> Framebuffer Console support

    Device Drivers>

    Graphics support:

    [*] Support for the framebuffer splash

    Note: The VESA default mode is set as res-bpps@freq, eg. 1280×1024-16@60 (please confirm) Linux Kernel Configuration: If you want to load the initramfs image dynamically at boot — you probably do — enable RAM disk support as well. (Genkernel users must select this option.)

    Device Drivers>

    Block devices:

     <*> RAM disk support (4096) Default RAM disk size (kbytes) (NEW)

     [*] Initial RAM disk (initrd) support

    Linux Kernel Configuration: If any of these options don’t show up, make sure you didn’t select tileblitting support.

     Device Drivers > Graphics support:

    [ ] Enable Tile Blitting Support

     Linux Kernel Configuration: If you want to get the F2 key working to switch to verbose and silent, you need the option CONFIG_INPUT_EVDEV =y set. It is under Device Drivers > Input Device Support <*>Event Interface

    2、创建initramfs图片。
    自己修改了两幅图片(也不记得从哪里下载的了,可以搜索Gentoo-Blue-fbsplash)。

    emerge -va splashutils splash-themes-gentoo splash-themes-livecd -p
    发现系统里面有bootsplash,block了其他的包包,所以
    emerge –unmerge bootsplash
    emerge -va splashutils splash-themes-gentoo splash-themes-livecd
    emerge genkernel
    genkernel –gensplash=livecd-2006.1 initrd #这里,我已经替换了/etc/splash/livecd-2006.1里面的相关图片了(爱漂亮!没办法。)
    选择主题:
    splash_manager –theme=livecd-2006.1 –cmd=set –tty=1

    接下来就是修改/boot/grub/grub.conf配置文件了。
    title=Gentoo Linux 2.6.19 framebuffer
    root (hd0,0)
    kernel /vmlinuz splash=silent,fadein,theme:livecd-2006.1 video=vesafb:1024×768-16@60,mtrr,ywrap CONSOLE=/dev/tty1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
    initrd /initramfs-genkernel-x86-2.6.19-gentoo-r1

    不出意外,你一reboot敲下去,重启就可以看到漂亮的splash画面了。

  • 相关阅读:
    Ubuntu深度学习环境搭建 tensorflow+pytorch
    FineReport调用存储过程
    简单实现固定表格的上表头、左表头
    为什么vertical-align不起作用
    纪录我的iOS学习之路
    【原】使用Bmob作为iOS后台开发心得——云端代码添加其他User的Relation关系
    【原】使用Bmob作为iOS后台开发心得——查询关联关系(BmobRelation)
    【译】Unity3D Shader 新手教程(6/6) —— 更好的卡通Shader
    【译】Unity3D Shader 新手教程(5/6) —— Bumped Diffuse Shader
    【译】Unity3D Shader 新手教程(4/6) —— 卡通shader(入门版)
  • 原文地址:https://www.cnblogs.com/huqingyu/p/671161.html
Copyright © 2011-2022 走看看