feat: 添加驱动管理器 - Web界面安装打印机驱动
新增功能: - 独立的Web服务(端口632)用于管理打印机驱动 - 支持上传安装多种驱动格式:.deb, .ppd, .tar.gz, .zip, .rpm, .sh - 自动识别文件类型并执行对应安装命令 - 中文Web界面,风格与CUPS保持一致 - 基本认证保护,随机生成管理密码 - 查看已安装驱动列表 安装脚本更新: - 新增"是否安装驱动管理器"选项 - 自动配置systemd服务开机自启 - 安装完成后显示驱动管理器地址和密码 - 卸载时自动清理驱动管理器 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
22
cups-driver-manager/cups-driver-manager.service
Normal file
22
cups-driver-manager/cups-driver-manager.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=CUPS Printer Driver Manager
|
||||
Documentation=https://gitee.com/yu-yon/S905L3A
|
||||
After=network.target cups.service
|
||||
Wants=cups.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/cups-driver-manager
|
||||
ExecStart=/usr/bin/python3 /opt/cups-driver-manager/driver_manager.py --port 632
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
Environment=DRIVER_MANAGER_PASSWORD=admin
|
||||
|
||||
# 安全设置
|
||||
NoNewPrivileges=false
|
||||
ProtectSystem=false
|
||||
ProtectHome=false
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user