admin管理员组

文章数量:1539849

Windows 10里的WSL Ubuntu 怎么使用Windows系统的 SS 代理? 

 

1. 安装python pip 

sudo apt install python-pip

2. 升级pip 

pip install --upgrade pip

3. 安装genpac 工具 

pip install genpac

4. 生成配置 (这一步不需要,如果配置失败再试这一步)

genpac --proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac --gfwlist-url="https://raw.githubusercontent/gfwlist/gfwlist/master/gfwlist.txt"

5. 编辑 /etc/profile 在文件最后添加(具体端口配置和ss 客户端保持一致)

sudo nano /etc/profile
export http_proxy=http://127.0.0.1:1080
export https_proxy=http://127.0.0.1:1080
export ftp_proxy=http://127.0.0.1:1080

6. 让配置生效

source /etc/profile

 

本文标签: 系统WindowsWSLSSUbuntu