*nix 系統通常都會使用稱為 CUPS (Common Unix Printing System) 的列印系統
CUPS 提供網頁設定界面,能讓按裝 CUPS 的 *nix 作遙距設定

CUPS 的預設使用 Port 631 ,在網址輸入 http://127.0.0.1:631 便可以進入網頁設定界面

尋找 CUPS 的位置,並輸入 http://<ip>:631 或 http://<cups-hostname>.local:631
但由於未設定 CUPS 能遙距設定
開啟 /etc/cups/cupsd.conf
將 Listen localhost:631 修改成 Listen 631
讓相同網絡能存取
修改後輸入
sudo service cups restart運行新的設定 /etc/cups/cupsd.conf

重新載入後能存取頁面但被拒絕
需要再修改 /etc/cups/cupsd.conf
將 <Location />, <Location /admin>, <Location /admin/conf> 中加入
allow from 192.168.*.*修改後輸入
sudo service cups restart允許相同網絡的使用者能存取 CUPS
但在安全準則下最好使用指定 IP 或內部 IP 的範圍

重新載入,終於能載入 CUPS 的設定頁面

到 Administrator 頁面,按 Add Printer

部分 CUPS 基於安全理由會要求以 HTTPS 登入 CUPS

以 Firefox 開啟,會有未受信任風險的警告,是正常
按下「I Understand the Risks」

按下「Add Exceptions」

按下「Confirm Security Exception」

以 HTTPS 存取

設定印表機需要 root 或 super user 權限

取消登入會顯示不合法存取錯誤

不使用 root 或沒有 super user 權限的使用者登入亦會出現 error
而且由於 CUPS 沒有登出操作,因此必須關閉瀏覽器才能登出
因此設定時建議使用者隱密瀏覽功能,與主瀏覽器分開

使用 root 或 super user 權限的使用者登入便可以設定印表機
CUPS 會自動偵測可用的的印表機,如較舊使用 Serial Port 、較新使用 USB 、網絡印表機 甚至 其他網絡印表機亦可以
使用在下所使用的 Ricoh MP C2003 點選後按「Continue」

設定印表機的名稱、描述、位置等資料
如需要共享此印表機可以勾選 Share This Printer
需要啟動此印表機則必須勾選 Enabled
設定後按「Continue」

印表機是較有名的牌子,不是最新型號,通常知名的 Linux 發行版都能夠安裝驅動程式
可直接從發行版下載及安裝,一般發行版都使用 PCL 6 或 PXL 或 PCL XL
但若果發行版都不能提供驅動程式,便必須到印表機官方尋找 PPD 的安裝
完成後按「Add Printer」






若果安裝印表機驅動程式正確便會出現印表機設定資料
設定後按「Set Default Options」來完成安裝

印表機頁面可以執行如列表測試頁、清洗印表機噴頭、取消列印工序
及維護、修改、刪除、預設值設定、允使使用者使用 等操作

完成後當然要列印測試頁來確認安裝的驅動程式是否正常運作
由於大部分印表機的驅動程式都只支援 Windows 或 Mac OS
*nix 對於印表機的驅動程式大都是由志願人士,製作開源 / 自由軟件人士開發
小部分印表機有提供 *nix 的印表機驅動程式
但仍然有很多 *nix 印表機驅動程式少不免會發生列印問題
請接受這些情況,可能需要修改數次驅動程式來確認列印無誤

執行列表測試頁




頁面會不斷更新來確認列表進度
與通知欄方式相同,如可以在未列印前取消列印,列印中途停止等操作

Linux Mint 的測試頁

Ubuntu 的測試頁

Debian 的測試頁

Fedora 的測試頁
Linux Mint 的測試頁非常簡單,簡單到好像有缺憾一般,只有一組顏色預覽 及 一個看似未列印完成的外框
除了 Linux Mint 的測試頁,其他都非常詳細,除了顏色預覽,還有測試頁紙張大小、驅動程式、印表機型號、基本設定值、列印時間等資料
沒有留言 :
張貼留言