一、前期准备
1.本文使用的一键DD脚本作者:天下无鱼
2.本文使用的一键切换内核脚本作者:ylx2016
3.推荐的一键V2ray脚本:wulabing(可能会与宝塔冲突,需要共存请使用官方脚本并自行配置)
二、一键DD
1.使用方法
#无论什么时候安装养成良好习惯,更新下源
(centos):yum update
(debian/ubuntu):sudo apt-get update
#更新会提示你is that OK?(y/n),记得选择y
#安装下wget
(centos):sudo yum -y install wget
(debian/ubuntu):sudo apt-get install wget
##镜像文件在OneDrive(推荐)
wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-od.sh && chmod +x dd-od.sh && ./dd-od.sh
##镜像文件在GoogleDrive
wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-gd.sh && chmod +x dd-gd.sh && ./dd-gd.sh
2.功能介绍
执行上述脚本后提示如下:
https://raw.githubusercontent.com/veip007/dd/master/dd-od.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.108.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6026 (5.9K) [text/plain]
Saving to: ‘dd-od.sh’
dd-od.sh 100%[=======================================>] 5.88K --.-KB/s in 0s
Last-modified header missing -- time-stamps turned off.
2020-07-29 06:39:37 (70.1 MB/s) - ‘dd-od.sh’ saved [6026/6026]
###########################################################
# #
# Auto DD #
# #
# Last Modified: 2019-12-05 #
# Linux默认密码:MoeClub.org or cxthhhhh.com #
# Supported by MoeClub #
# #
###########################################################
IP: 172.xx.xxx.51
网关: 172.xx.xxx.253
网络掩码: 255.xxx.xxx.0
请选择您需要的镜像包:
1) CentOS 7 (DD) 用户名:root 密码:Pwd@CentOS
2) CentOS 6 (阿里云镜像) 用户名:root 密码:MoeClub.org
3) CentOS 6 用户名:root 密码:MoeClub.org
4) Debian 7 x32 用户名:root 密码:MoeClub.org
5) Debian 8 x64 用户名:root 密码:MoeClub.org
6) Debian 9 x64 用户名:root 密码:MoeClub.org
7) Debian 10 x64 用户名:root 密码:cxthhhhh.com
8) Ubuntu 14.04x64 用户名:root 密码:MoeClub.org
9) Ubuntu 16.04x64 用户名:root 密码:MoeClub.org
10) Ubuntu 18.04x64 用户名:root 密码:MoeClub.org
11) 萌咖Win7x64 用户名:Administrator 密码:Vicer
12) Win2019 By:MeowLove 密码:cxthhhhh.com
13) Win2016 By:MeowLove 密码:cxthhhhh.com
14) Win2012 R2 By:MeowLove 密码:cxthhhhh.com
15) Win2008 R2 By:MeowLove 密码:cxthhhhh.com
16) Windows 7 Vienna By:MeowLove 密码:cxthhhhh.com
17) Windows 2003 Vienna By:MeowLove 密码:cxthhhhh.com
18) Win7x32 By:老司机 用户名:Administrator 密码:Windows7x86-Chinese
19) Win-2003x32 By:老司机 用户名:Administrator 密码:WinSrv2003x86-Chinese
20) Win2008x64 By:老司机 用户名:Administrator 密码:WinSrv2008x64-Chinese
21) Win2012R2x64 By:老司机 用户名:Administrator 密码:WinSrv2012r2
22) CentOS 8 用户名:root 密码:cxthhhhh.com 推荐512M以上使用
自定义安装请使用:bash InstallNET.sh -dd '您的直连'
之后选择你想安装系统对应的编号。
搭建魔法上网工具推荐使用Debian9,其他使用centos7。
安装过程中,ssh会自动断开,一般等待10分钟左右即可完成。
三、后续操作
1.安装根证书
#CentOS系统
yum install -y ca-certificates
#Debian/Ubuntu系统
apt-get install -y ca-certificates
2.修改时区
#时区不同会影响crontab定时任务等,因此推荐大家修改时区为上海。
#第一步:查看服务器的时间
date
#第二步:查看当前时间状态
timedatectl status
#第三步:修改时区,改成上海时间
timedatectl set-timezone "Asia/Shanghai"
#第四步:重启服务器
reboot
3.安装加速内核
不卸载内核版本
wget -N "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
卸载内核版本(推荐)
wget -N "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
支持 Focal Ubuntu 20.04 的一键重装脚本
from https://www.hostloc.com/thread-696865-1-1.html
wget https://github.000060000.xyz/InstallNET.sh && chmod a+x InstallNET.sh && bash InstallNET.sh -u focal -v 64 -a
运行脚本后提示如下:
TCP加速 一键安装管理脚本 [v1.3.2.38]
更新内容及反馈: https://blog.ylx.me/archives/783.html 运行./tcp.sh再次调用本脚本 母鸡慎用
0. 升级脚本
9. 切换到不卸载内核版本
8. 切换到秋水逸冰BBR安装脚本
————————————内核管理————————————
1. 安装 BBR原版内核 - 5.6.15/5.7.7
2. 安装 BBRplus版内核 - 4.14.129
3. 安装 Lotserver(锐速)内核 - 多种
4. 安装 xanmod版内核 - 5.5.1/5.7.7
5. 安装 BBR2测试版内核 - 5.4.0
6. 安装 Zen版内核 - 5.5.2/5.5.10
7. 安装 BBRplus新版内核 - 4.14.182
————————————加速管理————————————
11. 使用BBR+FQ加速
12. 使用BBR+CAKE加速
13. 使用BBRplus+FQ版加速
14. 使用Lotserver(锐速)加速
15. 使用BBR2+FQ加速
16. 使用BBR2+CAKE加速
17. 使用BBR2+FQ+ECN加速
18. 使用BBR2+CAKE+ECN加速
————————————杂项管理————————————
21. 卸载全部加速
22. 系统配置优化
23. 退出脚本
————————————————————————————————
当前内核为:4.9.0-12-amd64
当前状态: 已安装 Lotserver 加速内核 , 未安装加速模块
当前拥塞控制算法为: cubic 当前队列算法为: pfifo_fast
请输入数字 :
推荐BBRPlus+FQ加速:
先输入2安装内核,过程中回车到底。
安装完成自动重启后,输入./tcp.sh运行脚本,再输入13安装模块。
最后输入./tcp.sh运行脚本,再输入22优化,等待自动重启完成即可。
4.宝塔及宝塔的安装配置
1.只安装v2ray(wulabing一键脚本)
#准备一个域名,并将A记录添加好。
#V2ray官方说明,了解 TLS WebSocket 及 V2ray 相关信息
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh" && chmod +x install.sh && bash install.sh
发表评论