emerge cups
rc-update add cups default
/etc/init.d/cupsd start
创建目录 /usr/local/portage
在 make.conf 里添加: PORTDIR_OVERLAY="/usr/local/portage"
在 /usr/local/portage 下创建一个分类子目录 net-print
再创建一个和 .ebuild 同名的子目录(不包括版本号)
下载 .ebuild 和补丁到目录下
命令: ebuild bjfilter-2.50.ebuild digest 创建 Manifest 文件
echo "net-print/bjfilter" >> /etc/portage/package.keywords
echo "net-print/bjfilter pixmaip1000" >> /etc/portage/package.use
emerge bjfilter -av
编辑: /usr/share/cups/model/canonpixusip1000.ppd添加:
*OpenUI *CNQuality/Quality: PickOne
*DefaultCNQuality: 3
*CNQuality 2/High: "2"
*CNQuality 3/Normal: "3"
*CNQuality 4/Standard: "4"
*CNQuality 5/Economy: "5"
*CloseUI: *CNQuality
替换:
*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<>setpagedevice"
*CloseUI: *Resolution
为:
*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<>setpagedevice"
*Resolution 1200/1200 dpi: "<>setpagedevice"
*CloseUI: *Resolution
/etc/init.d/cupsd restart
然后用浏览器http://localhost:631 到 CUPS 配置页面添加打印机(很简单)
如果不工作,ln -s /usr/lib/cups/filter/pstocanonbj /usr/libexec/cups/filter