新增功能: - 独立的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>
23 lines
491 B
Desktop File
23 lines
491 B
Desktop File
[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
|