wget -O upgrade.sh 'https://gist.github.com/Bonveio/bb40b778b33ef06868c14c0240f25967/raw/upgrade.sh'
- Debian 10 to 11
bash upgrade.sh 11 - Debian 11 to 12
bash upgrade.sh 12 - Debian 12 to 13
bash upgrade.sh 13
| #!/bin/bash | |
| # How to create downloadable OpenVPN configs using apache | |
| # Dedicated for Angristan's OpenVPN Installer users | |
| # Angristan's script can be found here: https://github.com/Angristan/openvpn-install | |
| # ©BonvScripts | |
| # For Debian 9/10, Ubuntu 16/18 and CentOS 7 | |
| # This is surely working for Apache 2.4 | |
| # Tested on my Debian 9.11 Singapore VPS | |
| # Textes that starts without # or comments are commands to be run at your terminal | |
| # You must be installed with angristan's script or any script/s that can reproduce .ovpn config in /root directory |
| # Copyright (c) BonvScripts | |
| # Author: Bonveio Abitona | |
| RouteConf='/home/panel/html/config/route.php' | |
| RegisterPHP='/home/panel/html/controller/register.php' | |
| RegisterHTML='/home/panel/html/view/register.html' | |
| if [[ "$(grep -c 'register' ${RouteConf})" -gt 1 ]]; then | |
| sed -i "/^.*\/register.*$/d" "${RouteConf}" | |
| fi |
| { | |
| "log": { | |
| "access": "/var/log/v2ray/access.log", | |
| "error": "/var/log/v2ray/error.log", | |
| "loglevel": "warning" | |
| }, | |
| "inbounds": [{ | |
| "port": 10035, | |
| "listen": "127.0.0.1", | |
| "protocol": "vmess", |
| --- kex.c 2021-08-20 12:03:49.000000000 +0800 | |
| +++ kex.c 2021-08-21 12:03:49.000000000 +0800 | |
| @@ -1293,9 +1293,2 @@ | |
| } | |
| - /* Do not accept lines before the SSH ident from a client */ | |
| - if (ssh->kex->server) { | |
| - error_f("client sent invalid protocol identifier " | |
| - "\"%.256s\"", cp); | |
| - free(cp); | |
| - goto invalid; |
| --- src/openvpn/socket.c 2021-10-04 19:01:33.000000000 +0800 | |
| +++ src/openvpn/socket.c 2021-10-05 19:01:33.000000000 +0800 | |
| @@ -2778,8 +2777,0 @@ | |
| - | |
| - if (sb->len < 1 || sb->len > sb->maxlen) | |
| - { | |
| - msg(M_WARN, "WARNING: Bad encapsulated packet length from peer (%d), which must be > 0 and <= %d -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]", sb->len, sb->maxlen); | |
| - stream_buf_reset(sb); | |
| - sb->error = true; | |
| - return false; |
| --- scripts/kconfig/lxdialog/Makefile 2024-08-30 00:00:00.877509501 +0800 | |
| +++ scripts/kconfig/lxdialog/Makefile 2024-08-30 00:00:00.806515827 +0800 | |
| @@ -12,7 +12,7 @@ | |
| PHONY += dochecklxdialog | |
| $(obj)/dochecklxdialog: | |
| - $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) | |
| + $(shell $(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES)) | |
| hostprogs-y := lxdialog |
1. Download and Prepare ISO
archlinux.iso → "Boot in normal mode."root@droplet:~# cat /etc/apt/sources.list.d/debian.sources
Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian.list
#Suites: bookworm bookworm-updates bookworm-backports
Suites: trixie trixie-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb deb-src
Requirements
Note
Go to Settings > Additional settings > Developer options > Disable permission monitoring
for WRITE_SECURE_SETTINGS error fix