nothingnothingnothingnothingnothing

要有勇气去改变可以改变的事,要有胸怀去接受不可改变的事,更要有智慧去分别两者的区别!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  • 在任何一个子目录下 untar 解开新的内核源程序。
    tar xvfz linux-x.x.xx
  • rm /usr/src/linux
    这通常是一个符号连接。
  • 在 /usr/src/ 下建立一个符号连接到你的新内核目录。
    ln -s xxx/yyy/xxx/linux.x.x.xx /usr/src/linux
  • 将当前目录变成 /usr/src/linux
    cd /usr/src/linux
  • 变成超级用户
    su
  • 配置内核
    如果你在 X window 下并且希望有图形界面,你就说:
    make xconfig
    如果你不在 X Window 下或不想使用图形界面,你就说:
    make config
    逐个回答完问题后稍等片刻,等提示符出现或图形界面消失,系统就配置好了。
  • 生成新内核,你说:
    make dep ; make clean
    make zImage
    注意大小写一定要搞对!
  • 如果你用了模块,你还需要生成和安装模块
    make modules
    make modules-install
  • 察看你的 /etc/lilo.conf 看用的是那个目录的那个文件作为
    image。例如:image = /boot/vmlinuz
    将 /usr/src/linux/System.map 复制到 /boot 目录中,将 /usr/src/linux/arch/i386/boot/zImage 复制到 /boot 目录中并改名为 vmlinuz
  • 安装新内核并重新起动。
    lilo
    shutdown -r now
  • posted on 2005-12-22 23:17  nothingnothingnothingnothingnothingnothingnothingnothing  阅读(138)  评论(0编辑  收藏  举报