Arch 系的 linux 还真不好折腾 AUR 上的软件包有些都被 wall 了
只好自己摸索办法,让 yaourt 去走代理
看了 archwiki 知道了 yaourt 是默认支持 http_proxy 和 https_proxy 的
于是想到了借助 privoxy 来转发数据流给 ss 的办法
记录下 privoxy 的配置过程
首先安装 privoxy1
sudo pacman -S privoxy
配置 config 文件1
sudo kwrite /etc/privoxy/config
直接在最顶上新建一行,写上 ss 的本地代理地址1
forward-socks5 / 127.0.0.1:1288 .
然后保存退出,并启动 privoxy 服务1
sudo systemctl start privoxy.service
privoxy 的默认监听端口是 8118(可以在刚在的配置文件里面改 listen-address),所以直接配置 http_proxy 和 https_proxy 即可1
2export https_proxy=127.0.0.1:8118
export http_proxy=127.0.0.1:8118