clash下载
1
| https://docs.gtk.pw/contents/linux/linux-clash-gui.html#%E4%B8%8B%E8%BD%BD
|
启动
root打开报错所以加上 –no-sandbox

apt配置
1
| sudo nano /etc/apt/apt.conf.d/proxy.conf
|
最后一行添加
1 2
| Acquire::http::Proxy "http://127.0.0.1:9090"; Acquire::https::Proxy "http://127.0.0.1:9090";
|
环境变量配置
查看主机shell

1 2
| export http_proxy="http://127.0.0.1:9090" export https_proxy="http://127.0.0.1:9090"
|
验证
1 2
| echo $http_proxy echo $https_proxy
|
验证apt代理
监听
1
| sudo tcpdump -i any port 9090
|
另外打开窗口输入命令
1 2
| sudo apt update sudo apt upgrade -y
|

wsl设置代理
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| nano ~/.bashrc export ALL_PROXY=http://192.168.0.104:7890 export http_proxy=http://192.168.0.104:7890 export https_proxy=http://192.168.0.104:7890 export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:$HOME/go/bin source ~/.bashrc
设置go的环境变量 、go安装在usr/local、go安装软件在/home/go/bin下面
验证 curl https://ifconfig.me curl cip.cc
|
go下载
1
| wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
|
浏览器走代理
下载谷歌浏览器
1
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
1
| sudo dpkg -i google-chrome-stable_current_amd64.deb
|
如果报错 修复依赖
1
| sudo apt --fix-broken install
|
打开谷歌 普通管理员可以去掉–no-sandbox
1
| google-chrome --no-sandbox
|
谷歌扩展配置

