打印服務器無疑需要的是CUPS(Common Unix Print System),配置及管理還是很簡單。但安裝驅動卻是麻煩事,除非打印機驅動很容易得到,唉,本人就遇到了一麻煩事,服務器操作系統爲Ubuntuserver 12.04.1 amd64,打印機爲Canon LBP2900,蛋痛得裝不上,根本沒有兼容的驅動,如遇此情況放棄吧。但本人經過一天的google,終於在ubuntuserver 12.04.1 i386下,裝上了Canon LBP2900,下面開始:
一、安裝Canon LBP 2900驅動,本人google了大量的方法,終於在其中找到一個最簡單,最傻瓜的安裝方法,但需要一點修改。
1. 下載驅動包:http://download.csdn.net/detail/fightingbull/4694116
2. 安裝方法:
$sudo vicanon*_install.sh //找到59687 改爲 59787
$sudo ./canon*_install.shLBP2900 //在readme裏找幫助文檔,查看支持的型號。
執行完後需要重啓機器。
Debian-based Linux systems using the the 32bit or 64bit OSarchitecture.
Current supported printers:
* LBP-1120 * LBP3250
* LBP-1210 * LBP3300
* LBP2900 * LBP3310
* LBP3000 * LBP3500
* LBP3010 * LBP5000
* LBP3018 * LBP5050
* LBP3050 * LBP5100
* LBP3100 * LBP5300
* LBP3108 * LBP6300dn
* LBP3150 * LBP7200C
* LBP3200 * LBP9100Cdn
* LBP3210
二、安裝配置CUPS,假設labserver爲服務器主機名,cglab爲服務器管理員賬號。
1. 安裝CUPS,
$sudo apt-get install cups
2. 由於服務器無界面,所以需要通過其他機器的瀏覽器來進行設置,首先在服務器端修改cupsd.conf。如果有桌面GUI,可以直接在本機瀏覽器打開:http://localhost:631,不需要做此步。
$sudo vi /etc/cups/cupsd.conf
對該文件做如下修改:
(1)Listen localhost:631 改爲 Listen 631
(2)<Location />
Allow all //允許任何人訪問
Order allow,deny
</Location>
(3)<Location /admin>
Allow all //允許任何人訪問
Order allow,deny
</Location>
(4)<Location /admin/conf>
AuthType Default
Require user cglab //需要服務器驗證賬號,當訪問/admin/conf時
Order allow,deny
</Location>
3. 重啓CUPS,$sudo/etc/init.d/cups restart. 在客戶端機器用瀏覽器打開http://labserver:631,管理界面已經有各種詳細介紹了,就不多述了,上圖:
最後上個可能有用的鏈接:
https://help.ubuntu.com/community/CanonCaptDrv190#Ubuntu_12.04_Install
輝輝
(FightingBull Studio)