Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binwenwu/clash-for-linux
💻 How to configure system agents for Linux systems, suitable for CentOS / Ubuntu and other systems
https://github.com/binwenwu/clash-for-linux
clash linux
Last synced: 25 days ago
JSON representation
💻 How to configure system agents for Linux systems, suitable for CentOS / Ubuntu and other systems
- Host: GitHub
- URL: https://github.com/binwenwu/clash-for-linux
- Owner: binwenwu
- Created: 2024-04-10T12:15:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T11:43:16.000Z (4 months ago)
- Last Synced: 2024-10-11T13:02:46.333Z (25 days ago)
- Topics: clash, linux
- Homepage:
- Size: 11.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> Clash for Linux Personal Backup Installation Package
### Download && Configure
- *Download project*
```bash
git clone https://github.com/binwenwu/Clash-for-linux.git
```- *Write proxy and cancel proxy commands into environment variables*
```bash
cat <> ~/.bashrc
# Proxy settings
alias proxy='export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890'
alias unproxy='unset https_proxy http_proxy all_proxy'
EOL
```- *Make environmental variables effective*
```bash
source ~/.bashrc
```### Usage
- *Enter the project directory*
- *Place the subscribed configuration file (. yaml) in this directory*```bash
cd Clash-for-linux
```- *Set execution permissions*
> Choose a `clash` application that is compatible with your own machine's `CPU`
```bash
chmod +x ./clash-linux-amd64
```- *Start program*
```bash
./clash-linux-amd64 -f ./yourconfig.yaml
```- *Enable Terminal Agent*
```bash
proxy
```- *Cancel Terminal Agent*
```bash
unproxy
```### Notice
- *If `Country.mmdb` is not displayed, Just place `Country.mmdb` in the directory under ``~/.config/clash/``*
```
mkdir -p ~/.config/clash
cp ./Country.mmdb ~/.config/clash
```- *Restart the program*
```BASH
./clash-linux-amd64-v1.3.5 -f ./yourconfig.yaml
```### Last
- If you want to configure clash as a system service for management, please refer to my blog
- https://www.tankenqi.cn/posts/48