[HOME] > PC-UNIX Tips > Canon MG6230 on Plamo 5.2
Since: 2014/04/04
PC-UNIX Tips
Plamo 5.2でCanon MG6230プリンタを設定します。MG6230は、有線LANとUSBにてPCと 接続しています。
MG6230のUSB接続情報として、messages出力とlsusb出力を確認します。
# cat /var/log/messages
...
Apr 6 20:20:28 localhost kernel: usb 5-2: new full-speed USB device number 2 using uhci_hcd
Apr 6 20:20:28 localhost kernel: usb 5-2: New USB device found, idVendor=03eb, idProduct=3301
Apr 6 20:20:28 localhost kernel: usb 5-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Apr 6 20:20:28 localhost kernel: usb 5-2: Product: Standard USB Hub
Apr 6 20:20:28 localhost kernel: hub 5-2:1.0: USB hub found
Apr 6 20:20:28 localhost kernel: hub 5-2:1.0: 4 ports detected
Apr 6 20:20:28 localhost kernel: usb 5-2.1: new full-speed USB device number 3 using uhci_hcd
Apr 6 20:20:28 localhost kernel: usb 5-2.1: not running at top speed; connect to a high speed hub
Apr 6 20:20:28 localhost kernel: usb 5-2.1: New USB device found, idVendor=04a9, idProduct=1755
Apr 6 20:20:28 localhost kernel: usb 5-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 6 20:20:28 localhost kernel: usb 5-2.1: Product: MG6200 series
Apr 6 20:20:28 localhost kernel: usb 5-2.1: Manufacturer: Canon
Apr 6 20:20:28 localhost kernel: usb 5-2.1: SerialNumber: XXXXXX
Apr 6 20:20:28 localhost kernel: usb-storage 5-2.1:1.2: USB Mass Storage device detected
Apr 6 20:20:28 localhost kernel: scsi5 : usb-storage 5-2.1:1.2
Apr 6 20:20:29 localhost kernel: scsi 5:0:0:0: Direct-Access Canon MG6200 series 0104 PQ: 0 ANSI: 2
Apr 6 20:20:29 localhost kernel: sd 5:0:0:0: [sdg] Attached SCSI removable disk
# lsusb
Bus 002 Device 002: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Bus 004 Device 003: ID 04ca:0027 Lite-On Technology Corp.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 03eb:3301 Atmel Corp. at43301 4-Port Hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 04a9:1755 Canon, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Plamo-5.xはusblpカーネルモジュールを無効にしているので、usblpカーネルモジュール を有効にします。
# vi /etc/modprobe.d/plamo-default.conf
...
#install usblp /bin/true コメントアウト
# cat /var/log/messages
...
Apr 6 21:21:04 localhost kernel: usblp 5-2.1:1.1: usblp1: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1755 usblpカーネルモジュールをロード
Apr 6 21:21:04 localhost kernel: usbcore: registered new interface driver usblp
...
Apr 6 21:21:07 localhost kernel: usb 5-2.1: usbfs: interface 1 claimed by usblp while 'colord-sane' sets config #1
# lsmod | grep usb
usblp 9658 0
usbhid 30777 0
hid 76575 2 hid_generic,usbhid
# ls -l /dev/usb/
total 0
crw------- 1 root root 180, 0 Apr 6 20:11 hiddev0
crw-rw---- 1 root lp 180, 1 Apr 6 21:21 lp1
MG6230のLinux用ドライバをダウンロードします。
PIXUS MG6230 IJ Printer Driver Ver. 3.60 for Linux
rpm形式しかないため、rpm2tgzでtgz形式に変換して展開し、tarでインストールします。
# cd /tmp
# tar zxvf cnijfilter-mg6200series-3.60-1-rpm.tar.gz
cnijfilter-mg6200series-3.60-1-rpm/
cnijfilter-mg6200series-3.60-1-rpm/packages/
cnijfilter-mg6200series-3.60-1-rpm/packages/cnijfilter-mg6200series-3.60-1.x86_64.rpm
cnijfilter-mg6200series-3.60-1-rpm/packages/cnijfilter-common-3.60-1.i386.rpm
cnijfilter-mg6200series-3.60-1-rpm/packages/cnijfilter-common-3.60-1.x86_64.rpm
cnijfilter-mg6200series-3.60-1-rpm/packages/cnijfilter-mg6200series-3.60-1.i386.rpm
cnijfilter-mg6200series-3.60-1-rpm/resources/
cnijfilter-mg6200series-3.60-1-rpm/resources/printer_zh_utf8.lc
cnijfilter-mg6200series-3.60-1-rpm/resources/printer_ja_utf8.lc
cnijfilter-mg6200series-3.60-1-rpm/resources/printer_fr_utf8.lc
cnijfilter-mg6200series-3.60-1-rpm/install.sh
# cd cnijfilter-mg6200series-3.60-1-rpm/packages/
# ls
cnijfilter-common-3.60-1.i386.rpm cnijfilter-mg6200series-3.60-1.i386.rpm
cnijfilter-common-3.60-1.x86_64.rpm cnijfilter-mg6200series-3.60-1.x86_64.rpm
# rpm2tgz cnijfilter-common-3.60-1.x86_64.rpm
# rpm2tgz cnijfilter-mg6200series-3.60-1.x86_64.rpm
# ls
cnijfilter-common-3.60-1.i386.rpm cnijfilter-mg6200series-3.60-1.i386.rpm
cnijfilter-common-3.60-1.x86_64.rpm cnijfilter-mg6200series-3.60-1.x86_64.rpm
cnijfilter-common-3.60-1.x86_64.tgz cnijfilter-mg6200series-3.60-1.x86_64.tgz
# tar zxvf cnijfilter-common-3.60-1.x86_64.tgz
...
# cd cnijfilter-common-3.60-1.x86_64
# tar zcvf cnijfilter-common-3.60-1.x86_64.tgz usr
...
# cd ..
# tar zxvf cnijfilter-mg6200series-3.60-1.x86_64.tgz
...
# cd cnijfilter-mg6200series-3.60-1.x86_64
# tar zcvf cnijfilter-mg6200series-3.60-1.x86_64.tgz usr
...
# cd /tmp/cnijfilter-mg6200series-3.60-1-rpm/packages/
# installpkg cnijfilter-common-3.60-1.x86_64.tgz
...
# pushd /var/log/packages/
# mv cnijfilter cnijfilter-common
# popd
# installpkg cnijfilter-mg6200series-3.60-1.x86_64.tgz
...
# ps -ef | grep cups
root 9714 1 0 20:39 ? 00:00:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
root 13141 4646 0 20:48 pts/1 00:00:00 grep cups
# /etc/rc.d/init.d/cups restart
cups: restarted scheduler.
# ps -ef | grep cups
root 9714 1 0 20:39 ? 00:00:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
root 13162 4646 0 20:48 pts/1 00:00:00 grep cups
lpadminでUSB接続プリンタとして設定します。
# ls -l /dev/usb/
total 0
crw------- 1 root root 180, 0 Apr 6 20:11 hiddev0
crw-rw---- 1 root lp 180, 1 Apr 6 21:21 lp1
# lpadmin -p MG6230USB -m canonmg6200.ppd -v cnijusb:/dev/usb/lp1 -E
また、LAN接続プリンタとしても設定します。MACアドレスによりプリンタを識別します。
# lpadmin -p MG6230LAN -m canonmg6200.ppd -v cnijnet:/88-87-17-XX-XX-XX -E
しかし、USB接続プリンタ、LAN接続プリンタとも印刷できません (;_;) 原因を調べまふ。
次のサイトを参考にCUPSエラーログを確認します。原因はlibtiff共有ライブラリがないた めと判明しました。
■ Linuxでプリンタが動作しない場合の確認方法(CUPS) (Fedora,Ubuntu,CentOS)
# cd /etc/cups/
# vi cupsd.conf
...
LogLevel debug
...
# /etc/rc.d/init.d/cups restart
cups: restarted scheduler.
# vi /var/log/cups/error_log
...
D [07/Apr/2014:00:18:13 +0900] [Job 53] /usr/local/bin/cifmg6200: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory
...
また、共有ライブラリを確認するとlibpngも必要であることがわかります。
# ldd /usr/local/bin/cifmg6200
linux-vdso.so.1 (0x00007fffde4cc000)
libcnbpcmcm390.so => /usr/lib64/libcnbpcmcm390.so (0x00007fe16f47a000)
libcnbpess390.so => /usr/lib64/libcnbpess390.so (0x00007fe16f21f000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe16ef1e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe16ed1a000)
libtiff.so.3 => not found
libpng12.so.0 => not found
libcnbpcnclapi390.so => /usr/lib64/libcnbpcnclapi390.so (0x00007fe16ec0f000)
libcnbpcnclbjcmd390.so => /usr/lib64/libcnbpcnclbjcmd390.so (0x00007fe16eb0a000)
libcnbpcnclui390.so => /usr/lib64/libcnbpcnclui390.so (0x00007fe16ea03000)
libpopt.so.0 => /usr/lib64/libpopt.so.0 (0x00007fe16e7f7000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe16e434000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe16e217000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe16f39a000)
libtiff共有ライブラリをインストールします。
% cd tiff-3.9.7/
% ./configure --libdir=/usr/local/lib64
...
% make |& tee make.log
...
# make install |& tee make-install.log
...
# ldconfig
libpng共有ライブラリをインストールします。
% cd libpng-1.2.51/
% ./configure --libdir=/usr/local/lib64
...
% make |& tee make.log
...
# make install |& tee make-install.log
...
# ldconfig
libtiff.so.3,libpng12.so.0とも認識されました。
# ldd /usr/local/bin/cifmg6200
linux-vdso.so.1 (0x00007ffff05fe000)
libcnbpcmcm390.so => /usr/lib64/libcnbpcmcm390.so (0x00007fa389d08000)
libcnbpess390.so => /usr/lib64/libcnbpess390.so (0x00007fa389aad000)
libm.so.6 => /lib64/libm.so.6 (0x00007fa3897ac000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fa3895a8000)
libtiff.so.3 => /usr/local/lib64/libtiff.so.3 (0x00007fa389344000)
libpng12.so.0 => /usr/local/lib64/libpng12.so.0 (0x00007fa38911f000)
libcnbpcnclapi390.so => /usr/lib64/libcnbpcnclapi390.so (0x00007fa389014000)
libcnbpcnclbjcmd390.so => /usr/lib64/libcnbpcnclbjcmd390.so (0x00007fa388f0f000)
libcnbpcnclui390.so => /usr/lib64/libcnbpcnclui390.so (0x00007fa388e08000)
libpopt.so.0 => /usr/lib64/libpopt.so.0 (0x00007fa388bfc000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa388839000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa38861c000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa389c28000)
libjpeg.so.8 => /usr/lib64/libjpeg.so.8 (0x00007fa3883b9000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fa3881a3000)
で、テストページを印刷してみると... よっし、印刷でけた。 今度は、LAN接続プリンタでも印刷。正常に印刷できました :-)
最後は、スキャナドライバをインストールします。
PIXUS MG6230 ScanGear MP Ver. 1.80 for Linux
# tar zxvf scangearmp-mg6200series-1.80-1-rpm.tar.gz
...
# cd scangearmp-mg6200series-1.80-1-rpm/packages/
# rpm2tgz scangearmp-common-1.80-1.x86_64.rpm
# rpm2tgz scangearmp-mg6200series-1.80-1.x86_64.rpm
# ls
scangearmp-common-1.80-1.i386.rpm scangearmp-mg6200series-1.80-1.i386.rpm
scangearmp-common-1.80-1.x86_64.rpm scangearmp-mg6200series-1.80-1.x86_64.rpm
scangearmp-common-1.80-1.x86_64.tgz scangearmp-mg6200series-1.80-1.x86_64.tgz
# tar zxvf scangearmp-common-1.80-1.x86_64.tgz
...
# cd scangearmp-common-1.80-1.x86_64
# tar zcvf scangearmp-common-1.80-1.x86_64.tgz *
...
# installpkg scangearmp-common-1.80-1.x86_64.tgz
scangearmp-common-1.80-1.x86_64 のインストール中
PACKAGE DESCRIPTION:
# pushd /var/log/packages/
...
# mv scangearmp scangearmp-common
# popd
...
# cd ..
# tar zxvf scangearmp-mg6200series-1.80-1.x86_64.tgz
# cd scangearmp-mg6200series-1.80-1.x86_64
# tar zcvf scangearmp-mg6200series-1.80-1.x86_64.tgz *
...
# installpkg scangearmp-mg6200series-1.80-1.x86_64.tgz
scangearmp-mg6200series-1.80-1.x86_64 のインストール中
PACKAGE DESCRIPTION:
#
スキャンは、GIMPまたは専用GUIから実行します。
> gimp &
[ファイル]-[画像の生成]-[Xsane: pixma:MG6230(IPアドレス)]
> scangearmp &
PC-UNIX Tips
Written by kabada