DD系统(重装系统)

apt install wget -y && apt install openssl screen -y
screen -S DD
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -a -p "自定义密码"

重装系统,注意自定义密码不建议使用特殊符号,容易导致识别错误。

BBR:

apt install wget -y && wget -N --no-check-certificate "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

执行完毕后选择1升级内核,弹出提示后使用键盘选择No,卸载内核。注意,建议新装系统完毕后,保持系统纯净,第一步先执行BBR的安装,后续再进行其他操作。确认内核版本无误后输入reboot重启

reboot

重启后再次执行脚本,选择12,安装加速模块,然后第三次执行脚本,选择21优化设置项,优化完成后输入y,系统自动重启。

bash tcp.sh

DDNS:

mkdir ./ddns
cd ./ddns
wget https://github.com/jeessy2/ddns-go/releases/download/v3.4.1/ddns-go_3.4.1_Linux_arm64.tar.gz
tar -xzvf ./ddns-go_3.4.1_Linux_arm64.tar.gz
chmod +x ./ddns-go
mv ./ddns-go /usr/bin
cd ..
rm -rf ./ddns
ddns-go -s install

设置密钥登录:

rm -rf /home/*
rm -rf /root/.ssh
mkdir /root/.ssh
echo '公钥内容' >/root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
sed -i "s/^PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config
sed -i "s/^#PubkeyAuthentication.*/PubkeyAuthentication yes/g" /etc/ssh/sshd_config
service sshd restart
logout

用生成的密钥对中的公钥内容替换进文本,执行后VPS即可使用私钥登录

将文件夹打包成*.tar.gz格式

tar -zcvf 文件名.tar.gz ./目录名

解压*.tar.gz格式压缩包

tar -zxvf 文件名.tar.gz

一键流媒体检测

bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

设置时区

dpkg-reconfigure tzdata

甲骨文开启自动获取IPV6

sed -i '/iface enp0s3 inet static/i\iface enp0s3 inet6 dhcp' /etc/network/interfaces && ifdown enp0s3 && ifup enp0s3

甲骨文重新扫描磁盘(调整磁盘大小后)

sudo dd iflag=direct if=/dev/oracleoci/oraclevda of=/dev/null count=1
echo "1" | sudo tee /sys/class/block/`readlink /dev/oracleoci/oraclevda | cut -d'/' -f 2`/device/rescan

更改DNS

wget -N --no-check-certificate https://raw.githubusercontent.com/JasonHe/dnschange/main/dns-change.sh && chmod +x dns-change.sh && ./dns-change.sh 8.8.8.8 8.8.4.4

ServerStatus-Hotaru 探针

wget https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/status.sh
// 服务端:
bash status.sh s
// 客户端:
bash status.sh c

甲骨文linux挂载存储卷

apt install -y open-iscsi
iscsiadm -m node -o new -T iqn.20xx-xx.com.oracleiaas:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx -p xxx.xxx.xxx.xxx:xxxx
iscsiadm -m node -o update -T iqn.20xx-xx.com.oracleiaas:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx -n node.startup -v automatic
iscsiadm -m node -T iqn.20xx-xx.com.oracleiaas:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx -p xxx.xxx.xxx.xxx:xxxx -l
mkdir /mnt/block1
echo "/dev/sdb1 /mnt/block1 exfat _netdev 0 0" >> /etc/fstab

检测25端口是否开放

apt install telnet -y && telnet smtp.aol.com 25

ready结尾的反馈就是通了,如果try很长,time out的就是不通

go-lang一键安装脚本(不要使用apt intall golang,版本太旧了)

wget -q -O - https://git.io/vQhTU | bash