commit d83a3bc97748b5e0cf4503b8447a98fe7edcc6a5 Author: yuyx <237899745@qq.com> Date: Sun Nov 30 20:44:20 2025 +0800 初始提交:中兴B863AV3.2-M刷Armbian + CUPS打印服务教程 包含: - 刷机教程.md - 完整刷机和CUPS配置文档 - setup_cups.sh - 一键安装CUPS脚本(支持换源、多驱动选择、中文界面) - cups-templates-zh_CN/ - CUPS中文界面模板 🤖 Generated with Claude Code diff --git a/cups-templates-zh_CN/add-class.tmpl b/cups-templates-zh_CN/add-class.tmpl new file mode 100644 index 0000000..3deaf26 --- /dev/null +++ b/cups-templates-zh_CN/add-class.tmpl @@ -0,0 +1,37 @@ +
+
+ + + ++
+ + ++
+ ++
+ + {SETTINGS_ERROR?{SETTINGS_MESSAGE}
+{SETTINGS_ERROR}: + } +
正在搜索打印机...
Class {printer_name} has been added +successfully. diff --git a/cups-templates-zh_CN/class-confirm.tmpl b/cups-templates-zh_CN/class-confirm.tmpl new file mode 100644 index 0000000..e564379 --- /dev/null +++ b/cups-templates-zh_CN/class-confirm.tmpl @@ -0,0 +1,6 @@ +
Warning: Are you sure you want to delete class +{printer_name}?
+ + diff --git a/cups-templates-zh_CN/class-deleted.tmpl b/cups-templates-zh_CN/class-deleted.tmpl new file mode 100644 index 0000000..6c44468 --- /dev/null +++ b/cups-templates-zh_CN/class-deleted.tmpl @@ -0,0 +1,3 @@ +Class {printer_name} has been deleted successfully. diff --git a/cups-templates-zh_CN/class-jobs-header.tmpl b/cups-templates-zh_CN/class-jobs-header.tmpl new file mode 100644 index 0000000..61e5151 --- /dev/null +++ b/cups-templates-zh_CN/class-jobs-header.tmpl @@ -0,0 +1 @@ +
Class {printer_name} has been +modified successfully. diff --git a/cups-templates-zh_CN/class.tmpl b/cups-templates-zh_CN/class.tmpl new file mode 100644 index 0000000..630c342 --- /dev/null +++ b/cups-templates-zh_CN/class.tmpl @@ -0,0 +1,41 @@ +
| Description: | {printer_info} |
|---|---|
| Location: | {printer_location} |
| Members: | {?member_uris=?None:{member_uris}} |
| Defaults: | job-sheets={job_sheets_default} +media={media_default?{media_default}:unknown} +{sides_default?sides={sides_default}:} |
{total=0?没有打印机类:显示 {total} 个打印机类中的 {#printer_name} 个}。
diff --git a/cups-templates-zh_CN/classes.tmpl b/cups-templates-zh_CN/classes.tmpl new file mode 100644 index 0000000..8e76ad9 --- /dev/null +++ b/cups-templates-zh_CN/classes.tmpl @@ -0,0 +1,11 @@ +{#printer_name=0?: +| 队列名称 | 描述 | 位置 | 成员 | 状态 |
|---|---|---|---|---|
| {printer_name} | {printer_info} | {printer_location} | {?member_uris=?无:{member_uris}} | {printer_state=3?空闲:{printer_state=4?处理中:已暂停}}{printer_state_message? - "{printer_state_message}":} |
{job_state>5?:
}Printer command job
+{job_state=3?pending:{job_state=4?held:
+{job_state=5?processing:{job_state=6?stopped:
+{job_state=7?canceled:{job_state=8?aborted:completed}}}}}}{job_state=9?:{job_printer_state_message?,
+"{job_printer_state_message}":}}
Error:
+ +Unknown operation "{op}"!diff --git a/cups-templates-zh_CN/error.tmpl b/cups-templates-zh_CN/error.tmpl new file mode 100644 index 0000000..2ac1b8f --- /dev/null +++ b/cups-templates-zh_CN/error.tmpl @@ -0,0 +1,5 @@ +
{?message?{message}:Error}:
+ +{error}diff --git a/cups-templates-zh_CN/header.tmpl b/cups-templates-zh_CN/header.tmpl new file mode 100644 index 0000000..83c078b --- /dev/null +++ b/cups-templates-zh_CN/header.tmpl @@ -0,0 +1,40 @@ + + + + + + + + {refresh_page?:} + + + + +
Search Results in {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:All Documents}}\:
+{QTEXT?:} +:No matches found.
} +This is the CUPS online help interface. Enter search words above or click on any of the documentation links to display online help information.
+ +If you are new to CUPS, read the "Overview of CUPS" page.
+ +The CUPS home page also provides many resources including user discussion forums, answers to frequently-asked questions, and a form for submitting bug reports and feature requests.
} diff --git a/cups-templates-zh_CN/help-printable.tmpl b/cups-templates-zh_CN/help-printable.tmpl new file mode 100644 index 0000000..2463c16 --- /dev/null +++ b/cups-templates-zh_CN/help-printable.tmpl @@ -0,0 +1,9 @@ + + + + +Job {job_id} has been canceled. diff --git a/cups-templates-zh_CN/job-hold.tmpl b/cups-templates-zh_CN/job-hold.tmpl new file mode 100644 index 0000000..3b5cd6a --- /dev/null +++ b/cups-templates-zh_CN/job-hold.tmpl @@ -0,0 +1,3 @@ +
Job {job_id} has been held from printing. diff --git a/cups-templates-zh_CN/job-move.tmpl b/cups-templates-zh_CN/job-move.tmpl new file mode 100644 index 0000000..c2f7046 --- /dev/null +++ b/cups-templates-zh_CN/job-move.tmpl @@ -0,0 +1,23 @@ +
diff --git a/cups-templates-zh_CN/job-moved.tmpl b/cups-templates-zh_CN/job-moved.tmpl new file mode 100644 index 0000000..4893e24 --- /dev/null +++ b/cups-templates-zh_CN/job-moved.tmpl @@ -0,0 +1,4 @@ +{job_id?Job {job_id}:All jobs} moved to +{job_printer_name}.
diff --git a/cups-templates-zh_CN/job-release.tmpl b/cups-templates-zh_CN/job-release.tmpl new file mode 100644 index 0000000..fe93793 --- /dev/null +++ b/cups-templates-zh_CN/job-release.tmpl @@ -0,0 +1,3 @@ +Job {job_id} has been released for printing. diff --git a/cups-templates-zh_CN/job-restart.tmpl b/cups-templates-zh_CN/job-restart.tmpl new file mode 100644 index 0000000..b5dfd95 --- /dev/null +++ b/cups-templates-zh_CN/job-restart.tmpl @@ -0,0 +1,3 @@ +
Job {job_id} has been restarted. diff --git a/cups-templates-zh_CN/jobs-header.tmpl b/cups-templates-zh_CN/jobs-header.tmpl new file mode 100644 index 0000000..b143ba9 --- /dev/null +++ b/cups-templates-zh_CN/jobs-header.tmpl @@ -0,0 +1,5 @@ +{?which_jobs=?:
} +{?which_jobs=completed?:} +{?which_jobs=all?:} + +{?which_jobs=?活动任务按处理顺序排列;挂起任务显示在前面。:{which_jobs=all?任务按顺序排列:已完成任务按完成顺序排列}}
diff --git a/cups-templates-zh_CN/jobs.tmpl b/cups-templates-zh_CN/jobs.tmpl new file mode 100644 index 0000000..ff3ad83 --- /dev/null +++ b/cups-templates-zh_CN/jobs.tmpl @@ -0,0 +1,36 @@ +{#job_id=0?: +| 编号 | 名称 | 用户 | 大小 | 页数 | 状态 | 操作 |
|---|---|---|---|---|---|---|
| {job_printer_name}-{job_id}{?phone? ({phone}):} | +{?job_name=?未知:{job_name}} | +{?job_originating_user_name=?未提供:{job_originating_user_name}} | +{job_k_octets}k | +{job_impressions_completed=0?未知:{?job_impressions_completed}} | +{job_state=3?等待中 {?time_at_creation=?未知:{time_at_creation}}:{job_state=4?已挂起 {?time_at_creation=?未知:{time_at_creation}}: +{job_state=5?处理中 {?time_at_processing=?未知:{time_at_processing}}:{job_state=6?已停止: +{job_state=7?已取消 {?time_at_completed=?未知:{time_at_completed}}:{job_state=8?已中止:已完成 {?time_at_completed=?未知:{time_at_completed}}}}}}}} {job_printer_state_message? +"{job_printer_state_message}":} |
++{job_preserved>0?{job_state>5? +:}:} +{job_state=4?{job_hold_until=auth-info-required?需要认证: +:}:} +{job_state=3? +:} +{job_state<7? + +:} + | +
No printers found.
+:The server was not restarted because no changes were made to +the configuration...
diff --git a/cups-templates-zh_CN/option-boolean.tmpl b/cups-templates-zh_CN/option-boolean.tmpl new file mode 100644 index 0000000..ce9b6af --- /dev/null +++ b/cups-templates-zh_CN/option-boolean.tmpl @@ -0,0 +1,6 @@ +Error: The following options are conflicting:
+ +Please change one or more of the options to resolve the conflicts.
diff --git a/cups-templates-zh_CN/option-header.tmpl b/cups-templates-zh_CN/option-header.tmpl new file mode 100644 index 0000000..464726a --- /dev/null +++ b/cups-templates-zh_CN/option-header.tmpl @@ -0,0 +1,5 @@ +| {keytext}: | ++ | ||
|---|---|---|---|
| {keytext}: | +
+{iscustom=1?
| :}
+
| {PREV?{PREV>0? :}: } | +{NEXT?: } + {LAST?:} | +
{is_class?Class:Printer} {printer_name} +is now accepting jobs.
diff --git a/cups-templates-zh_CN/printer-added.tmpl b/cups-templates-zh_CN/printer-added.tmpl new file mode 100644 index 0000000..9ebc835 --- /dev/null +++ b/cups-templates-zh_CN/printer-added.tmpl @@ -0,0 +1,15 @@ +Printer {printer_name} has been added +successfully. + +
+Note:Printer drivers and raw queues are deprecated and will stop working in a future version of CUPS. ++ + diff --git a/cups-templates-zh_CN/printer-cancel-jobs.tmpl b/cups-templates-zh_CN/printer-cancel-jobs.tmpl new file mode 100644 index 0000000..4376646 --- /dev/null +++ b/cups-templates-zh_CN/printer-cancel-jobs.tmpl @@ -0,0 +1,5 @@ +
All jobs on {is_class?class:printer} {printer_name} +have been canceled.
diff --git a/cups-templates-zh_CN/printer-configured.tmpl b/cups-templates-zh_CN/printer-configured.tmpl new file mode 100644 index 0000000..7bce3f9 --- /dev/null +++ b/cups-templates-zh_CN/printer-configured.tmpl @@ -0,0 +1,4 @@ +{OP=set-class-options?Class :Printer }{printer_name} +default options have been set successfully. diff --git a/cups-templates-zh_CN/printer-confirm.tmpl b/cups-templates-zh_CN/printer-confirm.tmpl new file mode 100644 index 0000000..c1b2b17 --- /dev/null +++ b/cups-templates-zh_CN/printer-confirm.tmpl @@ -0,0 +1,6 @@ +
Warning: Are you sure you want to delete printer +{printer_name}?
+ + diff --git a/cups-templates-zh_CN/printer-default.tmpl b/cups-templates-zh_CN/printer-default.tmpl new file mode 100644 index 0000000..af21dca --- /dev/null +++ b/cups-templates-zh_CN/printer-default.tmpl @@ -0,0 +1,9 @@ +{is_class?Class:Printer} {printer_name} +has been made the default printer on the server.
+ +Note: Any user default that has been set via +the lpoptions command will override this default +setting.diff --git a/cups-templates-zh_CN/printer-deleted.tmpl b/cups-templates-zh_CN/printer-deleted.tmpl new file mode 100644 index 0000000..ea462ce --- /dev/null +++ b/cups-templates-zh_CN/printer-deleted.tmpl @@ -0,0 +1,3 @@ +
Printer {printer_name} has been deleted successfully. diff --git a/cups-templates-zh_CN/printer-jobs-header.tmpl b/cups-templates-zh_CN/printer-jobs-header.tmpl new file mode 100644 index 0000000..61e5151 --- /dev/null +++ b/cups-templates-zh_CN/printer-jobs-header.tmpl @@ -0,0 +1 @@ +
Printer {printer_name} has been +modified successfully. diff --git a/cups-templates-zh_CN/printer-reject.tmpl b/cups-templates-zh_CN/printer-reject.tmpl new file mode 100644 index 0000000..823c7e5 --- /dev/null +++ b/cups-templates-zh_CN/printer-reject.tmpl @@ -0,0 +1,5 @@ +
{is_class?Class:Printer} {printer_name} +is no longer accepting jobs.
diff --git a/cups-templates-zh_CN/printer-start.tmpl b/cups-templates-zh_CN/printer-start.tmpl new file mode 100644 index 0000000..76d44ed --- /dev/null +++ b/cups-templates-zh_CN/printer-start.tmpl @@ -0,0 +1,5 @@ +{is_class?Class:Printer} {printer_name} +has been resumed.
diff --git a/cups-templates-zh_CN/printer-stop.tmpl b/cups-templates-zh_CN/printer-stop.tmpl new file mode 100644 index 0000000..8c264b2 --- /dev/null +++ b/cups-templates-zh_CN/printer-stop.tmpl @@ -0,0 +1,5 @@ +{is_class?Class:Printer} {printer_name} +has been paused.
diff --git a/cups-templates-zh_CN/printer.tmpl b/cups-templates-zh_CN/printer.tmpl new file mode 100644 index 0000000..6bfac81 --- /dev/null +++ b/cups-templates-zh_CN/printer.tmpl @@ -0,0 +1,43 @@ +| 描述: | {printer_info} |
|---|---|
| 位置: | {printer_location} |
| 驱动: | {printer_make_and_model} ({color_supported=1?彩色:灰度}{sides_supported=one-sided?:, 双面打印}) + |
| 连接: | {device_uri} |
| 默认设置: | job-sheets={job_sheets_default} +media={media_default?{media_default}:未知} +{sides_default?sides={sides_default}:} |
{total=0?没有打印机:显示 {total} 台打印机中的 {#printer_name} 台}。
diff --git a/cups-templates-zh_CN/printers.tmpl b/cups-templates-zh_CN/printers.tmpl new file mode 100644 index 0000000..db9d035 --- /dev/null +++ b/cups-templates-zh_CN/printers.tmpl @@ -0,0 +1,11 @@ +{#printer_name=0?: +| 队列名称 | 描述 | 位置 | 品牌型号 | 状态 |
|---|---|---|---|---|
| {printer_name} | {printer_info} | {printer_location} | {printer_make_and_model} | {printer_state=3?空闲:{printer_state=4?处理中:已暂停}}{printer_state_message? - "{printer_state_message}":} |
Please stand by while the server restarts...
Test page sent; job ID is +{printer_name}-{job_id}.
diff --git a/cups-templates-zh_CN/trailer.tmpl b/cups-templates-zh_CN/trailer.tmpl new file mode 100644 index 0000000..8f2efa8 --- /dev/null +++ b/cups-templates-zh_CN/trailer.tmpl @@ -0,0 +1,5 @@ +