Canon LBP3000をUbuntu 22.04で使う
以前、Canon LBP3000をUbuntuで使う、という記事を書きましたが、Ubuntuを22.04(Jammy Jellyfish)にしたら同じ手順を踏んでもプリンターがうんともすんともいわなくなってしまいました。CUPSを見ると、「CCPD: Connection Refused」と出ていますが、所詮は素人なので直し方はわかりません。
ただ、以前にも参照したUbuntu Communityを改めて見てみると、オープンソースのドライバーがあるようなのでそれを使ってみたところ、再び印刷できるようになりました。
なお、私が持っているプリンターはLBP3000ですが、下記シリーズでも問題ないようです。
- LBP2900/LBP2900B
- LBP3000
- LBP3010/LBP3018/LBP3050
- LBP3100/LBP3108/LBP3150
それでは具体的な手順を。
より細かい手順は参考に記載した導入ガイドを参照ください。
必要なライブラリのインストール
$ sudo apt install build-essential automake libcups2-dev $ sudo apt install git
CAPTドライバのインストール
- ダウンロード(git)
$ git clone https://github.com/mounaiban/captdriver.git
- コンパイル
- superuserである必要はない
$ cd captdriver $ aclocal $ autoconf $ automake --add-missing configure.ac:8: installing './compile' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' src/Makefile.am: installing './depcomp' $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '1000' is supported by ustar format... yes checking whether GID '1000' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for cups-config... /usr/bin/cups-config checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: executing depfiles commands $ make # 中略 $ ppdc -v -d . src/canon-lbp.drv ppdc: Writing ./Canon-LBP3010.ppd. ppdc: Writing ./Canon-LBP2900-3000.ppd.
- インストール
- ここはsuperuserで行う
$ sudo make install $ sudo cp -p /usr/local/bin/rastertocapt $(cups-config --serverbin)/filter/
設定
lpinfo
で対象のURIを取得
$ lpinfo -v network lpd network https file cups-brf:/ network beh direct hp network ipps network socket network http network ipp direct usb://Canon/LBP3000?serial=0000A123XYZd # ←これ(シリアルNoはダミー) direct hpfax
- プリンタを登録
- 以前の記事では、自動認識された名前(例えばLBP3000)と同じ名前は不可、と記載したが、今回の手順では、対象のプリンタを削除しておけば問題ないことを確認
$ lpadmin -p LBP3000 -v usb://Canon/LBP3000?serial=0000A123XYZd -P Canon-LBP2900-3000.ppd -E