vps初始脚本

cloudflare 端口

Cloudflare支持的 HTTP 端口为: 80 8080 8880 2052 2082 2086 2095

Cloudflare 支持的 HTTPs 端口为: 443 2053 2083 2087 2096 8443

#ROOT操作 sudo su #处理预设规则 iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited /etc/init.d/netfilter-persistent save /etc/init.d/netfilter-persistent reload #截至此处全部端口开放 #无防火墙需求不用继续 #添加自定义规则 ufw enable #需要输入Y确认 ufw allow 22/tcp #开放22/tcp端口 ufw allow 80,443/tcp #开放80/tcp和443/tcp端口 ufw allow 1234/udp #开放1234/udp端口 ufw reload #重载防火墙

sudo vim /etc/netplan/01-network-manager-all.yml


sudo netplan apply

一键docker

curl -fsSL https://get.docker.com -o get-docker.sh

sh get-docker.sh


docker run -dit -v /ql/config:/ql/config  -v /ql/log:/ql/log -v /ql/db:/ql/db -v /ql/jbot:/ql/jbot -v /ql/repo:/ql/repo -v /ql/raw:/ql/raw -v /ql/scripts:/ql/scripts -p 5700:5700 --restart always whyour/qinglong:2.11.2

 

wireguard

docker run -d   --name=wg-easy  -e WG_HOST=域名地址 -e PASSWORD=passwd123  -e WG_DEFAULT_ADDRESS=10.0.8.x  -e WG_DEFAULT_DNS=114.114.114.114,233.5.5.5  -e WG_ALLOWED_IPS=10.0.8.0/24 -e WG_PERSISTENT_KEEPALIVE=25  -v ~/.wg-easy:/etc/wireguard   -p 51820:51820/udp   -p 51821:51821/tcp  --cap-add=NET_ADMIN   --cap-add=SYS_MODULE   --sysctl="net.ipv4.conf.all.src_valid_mark=1"   --sysctl="net.ipv4.ip_forward=1"   --restart unless-stopped  weejewel/wg-easy

http://域名地址:51821


kcptun

apt install shadowsocks-libev kcptun vim -y

vim /etc/shadowsocks-libev/config.json

systemctl enable shadowsocks-libev

vim /usr/lib/systemd/system/kcptun.service

[Unit]
Description=kcptun-server Service
After=network.target
Wants=network.target

[Service]
Type=simple
PIDFile=/var/run/kcp-server.pid
# 重要的就是下面的这句话
ExecStart=kcptun-server -t "127.0.0.1:8388" -l ":9999" -mode fast -key 11122233
Restart=on-abnormal

[Install]
WantedBy=multi-user.target

一键gfw

bash <(curl -Ls https://raw.githubusercontent.com/yonggekkk/x-ui-yg/main/install.sh)

一键youtube-dl

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

sudo chmod a+rx /usr/local/bin/youtube-dl

         nohup youtube-dl -i -f best -o "/wa5/qf/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=UUHUDK2djkxpz0QdlNcPlPAQ& >/dev/null

rclone 

         curl https://rclone.org/install.sh | sudo bash

        rclone config

         nohup rclone mount --allow-non-empty  one: /one&

command=" mount one: /one  --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000"

cat > /etc/systemd/system/rclone.service <<EOF
[Unit]
Description=Rclone
After=network-online.target

[Service]
Type=simple
ExecStart=$(command -v rclone) ${command}
Restart=on-abort
User=root

[Install]
WantedBy=default.target
EOF



nohup yt-dlp -i -f best -o "/one/qf/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=UUHUDK2djkxpz0QdlNcPlPAQ& >/dev/null

 nohup yt-dlp -i -f best -o "/one/初中数学/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLFdR0ixZaB5tIjEXkP7koGltHdXvngeZa& >/dev/null

nohup yt-dlp -i -f best -o "/one/小学数学/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PL9KZyY7FuxWj34iJnnLZPEV7XhglQ9CV-& >/dev/null

nohup yt-dlp -i -f best -o "/one/新概念1/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PL4ga-YNlxRRwYz3OeLaMtUucHfQze_HZf& >/dev/null

nohup yt-dlp -i -f best -o "/one/新概念2/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PL5YAbMpT3Nh3k4XoR6u_r1bhr_Vg00QyQ& >/dev/null

nohup yt-dlp -i -f best -o "/one/新概念3/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLK6q4vrvWZiOxz8hkNkkCep9QAqpg2tcx& >/dev/null

nohup yt-dlp -i -f best -o "/one/新概念4/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PL0mH-8xA1kQs81JkBm0RELDXpqy9anw0W& >/dev/null

nohup yt-dlp -i -f best -o "/one/老高與小茉/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=UUMUnInmOkrWN4gof9KlhNmQ& >/dev/null

nohup yt-dlp -i -f best -o "/one/李永乐老师/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=UUSs4A6HYKmHA2MG_0z-F0xw& >/dev/null

nohup yt-dlp -i -f best -o "/one/回形针/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=UUUGJ-yKqQHl4FSZwUmGpiUg& >/dev/null

nohup yt-dlp -i -f best -o "/one/1-9年级最全学而思英语语法教学视频/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLFdR0ixZaB5tFj36FCZNk3qvC0CVvrg8d& >/dev/null

nohup yt-dlp -i -f best -o "/one/《小学数学》最全小学奥数1-6年级全套/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PL9KZyY7FuxWj34iJnnLZPEV7XhglQ9CV-& >/dev/null

nohup yt-dlp -i -f best -o "/one/学而时习之初中版-无广告/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=UUPuIma-TKjYUD_k__SNzv9Q& >/dev/null

nohup yt-dlp -i -f best -o "/one/学而时习之主站-无广告/%(title)s.%(ext)s" https://www.youtube.com/playlist?list=UUmp6YD1yhgxmz_Zdy74VGFw& >/dev/null

一键aa

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh 66959f96


一键aria2

apt install wget curl ca-certificates
wget -N git.io/aria2.sh && chmod +x aria2.sh
./aria2.sh
wine+RDP
wget  -qO ~/Linux-Remote-Desktop-Environment.sh 'http://tools.laobuluo.com/scripts/Linux-Remote-Desktop-Environment.sh' && chmod a+x ~/Linux-Remote-Desktop-Environment.sh
(CentOS 7+)			bash ~/Linux-Remote-Desktop-Environment.sh -CentOS
(Debian 9+)			bash ~/Linux-Remote-Desktop-Environment.sh -Debian
(Ubuntu 18.04+)			bash ~/Linux-Remote-Desktop-Environment.sh -Ubuntu

评论

  1. bash <(curl -Ls https://raw.githubusercontent.com/yonggekkk/x-ui-yg/main/install.sh)

    回复删除

发表评论

此博客中的热门博文

有关资金出海

warp+openclash

aa+rc+aria2