Linux使用技巧

一、Windows的 Linux子系统科学上网 https://segmentfault.com/a/1190000015913747

1.安装python-pip

  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.com/gfwlist/gfwlist/master/gfwlist.txt"

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

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 

你可能感兴趣的:(Linux使用技巧)