-
Notifications
You must be signed in to change notification settings - Fork 268
Home
ね律こ edited this page Apr 10, 2025
·
4 revisions
因为有在服务器上使用代理的需求,试过许多开源脚本,总是遇到各种问题。于是自己动手,丰衣足食:对 Clash
内核的安装过程及功能进行了友好封装,使用起来优雅、简单、明确。
下述命令仅适用于 x86_64
架构,其他架构需修改 --branch
指定的分支。可通过 uname -m
查询系统架构,其与分支的对应关系如下:
分支 | 架构 |
---|---|
master | x86_64 |
arch-x86 | i386, ... |
arch-arm64 | aarch64 |
arch-arm32 | armv7l, ... |
git clone --branch master --depth 1 https://gh-proxy.com/https://github.com/nelvko/clash-for-linux-install.git \
&& cd clash-for-linux-install \
&& sudo bash install.sh
注:
- 不同分支之间仅依赖的软件包架构版本不同。
- 使用了浅克隆大大减少了下载时的仓库体积。
- 克隆时经由加速链接下载全部依赖。
- 避免了:境内服务器在克隆时,下载缓慢/
GFW
。 -
实现了:在没有匡威的情况下买一双匡威!