Files
membank/auto-check/docker/stress-test/vendor/fnscript/README.md
张威33321 a8fa159f0f chore: 同步本地更改
- 新增 aio-mcp 项目框架
- 新增 .trae/skills/ OCR/SKU 设计工具
- 更新 auto-check 配置和 stress 包
- 删除 fnhelp 文档目录
- 更新 Docker 压力测试脚本
2026-08-27 20:38:13 +08:00

55 lines
2.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2.0版本重磅来袭
### ✅脚本菜单改进
![image](https://github.com/user-attachments/assets/efed14a9-c2a1-475e-8c67-cdd42dc0c95c) \
![image](https://github.com/user-attachments/assets/66b43e51-0eb5-41b8-8770-6484e953afda)
### 🖱TUI交互式界面感觉就像在使用Windows
![output](https://github.com/user-attachments/assets/f0a63758-8174-408d-94a0-bbe637bd1bd2)
### 终端绑定功能进入root自动运行脚本
![output](https://github.com/user-attachments/assets/f330ba45-3a7d-4bbf-bd0a-84530d0e1663)
### ⬇git下载和更新
✅ 操作简单维护更新方便采用Gitee国内源确保全国地区均可访问
### 📄独立脚本文件
✅继续沿用1.0脚本分开管理,便于维护
### MIT最宽松的开源协议
# 如何使用
## TUI交互式运行
所有脚本目前均已实现图形化TUI交互式操作您可以直接使用一键使用命令后根据菜单提示选择对应功能默认使用的是TUI。由于脚本TUI采用的是 `textual`这个库无法通过apt进行安装和管理所以必须强行通过pip来进行安装曾考虑过进行打包后执行但部分脚本可能存在打包后运行问题
[点击这里查阅详细冲突风险以及解决方案](https://github.com/yxsj245/fnscript/blob/2.0/pip%E5%BA%93%E5%86%B2%E7%AA%81%E9%A3%8E%E9%99%A9.md)
### 使用运行命令
```bash
git clone https://gitee.com/xiao-zhu245/fnscript.git
cd fnscript/
python3 menu.py
```
### 建议使用 1panel面板终端或者CMD终端进行TUI操作其它软件的终端可能存在兼容问题。使用脚本建议进入root用户下运行。
## 传统命令行运行
若您担心pip库冲突风险或无法使用交互式终端情况下我将部分功能单一的脚本增加了传统通过命令行形式运行的功能在无需安装`textual`库就可以直接运行使用
### 如何使用
您可以通过此命令拉取任意脚本后直接使用
```bash
python3 此处替换脚本名称 -h #获取参数信息
```
# 脚本信息
| 脚本名称 | 作用 | 是否支持TUI | 是否支持命令行 |
| ------- | ------- | ------- | ------- |
| cdmount.py | 挂载CD/DVD |✅|❎|
| filestorage.py | 分析目录文件大小 |✅|❎|
| Powermanagement.py | 电源管理 |✅|✅|
| qcowtools.py | qcow2转换工具 |✅|✅|
| self_inspection.py | 硬件压测 |✅|✅|
| startIOMMU.py | 开启IOMMU直通 |✅|✅|
| swapinfo.py | 管理swap |✅|✅|
| vmtoolses.py | 安装虚拟机工具 |✅|✅|
| WOLstart.py | 开启WOL网络唤醒 |✅|✅|
| network_diagnostic_tool.py | 网络诊断与修改 |✅|✅|
| raid_repair_tui.py | 阵列状态和修复 |✅|❎|
| ffmpeg_converter_tui.py | 影音万能格式转换 |✅|❎|
# 其它合作脚本
[七月七夕纯命令行传统脚本](https://github.com/qiyueqixi/fnos)