2020-12-21 13:11:33 +08:00
|
|
|
|
<h1 align="center">
|
|
|
|
|
<img src="https://github.com/Dreamacro/clash/raw/master/docs/logo.png" alt="Clash" width="200">
|
|
|
|
|
<br>ShellClash<br>
|
2020-12-21 13:26:15 +08:00
|
|
|
|
</h1>
|
|
|
|
|
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
|
<a target="_blank" href="https://github.com/Dreamacro/clash/releases">
|
|
|
|
|
<img src="https://img.shields.io/github/release/Dreamacro/Clash.svg?style=flat-square&label=Clash">
|
|
|
|
|
</a>
|
|
|
|
|
<a target="_blank" href="https://github.com/juewuy/ShellClash/releases">
|
|
|
|
|
<img src="https://img.shields.io/github/release/juewuy/ShellClash.svg?style=flat-square&label=ShellClash&colorB=green">
|
|
|
|
|
</a>
|
2020-12-21 13:26:15 +08:00
|
|
|
|
</p>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2020-12-21 13:31:46 +08:00
|
|
|
|
中文 | [English](README.md)
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
|
|
|
|
功能简介:
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
~通过管理脚本在Shell环境下便捷使用[Clash](https://github.com/Dreamacro/clash)<br>
|
|
|
|
|
~支持在Shell环境下管理[Clash各种功能](https://lancellc.gitbook.io/clash)<br>
|
|
|
|
|
~支持在线导入[Clash](https://github.com/Dreamacro/clash)支持的分享、订阅及配置链接<br>~支持配置定时任务,支持配置文件定时更新<br>~支持在线安装及使用本地网页面板管理内置规则<br>
|
2021-06-07 18:46:08 +08:00
|
|
|
|
~支持路由模式、本机模式等多种模式切换<br>~支持在线更新<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
|
|
|
|
设备支持:
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
~支持各种基于OpenWrt或使用OpenWrt二次定制开发的路由器设备<br>
|
2021-06-07 18:46:08 +08:00
|
|
|
|
~支持各种运行标准Linux系统(如Debian/CenOS/Armbian等)的设备<br>~兼容Padavan固件(保守模式)、潘多拉固件以及华硕/梅林固件<br>~兼容各类使用Linux内核定制开发的各类型设备<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
|
|
|
|
——————————<br>
|
|
|
|
|
~更多设备支持,请提issue或前往TG群反馈(需提供设备名称及运行uname -a返回的设备核心信息)<br>
|
|
|
|
|
|
2022-12-04 20:54:09 +08:00
|
|
|
|
## 常见问题:
|
|
|
|
|
|
|
|
|
|
[ShellClash常见问题 | Juewuy's Blog](https://juewuy.github.io/chang-jian-wen-ti/)
|
|
|
|
|
|
2023-01-23 12:10:49 +08:00
|
|
|
|
## 使用方式:
|
|
|
|
|
|
2023-01-23 12:06:08 +08:00
|
|
|
|
~确认设备已经开启SSH并获取root权限(带GUI桌面的Linux设备可使用自带终端安装)<br>
|
|
|
|
|
~使用SSH连接工具(如putty,JuiceSSH,系统自带终端等)路由器或Linux设备的SSH管理界面或终端界面
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2023-01-20 15:58:05 +08:00
|
|
|
|
~之后在SSH界面执行目标设备对应的安装命令,并按照后续提示完成安装<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2023-01-23 12:10:49 +08:00
|
|
|
|
### 在线安装:<br>
|
2023-01-23 12:06:08 +08:00
|
|
|
|
|
2022-05-21 14:07:35 +08:00
|
|
|
|
(**如无法连接或出现SSL连接错误,请尝试更换各种不同的安装源!**)<br>
|
|
|
|
|
|
2023-01-20 15:58:05 +08:00
|
|
|
|
~**标准Linux设备安装:**<br>
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
sudo -i #切换到root用户,如果需要密码,请输入密码
|
|
|
|
|
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && bash /tmp/install.sh && source /etc/profile &> /dev/null
|
|
|
|
|
```
|
|
|
|
|
或者
|
|
|
|
|
```shell
|
|
|
|
|
sudo -i #切换到root用户,如果需要密码,请输入密码
|
2023-02-01 10:13:35 +08:00
|
|
|
|
export url='https://gh.jwsc.eu.org/master' && bash -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
2023-01-20 15:58:05 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
~**路由设备使用curl安装**:<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```shell
|
2022-12-07 22:07:37 +08:00
|
|
|
|
#GitHub源(可能需要代理)
|
2021-06-22 23:09:50 +08:00
|
|
|
|
export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```
|
2023-01-20 15:58:05 +08:00
|
|
|
|
或者
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```shell
|
2022-04-06 11:27:58 +08:00
|
|
|
|
#jsDelivrCDN源
|
2022-05-21 14:32:54 +08:00
|
|
|
|
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```
|
2023-01-20 15:58:05 +08:00
|
|
|
|
或者
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```shell
|
2022-04-10 21:36:58 +08:00
|
|
|
|
#作者私人源
|
2023-02-01 10:13:35 +08:00
|
|
|
|
export url='https://gh.jwsc.eu.org/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
2020-12-21 13:11:33 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-01-20 15:58:05 +08:00
|
|
|
|
~**路由设备使用wget安装**:<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2022-04-06 11:27:58 +08:00
|
|
|
|
```Shell
|
2022-12-07 22:07:37 +08:00
|
|
|
|
#GitHub源(可能需要代理)
|
2022-04-06 11:27:58 +08:00
|
|
|
|
export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```
|
2023-01-20 15:58:05 +08:00
|
|
|
|
或者
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```shell
|
2022-04-06 11:27:58 +08:00
|
|
|
|
#jsDelivrCDN源
|
2022-05-21 14:32:54 +08:00
|
|
|
|
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
2022-06-22 13:06:57 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-01-23 12:06:08 +08:00
|
|
|
|
~**老旧设备使用低版本wge安装**:<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2022-04-06 11:27:58 +08:00
|
|
|
|
```Shell
|
2023-01-20 15:58:05 +08:00
|
|
|
|
#作者私人http内测源
|
2023-02-01 10:13:35 +08:00
|
|
|
|
export url='http://t.jwsc.eu.org' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
2020-12-21 13:11:33 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-01-23 12:06:08 +08:00
|
|
|
|
~**DOCKER环境下安装:**<br>
|
|
|
|
|
|
2023-01-23 12:19:59 +08:00
|
|
|
|
请参考 [ShellClash_docker 一键脚本和镜像](https://github.com/echvoyager/shellclash_docker)
|
2023-01-23 12:06:08 +08:00
|
|
|
|
|
2023-01-23 12:10:49 +08:00
|
|
|
|
### **本地安装:**<br>
|
2023-01-23 12:06:08 +08:00
|
|
|
|
|
2023-01-23 12:19:59 +08:00
|
|
|
|
如使用在线安装出现问题,请参考:[本地安装ShellClash的教程 | Juewuy's Blog](https://juewuy.github.io/bdaz) 使用本地安装!<br>
|
2023-01-23 12:06:08 +08:00
|
|
|
|
|
2023-01-23 12:10:49 +08:00
|
|
|
|
### 使用脚本:<br>
|
|
|
|
|
|
|
|
|
|
安装完成管理脚本后,执行如下命令使用~
|
|
|
|
|
|
2020-12-21 13:11:33 +08:00
|
|
|
|
```Shell
|
2023-01-23 12:10:49 +08:00
|
|
|
|
clash #进入对话脚本
|
|
|
|
|
clash -h #脚本帮助及说明
|
|
|
|
|
clash -u #卸载脚本
|
|
|
|
|
clash -t #测试模式运行
|
|
|
|
|
clash -s start #启动服务
|
|
|
|
|
clash -s stop #停止服务
|
2020-12-21 13:11:33 +08:00
|
|
|
|
```
|
|
|
|
|
|
2022-02-20 15:00:17 +08:00
|
|
|
|
|
|
|
|
|
|
2023-01-23 12:06:08 +08:00
|
|
|
|
#### **运行时的额外依赖**:<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2022-04-06 11:36:46 +08:00
|
|
|
|
> 大部分的设备/系统都已经预装了以下的大部分依赖,使用时如无影响可以无视之
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2022-12-07 22:07:37 +08:00
|
|
|
|
```shell
|
2020-12-21 13:11:33 +08:00
|
|
|
|
curl/wget 必须 全部缺少时无法在线安装及更新,无法使用节点保存功能
|
2022-12-07 22:07:37 +08:00
|
|
|
|
iptables/nftables 重要 缺少时只能使用纯净模式
|
2020-12-21 13:11:33 +08:00
|
|
|
|
crontab 较低 缺少时无法启用定时任务功能
|
|
|
|
|
net-tools 极低 缺少时无法正常检测端口占用
|
|
|
|
|
ubus/iproute-doc 极低 缺少时无法正常获取本机host地址
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
更新日志:
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
### [点击查看](https://github.com/juewuy/ShellClash/releases)
|
|
|
|
|
|
|
|
|
|
交流反馈:
|
|
|
|
|
--
|
2022-05-05 13:40:48 +08:00
|
|
|
|
### [TG讨论组](https://t.me/ShellClash)
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2021-06-20 23:32:31 +08:00
|
|
|
|
## 请喝杯茶:
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2021-06-20 23:32:31 +08:00
|
|
|
|
支付宝 微信
|
|
|
|
|
|
|
|
|
|
##### <img src="http://juewuy.github.io/post-images/1604390977172.png" style="zoom:50%;" /><img src="http://juewuy.github.io/post-images/1604391042406.png" style="zoom:50%;" />
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2022-05-05 13:46:14 +08:00
|
|
|
|
机场推荐:
|
2020-12-21 13:11:33 +08:00
|
|
|
|
--
|
2023-01-23 12:14:34 +08:00
|
|
|
|
#### [大米-群友力荐,流媒体解锁,月付推荐](https://bigme.pro/auth/register?code=tdXp)<br>
|
|
|
|
|
#### [Dler-老牌稳定,流媒体解锁,年付推荐](https://dler.best/auth/register?affid=89698)<br>
|