RICOHのMP2550へFreeBSDからCUP経由で印刷する方法。
まず、cupsをインストールする。portinstallでインストールを行うえば必要なファイルがインストールされる。
- cups-2.0.3_1 Common UNIX Printing System: Metaport to install
- cups-base-2.0.3_3 Common UNIX Printing System: Server
- cups-client-2.0.3_2 Common UNIX Printing System: Library cups
- cups-filters-1.0.71_2 Backends, filters and other software (was part of the core CUPS)
- cups-image-2.0.3_2 Common UNIX Printing System: Library cupsimage
- cups-pstoraster-8.15.4_8 Postscript interpreter for CUPS printing to non-PS printers
- foomatic-db-20150415 Database for integrating printer drivers with common spoolers
- foomatic-db-engine-4.0.12,2 Foomatic database engine
- foomatic-filters-4.0.17_3 Foomatic wrapper scripts
- gutenprint-foomatic-5.2.10 GutenPrint Printer Driver
cups-filtersがインストールされているか確認すること。
もしcups-filtersが無い場合
cupsdLoadBanners: Unable to open banner directory "/usr/local/share/cups/banners": No such file or directory
がhttp://localhost:631/admin/log/error_logに出力される。
ドライバーは http://www.openprinting.org/printers からダウンロードする。
MP2550(NonPstscript)なのでRicoh-RPDL_IV_Laser_Printer-rpdl.ppd をインストールする。
通信方式はsocketでもいけるはずだが、プリンターの終了待ちなるエラーメッセージが多発したので、
lpd://xxx.xxx.xxx.xxx/
とした。
また、古い設定ファイルが残っていると不具合を起こすので必ず更新作業を行う。
cupと
まず、Ghostscript_9.05-Ricoh.tar.gz をダウンロードしてくる。
その中にRicoh-Basic_RPDL.ppdがあるので取り出す。
- /usr/ports/print/cup と /usr/ports/print/foomatic-filters をインストールする。
- Ghostscript_9.05-Ricoh.tar.gzをricohからダウンロードしてくる。その中にRicoh-Basic_RPDL.ppdがあるので取り出す。
- Ricoh-Basic_RPDL.ppdの中にrpdl4 という文字列があるので、これをRPDLに書き換える。
< *PCFileName: "RPDL4.PPD"
---
> *PCFileName: "RPDL.PPD"
59c59
< -dNOPAUSE -dNOINTERPOLATE -sDEVICE=rpdl4%A%Z -sOutputFile=- -"
---
> -dNOPAUSE -dNOINTERPOLATE -sDEVICE=rpdl%A%Z -sOutputFile=- -"
- /usr/local/etc/foomatic/filter.confを適切に書き換える。
11c11
< # textfilter: a2ps
---
> textfilter: a2ps
35c35
< # gspath: gs
---
> gspath: /usr/local/bin/gs
38c38
< # execpath: /usr/local/bin:/usr/bin:/bin
---
> execpath: /usr/local/bin:/usr/bin:/bin
41a42
> cupsfilterpath: /usr/local/libexec/cups/filter
- http://localhost:631に接続してプリンターを登録。その際修正したRicoh-Basic_RPDL.ppdを使用する。