jinwyp / one_click_script

install latest or LTS linux kernel and enable BBR or BBR plus
MIT License
4.72k stars 1.41k forks source link

Linux Kernel 内核 和 Wireguard 安装问题请在此帖提出 #62

Open jinwyp opened 3 years ago

jinwyp commented 3 years ago

Linux Kernel 内核 和 Wireguard 安装问题请在此帖提出

Linux Kernel 内核 和 Wireguard 脚本安装方法

wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/install_kernel.sh && chmod +x ./install_kernel.sh && ./install_kernel.sh

切换IPV4优先后导致VPS无法访问网络 的解决方法

https://github.com/jinwyp/one_click_script/issues/68

mingcxb commented 3 years ago

协议不受支持 客户端和服务器不支持一般 SSL 协议版本或加密套件。

安装之后用chrome浏览器访问域名出现以上错误,用http是可以打开网页的。知道什么原因吗?

llity commented 2 years ago

有些问题,请查阅。 `状态显示-- Wireguard 已启动成功!

wgcf trace

/dev/fd/62: line 2630: wgcf: command not found

==================================================

================================================== 状态显示-- WARP 已启动成功!

状态显示-- WARP SOCKS5 代理启动失败!

curl -x 'socks5h://127.0.0.1:40000' https://www.cloudflare.com/cdn-cgi/trace

curl: (7) Failed connect to 127.0.0.1:40000; Connection refused`

llity commented 2 years ago

我发现v2ray和Trojan共存的情况下,只有Trojan能使用,怎么回事呢?谢谢

malikshi commented 2 years ago

sir can you add this patch? https://blog.cloudflare.com/optimizing-tcp-for-high-throughput-and-low-latency/

lomirus commented 1 year ago

执行 1. 安装linux内核 bbr plus, 安装WireGuard, 用于解锁 Netflix 限制和避免弹出 Google reCAPTCHA 人机验证 后,无法 ssh 连接至服务器。通过 VNC 连接后,执行以下命令:

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet6 xxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x0<global>
    inet6 xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
    ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
    RX packets 7595 bytes 719305 (702.4 KiB)
    RX errors 0 dropped 2225 overruns 0 frame 0
    TX packets 167 byes 35373 (34.5 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

io: ...(后面懒得打了,上面是手打的,因为是 vnc 连接 canvas 渲染,所以不能直接复制)
$ curl google.com
curl: (6) Could not resolve host: google.com
$ ping google.com
ping: google.com: Temporary failure in name resolution

不知道为什么貌似是无法连接到外网了

lionkingc commented 1 year ago

选69安装6.1,检测到最新是6.2.7 结果两个都安装不上

  1. 安装 BBR Plus 内核 6.1, UJX6N 编译 Please input number:69

    VPS服务器已成功设置为 IPv4 优先访问网络 UJX6N 编译的 最新的Linux bbrplus 内核版本号为 6.2.7

    开始手动安装 linux 内核, 不支持Centos6

    Last metadata expiration check: 0:43:51 ago on Sun Apr 2 10:57:59 2023. Package linux-firmware-20230217-113.git83f1d778.el8.noarch is already installed. Dependencies resolved. Nothing to do. Complete!

    准备从 UJX6N github 网站下载 bbrplus 6.1 的linux内核并安装 从 UJX6N 的 github 网站没有找到 Centos 8 的 6.1 Kernel

Just-Like commented 1 year ago

执行 1. 安装linux内核 bbr plus, 安装WireGuard, 用于解锁 Netflix 限制和避免弹出 Google reCAPTCHA 人机验证 后,无法 ssh 连接至服务器。通过 VNC 连接后,执行以下命令:

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet6 xxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x0<global>
    inet6 xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
    ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
    RX packets 7595 bytes 719305 (702.4 KiB)
    RX errors 0 dropped 2225 overruns 0 frame 0
    TX packets 167 byes 35373 (34.5 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

io: ...(后面懒得打了,上面是手打的,因为是 vnc 连接 canvas 渲染,所以不能直接复制)
$ curl google.com
curl: (6) Could not resolve host: google.com
$ ping google.com
ping: google.com: Temporary failure in name resolution

不知道为什么貌似是无法连接到外网了 Ubuntu 18.04 LTS 执行 bash <(curl -Lso- https://git.io/kernel.sh) 后选45 重启后服务器在线,ssh连不上了

Just-Like commented 1 year ago

执行 1. 安装linux内核 bbr plus, 安装WireGuard, 用于解锁 Netflix 限制和避免弹出 Google reCAPTCHA 人机验证 后,无法 ssh 连接至服务器。通过 VNC 连接后,执行以下命令:

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet6 xxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x0<global>
    inet6 xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
    ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
    RX packets 7595 bytes 719305 (702.4 KiB)
    RX errors 0 dropped 2225 overruns 0 frame 0
    TX packets 167 byes 35373 (34.5 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

io: ...(后面懒得打了,上面是手打的,因为是 vnc 连接 canvas 渲染,所以不能直接复制)
$ curl google.com
curl: (6) Could not resolve host: google.com
$ ping google.com
ping: google.com: Temporary failure in name resolution

不知道为什么貌似是无法连接到外网了 Ubuntu 18.04 LTS 执行 bash <(curl -Lso- https://git.io/kernel.sh) 后选45 重启后服务器在线,ssh连不上了

解决了 因为安装了两个不通版本的内核

leegyack commented 1 year ago

请问:在菜单11设置WGCF解锁Netfile,chatgpt等错误时,有没有可以不需要卸载重装而进行改正的方法呢,已经装好WGCF而且运行正常。

JAXo-China commented 12 months ago

debian11安装5.19内核失败,麻烦帮忙看看呢。

dpkg --get-selections | grep linux-image-5.19.0-0 | awk '/linux-image-[4-9]./{print $1}' | awk -F'linux-image-' '{print $2}'

Debian 官方源安装 linux 内核版本:

开始安装 linux-image 命令为: apt install -y linux-image- Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package linux-image

开始安装 linux-headers 命令为: apt install -y linux-headers- Reading package lists... Done Building dependency tree... Done Reading state information... Done Package 'linux-headers' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

liwenjie119 commented 7 months ago

安装内核时中间出现dracut报错,最后虽然已经安装上了,但是不知道是否有影响

==================================================
 开始安装 linux 内核版本: 6.7.4-bbrplus

error: open of CentOS-8_Required_kernel-bbrplus-core-6.7.4-1.bbrplus.el8.x86_64.rpm failed: No such file or directory
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-6.7.4-bbrplus.el8         ################################# [ 50%]
   2:kernel-headers-6.7.4-bbrplus.el8 ################################# [100%]
/etc/dracut.conf.d/cxthhhhh.conf:add_drivers+="virtio_blk virtio_scsi virtio_net xen-blkfront xen-netfront xenfs xen_privcmd hv_storvsc hv_vmbus hv_utils mptspi scsi_transport_spi mptscsih mptbase"

dracut: WARNING: <key>+=" <values> ": <values> should have surrounding white spaces!
dracut: WARNING: This will lead to unwanted side effects! Please fix the configuration file.

dracut-install: ERROR: installing 'xen_blkfront'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.aYoabA/initramfs --kerneldir /lib/modules/6.7.4-bbrplus.el8.x86_64/ -m virtio_blk virtio_scsi virtio_net xen_blkfront xen-netfront xenfs xen_privcmd hv_storvsc hv_vmbus hv_utils mptspi scsi_transport_spi mptscsih mptbase
 ==================================================

Generating grub configuration file ...
done

    查看当前 grub 菜单启动项列表, 确保新安装的内核 6.7.4-bbrplus 是否在第一项 

    查看当前 grub 启动顺序是否已设置为第一项 
grub2-editenv list
saved_entry=0
kernelopts=root=/dev/mapper/cl-root ro crashkernel=auto rd.lvm.lv=cl/root net.ifnames=0 biosdevname=0 
boot_success=0
 ==================================================

 ==================================================
    安装 linux 内核 6.7.4-bbrplus 成功! 
    请根据以下信息 检查新内核是否安装成功,无新内核不要重启! 
 ==================================================

 ==================================================
 状态显示--当前Linux 内核版本: 6.1 , 6.1.8-1.el8.elrepo.x86_64 
           当前系统内核高于4.9, 支持开启 BBR, BBR 已启动成功
           当前系统内核不支持开启 BBR2
           当前系统内核不支持开启 BBR Plus
 ==================================================

 ==================================================
 状态显示--当前已安装的 Linux 内核: 

kernel-6.7.4-bbrplus.el8.x86_64
kernel-ml-core-6.1.8-1.el8.elrepo.x86_64
kernel-ml-6.1.8-1.el8.elrepo.x86_64
kernel-headers-6.7.4-bbrplus.el8.x86_64
kernel-ml-modules-6.1.8-1.el8.elrepo.x86_64

 如安装内核遇到kernel kernel-headers kernel-devel版本不一致问题, 请手动卸载已安装的kernel
 卸载内核命令 rpm --nodeps -e kernel-xxx名称
 ==================================================

 开始准备删除 kernel 内核, 建议删除 
 注意: 删除内核有风险, 可能会导致VPS无法启动, 请先做好备份! 
是否删除内核? 直接回车默认删除内核, 请输入[Y/n]:^C
[root@server ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             973M     0  973M   0% /dev
tmpfs                990M  4.2M  986M   1% /dev/shm
tmpfs                990M   96M  895M  10% /run
tmpfs                990M     0  990M   0% /sys/fs/cgroup
/dev/mapper/cl-root   58G   16G   41G  28% /
/dev/vda1            974M  151M  756M  17% /boot
tmpfs                198M     0  198M   0% /run/user/0
lesszzen commented 6 months ago

发现xanmod 6.6默认启用bbr3,不用配置net.ipv4.tcp_congestion_control,但脚本会检测导致报错,不影响结果

wgetnz commented 4 months ago

Ubuntu 24.xLTS 貌似不支持bbrplus内核,多次安装失败,可能是内核版本过低