2020-12-21 13:11:33 +08:00
|
|
|
|
<h1 align="center">
|
2023-11-03 15:52:57 +08:00
|
|
|
|
<br>ShellCrash<br>
|
2020-12-21 13:26:15 +08:00
|
|
|
|
</h1>
|
|
|
|
|
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
|
|
|
|
<p align="center">
|
2023-12-27 13:48:09 +08:00
|
|
|
|
<a target="_blank" href="https://github.com/MetaCubeX/mihomo/releases">
|
|
|
|
|
<img src="https://img.shields.io/github/release/MetaCubeX/mihomo.svg?style=flat-square&label=Core">
|
2020-12-21 13:11:33 +08:00
|
|
|
|
</a>
|
2023-11-03 15:52:57 +08:00
|
|
|
|
<a target="_blank" href="https://github.com/juewuy/ShellCrash/releases">
|
|
|
|
|
<img src="https://img.shields.io/github/release/juewuy/ShellCrash.svg?style=flat-square&label=ShellCrash&colorB=green">
|
2020-12-21 13:11:33 +08:00
|
|
|
|
</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
|
|
|
|
|
|
|
|
|
功能简介:
|
|
|
|
|
--
|
|
|
|
|
|
2024-06-06 13:47:30 +08:00
|
|
|
|
~通过管理脚本在Shell环境下便捷使用Mihomo/Singbox内核<br>
|
2023-12-27 13:52:53 +08:00
|
|
|
|
~支持在Shell环境下管理<br>
|
|
|
|
|
~支持在线导入订阅及配置链接<br>
|
|
|
|
|
~支持配置定时任务,支持配置文件定时更新<br>
|
|
|
|
|
~支持在线安装及使用本地网页面板管理内置规则<br>
|
|
|
|
|
~支持路由模式、本机模式等多种模式切换<br>
|
|
|
|
|
~支持在线更新<br>
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
|
|
|
|
设备支持:
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
~支持各种基于OpenWrt或使用OpenWrt二次定制开发的路由器设备<br>
|
2023-12-27 13:52:53 +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
|
|
|
|
## 常见问题:
|
|
|
|
|
|
2023-11-03 15:52:57 +08:00
|
|
|
|
[ShellCrash常见问题 | Juewuy's Blog](https://juewuy.github.io/chang-jian-wen-ti/)
|
2022-12-04 20:54:09 +08:00
|
|
|
|
|
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用户,如果需要密码,请输入密码
|
2023-02-23 20:12:28 +08:00
|
|
|
|
bash #如已处于bash环境可跳过
|
2023-11-03 15:52:57 +08:00
|
|
|
|
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && bash /tmp/install.sh && source /etc/profile &> /dev/null
|
2023-01-20 15:58:05 +08:00
|
|
|
|
```
|
|
|
|
|
或者
|
|
|
|
|
```shell
|
|
|
|
|
sudo -i #切换到root用户,如果需要密码,请输入密码
|
2023-02-23 20:12:28 +08:00
|
|
|
|
bash #如已处于bash环境可跳过
|
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源(可能需要代理)
|
2023-11-03 15:52:57 +08:00
|
|
|
|
export url='https://raw.githubusercontent.com/juewuy/ShellCrash/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源
|
2023-11-03 15:52:57 +08:00
|
|
|
|
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@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源(可能需要代理)
|
2023-11-03 15:52:57 +08:00
|
|
|
|
export url='https://raw.githubusercontent.com/juewuy/ShellCrash/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源
|
2023-11-03 15:52:57 +08:00
|
|
|
|
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@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
|
|
|
|
```
|
|
|
|
|
|
2024-01-12 21:37:20 +08:00
|
|
|
|
~**虚拟机/Docker环境安装:**<br>
|
|
|
|
|
|
|
|
|
|
虚拟机或Docker环境推荐使用Alpine镜像安装<br>
|
|
|
|
|
|
|
|
|
|
这里以Docker为例(其他虚拟机请自行查找安装Alpine镜像安装教程)<br>
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
#注意,以下命令请分步执行!
|
|
|
|
|
#Docker一键启动Alpine镜像
|
|
|
|
|
docker run -d --name ShellCrash alpine sleep infinity
|
|
|
|
|
#进入容器内sh环境
|
|
|
|
|
docker exec -it ShellCrash sh
|
|
|
|
|
#安装必要依赖
|
|
|
|
|
apk add curl
|
|
|
|
|
apk add nftables
|
|
|
|
|
#执行安装命令
|
|
|
|
|
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
|
|
|
|
```
|
|
|
|
|
|
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-11-03 15:52:57 +08:00
|
|
|
|
如使用在线安装出现问题,请参考:[本地安装ShellCrash的教程 | 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
|
2024-06-19 22:46:23 +08:00
|
|
|
|
crash #进入对话
|
|
|
|
|
crash -h #帮助列表
|
2020-12-21 13:11:33 +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地址
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
更新日志:
|
|
|
|
|
--
|
|
|
|
|
|
2023-11-03 15:52:57 +08:00
|
|
|
|
### [点击查看](https://github.com/juewuy/ShellCrash/releases)
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
|
|
|
|
交流反馈:
|
|
|
|
|
--
|
2023-12-27 13:52:53 +08:00
|
|
|
|
### [TG讨论组](https://t.me/ShellClash)
|
2020-12-21 13:11:33 +08:00
|
|
|
|
|
2022-05-05 13:46:14 +08:00
|
|
|
|
机场推荐:
|
2020-12-21 13:11:33 +08:00
|
|
|
|
--
|
2024-06-06 13:47:30 +08:00
|
|
|
|
#### [大米-群友力荐,流媒体解锁,月付推荐](https://1s.bigmeok.me/user#/register?code=2PuWY9I7)<br>
|