moxbox init

This commit is contained in:
monlor
2020-03-05 00:08:40 +08:00
commit 76dbe98978
856 changed files with 170708 additions and 0 deletions

182
README.md Normal file
View File

@@ -0,0 +1,182 @@
# MIXBOX
![](https://github.com/monlor/MIXBOX/workflows/CI/badge.svg)
> MIXBOX是一款全新的完全基于Shell脚本的工具箱为在路由器上实现程序的快速配置及运行管理欢迎大佬们stars、fork及pr.
* Telegram群[MIXBOX CHAT](https://t.me/joinchat/FMraA0lwzH9fzEW1wXdCFA)
* 我的博客:[Monlor's Blog](https://www.monlor.com)
* GitHub地址[monlor/MIXBOX](https://github.com/monlor/MIXBOX)
***
### 更新日志
* 2020-03-04
* 为了减少项目体积,现在采用`Github Actions`自动部署插件安装包
* coding下载源地址改为`https://monlor.coding.net/p/mbfiles/d/mbfiles/git/raw/master`
* github下载源地址改为`https://raw.githubusercontent.com/monlor/mbfiles/master`
* 这一版更新需要手动更新,请执行下方的**手动更新命令**,并手动更换下载源
* 不想更新的以前的版本同样会保留,只是不再会更新
* 2020-03-03
* 更新工具箱coding下载源**请手动更换coding下载源`https://monlor.coding.net/p/MIXBOX/d/MIXBOX/git/raw/master`**
* 更新插件`Koolproxy`规则地址
* 更新`qiandao`插件,现在支持更多网站签到,**并且支持mips设置如R3**
* 2020-02-27
* 新增插件npc待测试
* aria2版本更新
* 2019-03-03
* 修复`v2ray`配置文件问题(未测试),感谢`@leafnsand`的PR
* 修复`Entware`插件无法启动`ONMP`的问题
* 插件`VerySync``BaiduPCS`的程序版本更新
* 现在修复小米路由器远程访问后会自动开放8098端口
### 介绍
**工具箱`MIXBOX`公测发布,`Monlor Tools`不再更新。新版本有以下改变:**
* MIXBOX
* 工具箱尝试支持更多的路由器固件,正在努力中,需要测试
* 去掉随时可能被小米封的web界面
* 移除针对小米路由器设置的功能如修改samba路径和禁用迅雷等合并到新的插件`MIWIFI`
* 增加一个应急功能,在用户目录创建文件`uninstall_mixbox`即可卸载工具箱
* 增加几个工具箱常用命令,`applist`:用于管理插件列表,`cru`:定时任务管理,`mbdb`:工具箱数据库基于uci`mixbox`:工具箱命令行交互界面
* 工具箱增加目录,`/etc/mixbox/mbdb`:存放数据文件,`/etc/mixbox/var/run`:存在程序进程pid文件`/etc/mixbox/var/log`:工具箱日志目录
* 工具箱现在不会特意去兼容某个型号,比如`R3`上的`Aria2`问题,只考虑`CPU`架构,`mips`/`arm`等,所以如果`R3`/`R1CM`发现程序不兼容的情况,可以选择自己替换程序,或同时安装`Monlor-Tools`工具箱
* 插件安装去掉了离线安装的功能,后续会加入进来,给用户提供一个自己修改打包插件的机会
* ShadowSocks
* 订阅现在会多次尝试,如已安装`EntWare`中的`curl`程序会自动调用用作订阅
* 现已支持`v2ray`并测试黑白名单和全局模式正常使用v2ray订阅暂不支持
* 已支持`kcptun`加速功能,`ss``kcp`需为同一个服务器,否则不启用
* 优化添加`ss`节点时的提示信息
* 增加`haveged`程序,用于生成随机数
* KoolProxy
* 由于作者更新程序修改了视频模式的启用方式,更新了启动脚本
* `https`证书生成不再使用`openssl`程序,而使用`kp`自带程序生成
* 新增插件
* AliDDNS获取当前网络的ip自动解析到阿里云
* BaiduPCS第三方百度网盘下载工具带web界面
* DropBear移植小米路由器的`SSH`功能到工具箱
* Frps快速搭建`frp`服务端
* PPTPD快速搭建`vpn`服务器,基于`EntWare`环境
* SmartDNS智能`dns`解析,从多个上游`dns`服务器中选取最快的解析地址
* SSServer搭建`ss`服务器
* Transmission强大的`pt`下载工具,基于`EntWare`环境
* WebD极其小巧的网盘工具功能比较简单
* 其他等等等小更新...
### 注意事项
* 用户目录是指存放一下大文件的目录,如下载的文件等
* **经测试`R3`不支持`EntWare`环境,原因未知,所以基于`EntWare`的程序都无法使用**
### 命令
#### 一键安装
``` shell
sh -c "$(curl -kfsSl https://monlor.coding.net/p/mbfiles/d/mbfiles/git/raw/master/install.sh)" && source /etc/profile &> /dev/null
```
### 手动更新命令
``` shell
sh -c "$(curl -kfsSl https://raw.githubusercontent.com/monlor/MIXBOX/master/apps/mixbox/scripts/update.sh)" && source /etc/profile &> /dev/null
```
#### 卸载`Monlor Tools`工具箱
``` shell
sh -c "$(curl -kfsSl https://monlor.coding.net/p/mbfiles/d/mbfiles/git/raw/master/temp/uninstall_old.sh)" && source /etc/profile &> /dev/null
```
#### 一键更新所有插件(请先更新工具箱)
``` shell
applist installed -n | while read line; do mixbox upgrade $line; done
```
#### 查看插件常用命令appname为插件名
``` shell
mixbox help
```
### 小米路由器目录结构
/
|--- /etc/mixbox
| |--- /apps/ --- 插件安装目录
| |--- /config/ --- 工具箱配置文件目录
| |--- /scripts/ --- 工具箱脚本目录
| |--- /mbdb/ --- 工具箱数据文件目录
| |--- /var/ --- 工具箱运行pid及日志存放目录
|--- /tmp
| |--- /messages --- 系统日志,工具箱日志
|--- /userdisk
| |--- /data/ --- 硬盘目录
|--- /extdisks/
| |--- /sd*/ --- 外接盘目录
### 插件列表
> 感谢以下插件列表中的作者给我们带来的这么好用的程序!`作者链接待完善`
01. [ShadowSocks](https://github.com/shadowsocks/shadowsocks/tree/master)
02. [KoolProxy](http://koolshare.b0.upaiyun.com/)
03. [Aria2](http://aria2.github.io/)
04. [VsFtpd](https://security.appspot.com/vsftpd.html)
05. [kms](https://github.com/Wind4/vlmcsd)
06. [Frpc](https://github.com/fatedier/frp)
07. [Ngrok](https://github.com/dosgo/ngrok-c)
08. [WebShell](https://github.com/shellinabox/shellinabox)
09. [TinyProxy](https://github.com/tinyproxy/tinyproxy)
10. [Entware](https://github.com/Entware/Entware-ng)
11. [KodExplorer](https://kodcloud.com/)
12. [EasyExplorer](http://koolshare.cn/thread-129199-1-1.html)
13. [HttpFile](http://nginx.org/)
14. [VerySync](http://verysync.com/)
15. [FastDick](https://github.com/fffonion/Xunlei-Fastdick)
16. [FireWall](https://www.netfilter.org/)
17. [JetBrains](http://blog.lanyus.com/archives/174.html)
18. [QianDao](http://koolshare.cn/thread-127783-1-1.html)
19. [FileBrowser](https://github.com/filebrowser/filebrowser)
20. [ZeroTier](https://www.zerotier.com)
21. MIWIFI
22. [AliDDNS]
23. [BaiduPCS]
24. [DropBear]
25. [Frps]
26. [PPTPD]
27. [SmartDNS]
28. [SSServer]
29. [Transmission]
30. [WebD]
### 快速制作插件
#### 步骤
* `git clone https://github.com/monlor/MIXBOX.git`
* `cd MIXBOX/`
* `chmod +x ./tools/*.sh`
* `./tools/newapp.sh [插件名] [插件服务名] [插件介绍]`
* 修改插件脚本和配置文件
* `./tools/gitsync.sh pack [插件名] [-v]`
#### 注意事项
* 插件名必须为小写,插件服务名一般为驼峰的写法
* 执行完插件生成脚本后插件会生成在apps中注意名称不能与现有插件重复
* `gitsync.sh`是打包插件的脚本,-v为更新版本号`可无`打包的插件生成在appstore下