特殊应用与环境
5. 特殊应用与环境
5.1 AI绘画 (Stable Diffusion)
安装与启动:
- 克隆仓库:
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git - 安装依赖:
pip install -r requirements.txt - 启动服务:
python launch.py --no-half --port 80 --listen
- 克隆仓库:
常见问题:
- Root运行:修改
webui.sh中的can_run_as_root=1。 - 插件安装失败:添加启动参数
--enable-insecure-extension-access。 - 访问控制:添加参数
--gradio-auth user:password。
- Root运行:修改
资源与模型路径:
- 模型文件:
stable-diffusion-webui/models/Stable-diffusion/ - Lora模型:
stable-diffusion-webui/models/lora/
- 模型文件:
5.2 其他工具与服务
OpenWrt:
- 查看无线客户端:
iw dev wlan0 station dump - 修改软件源:
sed -i 's/downloads.openwrt.org/mirrors.aliyun.com/g' /etc/opkg/distfeeds.conf - 封禁设备:在防火墙规则中添加
REJECT或list maclist ''。
- 查看无线客户端:
IPMI (Dell服务器):
ipmitool -H [BMC_IP] -I lanplus -U [USER] -P [PASS] power status/on/off/reset批处理:
- 生成随机数:
echo %random% - 获取网卡流量并转为数字:
typeperf -si 1 -sc 1 "\Network Interface(...)\Bytes Total/sec"
- 生成随机数: