作家
登录

LKU:一套在Ubuntu/LinuxMint上编译、安装和更新最新内核的Shell脚本

作者: 来源: 2017-08-02 15:05:50 阅读 我要评论

 a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. 
  • Found linux image: /boot/vmlinuz-4.11.3-041103-generic 
  • Found initrd image: /boot/initrd.img-4.11.3-041103-generic 
  • Found linux image: /boot/vmlinuz-4.4.10-040410-generic 
  • Found initrd image: /boot/initrd.img-4.4.10-040410-generic 
  • Found linux image: /boot/vmlinuz-4.4.9-040409-lowlatency 
  • Found initrd image: /boot/initrd.img-4.4.9-040409-lowlatency 
  • Found linux image: /boot/vmlinuz-4.4.0-21-generic 
  • Found initrd image: /boot/initrd.img-4.4.0-21-generic 
  • Found memtest86+ image: /boot/memtest86+.elf 
  • Found memtest86+ image: /boot/memtest86+.bin 
  • done 
  •  \_ Done 
  • 安装后须要从新启动以应用新安装的内核。

    1. $ sudo reboot now 

    如今,你正在应用的就是最新版本 4.11.3-041103-generic 的内核。

    1. $ uname -a 
    2. Linux magi-VirtualBox 4.11.3-041103-generic #201705251233 SMP Thu May 25 16:34:52 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 

    它可以删除或清除所有非晃荡的内核,并且不会为了安然目标留下备份的内核。强烈建议在履行此脚本之前从新启动一次。

    • compile_linux_kernel.sh :用户可以大年夜 kernel.org 编译和安装所需的或最新的内核
    • update_ubuntu_kernel.sh :用户可以大年夜 kernel.ubuntu.com 安装并更新所需或最新的预编译 Ubuntu 内核
    • remove_old_kernels.sh :这将删除或清除所有非晃荡内核,并且只保存当前加载的版本

    只须要运行 remove_old_kernels.sh shell 脚本即可删除或清除所有非晃荡状况的内核。

    1. $ ./remove_old_kernels.sh 
    2.         ++++++++++++++++++++++++++++++++ 
    3.         +++       W A R N I N G      +++ 
    4.         ++++++++++++++++++++++++++++++++ 
    5. A reboot is recommended before running this script to ensure the current kernel tagged 
    6. as the boot kernel is indeed registered and old kernels properly marked for removal. 
    7. If you have just installed or modified your existing kernel and do not reboot before 
    8. running this script it may render you system INOPERABLE and that would indeed suck. 
    9. You have been warned. 
    10. ~the Mgmt 
    11. [?]Continue to automagically remove ALL old kernels? (y/N)y 
    12. \_ Removing ALL old kernels . . . 
    13. [sudo] password for magi: 

        推荐阅读

        “互联网+政务服务”首创“德州经验”

      8月1日,德州市举办“互联网+政务办事”消息宣布会,介绍推动“互联网+政务办事”情况。德州市以用户为中间进行需求侧改革,市平易近和企业可经由过程互联网登录政务>>>详细阅读


      本文标题:LKU:一套在Ubuntu/LinuxMint上编译、安装和更新最新内核的Shell脚本

      地址:http://www.17bianji.com/lsqh/36508.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)