User-Profile-Image
hankin
  • 5
  • 首页
  • 分类
    • Windows
    • Web
    • VoIP
    • Virtualization
    • Trading
    • Smart Home
    • SEO
    • Security
    • Python
    • Program
    • PHP
    • OSX
    • OS
    • OpenSource
    • Nginx
    • MySQL
    • Mood
    • Linux
    • Life
    • Injection
    • Hosting
    • Finance
    • Exploits
    • CDN
  • 页面
    • About
  • 友链
    • 维酷科技
    • Tesra超算网络
Help?

Please contact us on our email for need any support

Support
  • 首页
    首页   ›   OS   ›   Linux   ›   正文
Linux

Linode新KVM架构VPS更换内核以安装锐速BBR等程序

2017-01-14 20:53:12
3179  0 0

安装Grub
安装过程中可能会询问安装位置,不需要安装到MBR

Arch Linux

pacman -S linux grub
CentOS 7

yum install kernel grub2
Debian

apt-get install linux-image-amd64 grub2
Fedora 22

dnf install kernel-core grub2
Ubuntu

apt-get install linux-image-virtual grub2
Gentoo

echo “GRUB_PLATFORMS=\”coreboot pc\”” >> /etc/portage/make.conf
emerge –ask sys-boot/grub sys-kernel/gentoo-sources genkernel
eselect kernel list
eselect kernel set [# of new kernel]
zcat /proc/config.gz > /usr/src/linux/.config
genkernel –oldconfig all
配置Grub

编辑/etc/default/grub,修改以下项目:

GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX=”console=ttyS0,19200n8″
GRUB_DISABLE_LINUX_UUID=true
GRUB_SERIAL_COMMAND=”serial –speed=19200 –unit=0 –word=8 –parity=no –stop=1″
GRUB_TERMINAL=serial
更新bootloader,更新内核后需要再一次运行该命令来更新GRUB目录,默认为列表第一个内核启动:

Arch Linux

grub-mkconfig -o /boot/grub/grub.cfg
Debian 8 & Ubuntu 15.04

update-grub
CentOS 7

mkdir /boot/grub
grub2-mkconfig -o /boot/grub/grub.cfg
Fedora 22 – Replace with the current kernel version

dracut /boot/initrd-4.0.5-300.fc22.x86_64.img 4.0.5-300.fc22.x86_64
mkdir /boot/grub
grub2-mkconfig -o /boot/grub/grub.cfg
Gentoo

mkdir /boot/grub
grub2-mkconfig -o /boot/grub/grub.cfg
重启到Grub2 模式

在LINODE面板选择编辑你的配置文件
Click on Edit under the Configuration Profiles section

在Boot Settings选项的Kernel列表里选择GRUB 2
In the Boot Settings section, select GRUB 2 from the Kernel drop down menu

点Save Changes保存,重启机子后就可以按通常方式更换发行版内核了。
启动中可能会出现以下错误,可以忽略。

error: file `/boot/grub/i386-pc/all_video.mod’ not found.
Loading Linux linux …
Loading initial ramdisk …

Press any key to continue…

评论 (0)

Click here to cancel reply.

欢迎您 游客  

    ProdigYu
    180文章 77评论 4点赞 571910浏览
    随机文章
    CentOS7\Ubuntu安装VMware Workstation 12
    9年前
    如何成为一名黑客
    15年前
    解决Mac终端连接SSH出现警告
    10年前
    20款开源的搜索引擎系统
    15年前
    Debian,CentOS临时更改网卡MTU值
    2年前
    Tags
    Apache CentOS CMD DDOS Debian DNS Docker FastCGI Google IIS IP iptables Linux Mac MySQL Nginx Opensource PHP Python Skill SSH Ubuntu Vim VMware VPN web.py Windows 删除 命令 命令提示符 安装 开源 技巧 插件 漏洞 百度 系统 组件 终端 缓存 网络电话 脚本 自建 详解 错误
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2025
    主页
    页面
    • About
    博主
    ProdigYu 管理员
    Something about myself
    180 文章 77 评论 571910 浏览
    测试
    测试