微慑信息网

ubuntu一键更换内核 安装锐速 - 16.04 14.04可用

最近发现还是锐速加速效果明显 这里给一个自动换内核装锐速的脚本

ubuntu16.04 ubuntu14.04 测试可用(测试机包括linode aws等)

直接放一键脚本

wget xiaofd.github.io/ruisu.sh && bash ruisu.sh

注意:

安装完会自动重启 正常现象 重启后就安装好了锐速,可以使用ps aux | grep appex来检测是否运行

如果锐速没有自动安装可以使用/appex/appexinstall.sh来安装

没有任何多余的判断,非ubuntu16.04和ubuntu14.04请勿运行

锐速使用 Vicer大佬 的 moeclub.org 给出的 lotserver 一键包

ruisu.sh

#!/bin/bash

# Ubuntu/14.04/3.16.0-43-generic/x64
# Ubuntu/16.04/4.4.0-47-generic/x64

[ -n "`cat /etc/issue | grep "Ubuntu 16.04"`" ] && echo "Ubuntu 16.04" && KER_VER="4.4.0-47-generic"
[ -n "`cat /etc/issue | grep "Ubuntu 14.04"`" ] && echo "Ubuntu 14.04" && KER_VER="3.16.0-43-generic"

cp /etc/default/grub /etc/default/grub.old
sed -ir "s/GRUB_DEFAULT=.*/GRUB_DEFAULT=\"Advanced options for Ubuntu>Ubuntu, with Linux $KER_VER\"/g" /etc/default/grub
# update-grub
apt-get update
apt-get install -y linux-image-extra-$KER_VER
# reboot

mkdir -p /appex
cat > /appex/appexinstall.sh << TEMPEOF
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh" && bash /tmp/appex.sh 'install' << EOF

EOF
cp /etc/rc.local.old.ruisu /etc/rc.local 
rm /etc/rc.local.old.ruisu
TEMPEOF

# bash /appex/appexinstall.sh 
# ps aux | grep appex


if [ ! -f "/etc/rc.local.old.ruisu" ]; then
    echo "first time run this script, backup the rc.local"
    cp /etc/rc.local /etc/rc.local.old.ruisu
fi
# cp /etc/rc.local /etc/rc.local.old.ruisu
sed -i '$d' /etc/rc.local
echo "bash /appex/appexinstall.sh" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
chmod 0755 /etc/rc.local
reboot

 

作者:YouR丶Beautiful
链接:https://www.jianshu.com/p/19ab389820ef

赞(0) 打赏
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » ubuntu一键更换内核 安装锐速 - 16.04 14.04可用

评论 抢沙发

微慑信息网 专注工匠精神

微慑信息网-VulSee.com-关注前沿安全态势,聚合网络安全漏洞信息,分享安全文档案例

访问我们联系我们

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

登录

找回密码

注册