科学上网教程

Github

安装:

1
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/main/install.sh" && chmod +x install.sh && bash install.sh

查看配置:

1
~/install.sh

Github

安装:

1
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

查看配置:

1
x-ui

Github

Github

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# global proxy
vim ~/.zshrc
# export __host_ip=$(cat /etc/resolv.conf | grep -oP '(?<=nameserver\ ).*')
# export __proxy_1=socks://$__host_ip:10808
# export __proxy_2=http://$__host_ip:10809
# export http_proxy=$__proxy_2
# export HTTP_PROXY=$__proxy_2
# export https_proxy=$__proxy_2
# export HTTPS_PROXY=$__proxy_2
# export all_proxy=$__proxy_2
# export ALL_PROXY=$__proxy_2
source ~/.zshrc

# snap proxy
sudo snap set system proxy.http=$__proxy_2
sudo snap set system proxy.https=$__proxy_2
  1. 在 WSL 2 中访问主机代理 - Geek 成长录
  2. WSL2内使用windows的v2ray代理配置方式。 - 知乎