Home How to setup clash in linux
Post
Cancel

How to setup clash in linux

Setup clash

Download clash

1
wget -O clash.gz https://github.com/Dreamacro/clash/releases/download/v1.16.0/clash-linux-amd64-v1.16.0.gz

Unzip clash

1
gzip -f clash.gz -d

make it executable

1
chmod +x clash

init clash

1
./clash

it will generate a config file named config.yaml in ~/.config/clash/ directory

close clash

Press Ctrl + C to close clash

modify config file

1
wget -U "Mozilla/6.0" -O ~/.config/clash/config.yaml  你的Clash订阅链接网址

start clash

1
./clash

set proxy

open a new terminal

1
2
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890

verify proxy in use

make a get request before and after set proxy

1
curl https://httpbin.org/ip

References

This post is licensed under CC BY 4.0 by the author.

How to modify path environment variable in fish shell

How to use tar and gzip