# 表題 local パラレルプリンタの使い方 # # 履歴 2002/03/19 小高正嗣 # ■システム構成 PC 本体 HITACHI Prius PCT20R4TD プリンタ Canon BJM70 OS Debian GNU/Linux 2.2 (potato) ■手順 1) カーネルを再構築. # cd /usr/src/linux # make xconfig 以下をサポート. Parallel port support [y/m] PC-style hardware [y/m] Parallel printer support[y/m] 2) コンパイル. PCMCIA のコンパイルを忘れないこと. # make dep # make-kpkg clean # make-kpkg --revision=PCT20R4TD.1.2 kernel-mage # cd ../ # dpkg -i kernel-image-2.2.18pre21_PCT20R4TD.1.2_i386.deb # cd module/pcmcia/ # make all; make install 3) lprng パッケージのインストール # apt-get instal lprng 4) プリンタを接続し, 再起動. 起動後, /proc/parport 以下にファイルが作成されているかどうか確認する. 5) /etc/printcap の編集. 以下のエントリを加える. bj|Canon BJM70 printer:\ :lp=/dev/lp0:\ :sd=/var/spool/lpd/lp:\ :if=/usr/local/bin/print-filter.sh:\ :lf=/var/log/lp-errs:\ :mx#0:\ :sh: 6) gs を用いた変換フィルタファイルの作成. 以下のコマンドを書き込む. /usr/bin/gs -q -sDEVICE=bjc600 -sPAPERSIZE=a4 -r360x360 -dSAFER -dNOPAUSE -sNOBATCH -sOutputFile=- - -sDEVICE= の指定に注意. ■参考文献 ・BJ-M70 (Cannonのプリンタ) を USB で使う. http://infobsession.dtdns.net/~ryu1/entity/index.htm から.