###修改DNS为公共nat64能同时支持V6和V4
echo -e "nameserver 2a00:1098:2b::1\nnameserver 2a01:4f9:c010:3f02::1" >> /etc/resolv.conf
echo -e "nameserver 2a01:4f8:c2c:123f::1\nnameserver 2a00:1098:2c::1" >> /etc/resolv.conf
echo -e "search blue.kundencontroller.de\noptions rotate\nnameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" >> /etc/resolv.conf###更新系统
sudo apt update && sudo apt upgrade -y && sudo apt-get install curl && sudo apt install wget
&& sudo apt install unzip && sudo apt install python3-pip && sudo apt install ufw &&
sudo apt autoclean && sudo sudo apt autoremove###安装nodejs
sudo apt install -y nodejs && sudo apt install -y npm1、删除apache
sudo apt-get --purge remove apache-common && sudo apt-get --purge remove apache
sudo apt remove —purge apache2 apache2-doc -y
sudo find /etc -name "*apache*" |xargs rm -rf && sudo rm -rf /var/www && sudo rm -rf /etc/libapache2-mod-jk && sudo rm -rf /etc/init.d/apache2 && sudo rm -rf /etc/apache2
sudo apt-get remove subversion && sudo apt-get remove libapache2-svn
sudo dpkg -l | grep apache
sudo dpkg -l | grep apache2
sudo apt-get --purge remove apache2
sudo apt-get --purge remove apache2.2-common
sudo apt-get --purge remove apache2-doc
sudo apt-get --purge remove apache2-utils
sudo apt-get autoremove
sudo find /etc -name "*apache*" |xargs rm -rf
sudo rm -rf /var/www
sudorm -rf /etc/libapache2-mod-jk
sudo dpkg -l |grep apache2|awk '{print $2}'|xargs dpkg -P安装 openssh-server:
sudo sudo apt-get install openssh-server确认sshserver是否启动:
sudo ps -e | grep ssh-(#0083ab:Centos安装neofetch:)- Github官网:https://github.com/dylanaraps/neofetch/wiki/Installation Linux开启原版BBR
sudo echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
sudo echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sudo sysctl -p && lsmod | grep bbrbench.sh 测速脚本 Github地址:https://github.com/teddysun/across
wget -qO- bench.sh | bash
或者 curl -Lso- bench.sh | bash
BestTrace 路由追踪
wget https://cdn.ipip.net/17mon/besttrace4linux.zip && unzip besttrace4linux.zip
chmod +x besttrace && ./besttrace 114.114.114.114流媒体解锁检测脚本 Github地址:https://github.com/sjlleo/netflix-verify
设置无日志模式
sudo sed -i 's/#Storage=auto/Storage=none/' /etc/systemd/journald.conf
更新debian12软件源
echo "#官方
deb http://cdn.debian.net/debian/ bookworm main non-free-firmware
deb-src http://cdn.debian.net/debian/ bookworm main non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware
#vc
deb http://cdn.debian.net/debian/ bookworm-updates main non-free-firmware
deb-src http://cdn.debian.net/debian/ bookworm-updates main non-free-firmware
deb http://deb.debian.org/debian/ bookworm main
deb-src http://deb.debian.org/debian/ bookworm main
deb http://security.debian.org/debian-security bookworm/updates main
deb-src http://security.debian.org/debian-security bookworm/updates main
deb http://deb.debian.org/debian/ bookworm-updates main
deb-src http://deb.debian.org/debian/ bookworm-updates main
#中科大
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security bookworm/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security bookworm/updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free" > /etc/apt/sources.list
sudo apt update && apt upgrade -ylinux魔法
1).https://github.com/juewuy/ShellClash/releases 2).https://github.com/Matsuridayo/nekoray/releases
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890