« ¼Â²È·Ø¤ÇÂè2ÃÆ | ¥á¥¤¥ó | ¥ä¥Õ¥ª¥¯¤Çê¤Ü¤¿ »
2007年01月09日
MP500@Linux again (incl scanner) |
ÉÔÄ´¤ÇÀ¾Íο͡£
ͼ¹ï¤è¤êMP500@LinuxºÆ³«¡£Á°²ó¤Ï¤³¤Á¤é
Linux(FedoreCore5)¤Ø¤Ï¥É¥é¥¤¥Ð¤ò¥¤¥ó¥¹¥È¡¼¥ëºÑ¤ß¡£
Samba·Ðͳ¤Ë¤è¤ë¶¦ÍºîÀï¤ò¹Í¤¨¤Æ¤¤¤¿¤¬¡¢CUPS·Ðͳ¤ËÊý¿ËÊѹ¹¡£
1.CUPS¥¢¥¯¥»¥¹¸¢¤ÎÀßÄê
/etc/cups/cupsd.conf ¤ò°Ê²¼¤Î¤è¤¦¤ËÀßÄꤷ¤Æ¡¢´ÉÍý²èÌ̤ȥץê¥ó¥¿¤Î¶¦Í¤òÆâÉô¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤ËÂФ·¤Æµö²Ä¡£´û¸¤Îcupsd.conf¤Ï¡¡Ç°¤Î¤¿¤á¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¤È¤Ã¤Æ¤ª¤¯¤È¤¤¤¤¤À¤í¤¦¡£
MaxLogSize 0 # Show troubleshooting information in error_log. LogLevel info Printcap /etc/printcap <Location /admin> AuthType Basic AuthClass System Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.0.0/24 </Location> <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.0.0/24 </Location> #Listen 127.0.0.1:631 Port 631
2.raw¥Ç¡¼¥¿¤ò¥¹¥ë¡¼¤µ¤»¤ë(RAW ¥â¡¼¥É¤ò ON)
Windows ¤Î°õºþ¥Ç¡¼¥¿¤òÁÇÄ̤·¤·¤Æ°õºþ¤¹¤ë¤è¤¦¤Ë¡¢CUPS ¥É¥é¥¤¥Ð¤òÀßÄê¡£
/etc/cups/mime.convs¤Î¸åÊý¤Î
application/octet-stream application/vnd.cups-raw 0 -
¤ÎÀèÆ¬¥³¥á¥ó¥È(#)¤ò¤È¤ë¡£
/etc/cups/mime.types¤Î¸åÊý¤Î
application/octet-stream
¤ÎÀèÆ¬¥³¥á¥ó¥È(#)¤ò¤È¤ë¡£
3.CUPSºÆµ¯Æ°
/etc/init.d/cupsd restart
4.Linux¤Ë¤Æ¥×¥ê¥ó¥¿¤òÅÐÏ¿
http://[¥µ¡¼¥ÐIP]:631/
̾Á°¤Ï²¿¤Ç¤â¤è¤¤¤¬¡¢Canon_MP500¡¡¤È¤¤¤¦Ì¾Á°¤ÇÅÐÏ¿¤·¤¿¡£
5.¥Æ¥¹¥È¥×¥ê¥ó¥È(Linux local)
6.Windows¤Ë¤Æ¥×¥ê¥ó¥¿ÄɲÃ
¡Ö¥¤¥ó¥¿¡¼¥Í¥Ã¥È¾å¤Þ¤¿¤Ï¼«Âð/²ñ¼Ò¤Î¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Î¥×¥ê¥ó¥¿¤ËÀܳ¤¹¤ë¡×¤òÁª¤Ó¡¢URL:¤Ë¤Ï¡¢
http://[¥µ¡¼¥ÐIP]:631/printers/[4.¤ÇÅÐÏ¿¤·¤¿¥×¥ê¥ó¥¿¤Î̾Á°]
¤ÈÆþÎÏ¡£(http://192.168.0.X:631/printers/Canon_MP500)
¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤ÏWindowsÍѤΤâ¤Î¤ò»È¤¦
7.¥Æ¥¹¥È¥×¥ê¥ó¥È(Windows¤«¤é)
À®¸ù¤òµ§¤ë¡£
¥¹¥¥ã¥Ê¤â»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¤é¤·¤¤¡£
SANE(SANE - Scanner Access Now Easy)¡¡¤òÆþ¼ê¡£
http://www.sane-project.org/
$tar zxf sane-backends-1.0.18.tar.gz $cd sane-backends-1.0.18 $./configure $make #make install$tar zxf sane-frontends-1.0.14.tar.gz
$cd sane-frontends-1.0.14
$./configure
$make
#make install
MP500Åù¡¢CANON¡¡Pixus(Pixma)¥·¥ê¡¼¥º¤Î¾ì¹ç¤Ï¡¢ÊÌÅӥɥ饤¥Ð¤¬¤¤¤ë¤è¤¦¤À¡£
http://home.arcor.de/wittawat/pixma/
$tar zxf mp150-0.12.2.tar.gz $cd mp150-0.12.2 $make #make install Please connect and turn on your scanner! I will try to detect it. Please wait until your scanner is ready, then press return... [½àÈ÷¤¬¤Ç¤¤¿¤éENTER]Connected scanner(s):
1: Canon PIXMA MP500 (SN:04A9170C_41DC7B)I'm about to do a test scan. Please put a magazine or photo in the scanner.
The image will be saved in /tmp/pixmascan.pnm, log file in /tmp/pixmascan.log.
Proceed? [YES/no]
[½àÈ÷¤¬¤Ç¤¤¿¤éENTER]
Executing: ./scan -x 10 -y 15 -w 51 -h 25 -1 -d 10 -W /tmp/pixmascan.pnm 2> /tmp/pixmascan.log
Connected scanner(s):
1: Canon PIXMA MP500 (SN:04A9170C_41DC7B)
Scan mode: color
DPI: 75x75
Offset: (30,44) = (1.02cm, 1.49cm)
Dimension: 151x74 = 5.11cm x 2.51cm
Size: 33 kiB (uncompressed, raw)
Source: Flatbed
Scanning...
100% done (33744 bytes written)
Ok, the driver seems to work with your scanner.
Please check /tmp/pixmascan.pnm if it shows a small picture.Install the stand-alone program in '/usr/local/bin'? [YES/no]
[ENTER]
The stand-alone programm was successfully installed at
/usr/local/bin/pixmascanSANE backend directory: /usr/local/lib/sane
SANE dll.conf: /usr/local/etc/sane.d/dll.conf
Installing the SANE backend...
libsane-pixma.so.1 already exists in /usr/local/lib/sane.
Overwrite? [yes/NO] yesBasic installation completed.
NOTE: You probably need to set the permission of the device node in
/dev/bus/usb or /proc/bus/usb. See the manual of your OS.
For Linux, see http://www.sane-project.org/README.linuxNow, I will test the SANE backend. Continue? [YES/no]
[ENTER]
Executing: scanimage > /tmp/scanimage.pnm 2> /tmp/scanimage.log
Please check /tmp/scanimage.pnm and /tmp/scanimage.log
/tmp/pixmascan.log,/tmp/pixmascan.pnm,/tmp/scanimage.pnm ¤ª¤è¤Ó /tmp/scanimage.log¥Õ¥¡¥¤¥ë¤¬¡¡¤Ç¤¤Æ¤¤¤¿¡£
³ÈÄ¥»Òpnm¥Õ¥¡¥¤¥ë¤Ï¥¹¥¥ã¥ó¤·¤¿²èÁü¥Õ¥¡¥¤¥ë¤Î¤è¤¦¤À¡£PNM ¤È¤Ï PPM(Portable Pix Map), PGM(Portable Gray Map), PBM(Portable Bit Map)¤ò¤Þ¤È¤á¤Æ¸À¤¦»þ¤Ë»È¤¤¡¢¤½¤ì¤¾¤ì¡¢¥Õ¥ë¥«¥é¡¼¡¢¥°¥ì¡¼¥¹¥±¡¼¥ë¤Î¥â¥Î¥¯¥í¡¢£²ÃͲèÁü¤ò°·¤¦·Á¼°¤é¤·¤¤¡£
¥Æ¥¥¹¥È¥¨¥Ç¥£¥¿¤Ç³«¤¤¤Æ¤ß¤¿¡£
P6
# SANE data follows
638 877
255
üí¡¦ò졦¡¦üñúîüò¡¦òõ¡¦¡¦¡¦úèüóîðüñúí¡¦ú硦¡¦úîüñüõ¡Ä
¤È¡¢¥Æ¥¥¹¥È¥Ç¡¼¥¿¤¬Ê¤֡£16¿Ê¿ô¤¬Â³¤¯¤è¤¦¤À¡£È󰵽̤Ȥ¤¤¦¤³¤È¤«¡£
¥Ø¥Ã¥À¤ÎP6¤ÏPPM(Portable Pix Map)·Á¼°¤ò°ÕÌ£¤·¡¢¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï°Ê²¼¤ÎÄ̤ꡣ
1¹ÔÌÜ P6
2¹ÔÌÜ ²èÁü¤Î½Ä¥µ¥¤¥º ²èÁü¤Î²£¥µ¥¤¥º
3¹ÔÌÜ Î̻Ҳ½¥ì¥Ù¥ë¤ÎºÇÂçÃÍ
4¹ÔÌÜ¡Á (0,0)¤ÎRedÃÍ, (0,0)¤ÎGreenÃÍ, (0,0)¤ÎBlueÃÍ, (1,0)¤ÎRedÃÍ,...
#¤Ç»Ï¤Þ¤ë¹Ô¤Ï¥³¥á¥ó¥È¤«¡©
¤È¤ê¤¢¤¨¤ºppm¥Õ¥¡¥¤¥ë¤òPaintShopPro8¤Ç³«¤¤¤Æ¤ß¤¿¡£¤ª¡ª¸«¤¨¤¿¸«¤¨¤¿¡ª
# scanimage -L device `pixma:04A9170C_41DC7B' is a CANON Canon PIXMA MP500 multi-function peripheral
¤µ¤Ã¤¤Ïǧ¼±¤·¤Ê¤«¤Ã¤¿¤¬¡¢pixma¥É¥é¥¤¥Ð¤òÆþ¤ì¤¿¤éǧ¼±¤·¤¿¡£
linux¤Ë¤ª¤±¤ë¥¹¥¥ã¥ó¤ÎÊýË¡¤Ï¥·¥ó¥×¥ë¤Ç¡¢
scanimage > ½ÐÎÏÀè¥Õ¥¡¥¤¥ë̾(³ÈÄ¥»Òpnm/ppm/pgm)
¤ÈÆþÎϤ¹¤ë¤À¤±¤Ç¤¢¤ë¡£
¤·¤«¤·root¥æ¡¼¥¶¤Ç¤Ï¥¹¥¥ã¥ó¤Ç¤¤ë¤â¤Î¤Î¡¢°ìÈ̥桼¥¶¤Ç¤Ï¥¹¥¥ã¥ó¤Ç¤¤º¡¢
$ scanimage -LNo scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
¤É¤¦¤¹¤ë¤«Ä´¤Ù¤¿¤È¤³¤í¡¢¥Ç¥Ð¥¤¥¹¤òÄ´¤Ù¤Æ(scanimage -L¤Ç¤ï¤«¤ë)¡¢
¤´¤Ë¤ç¤´¤Ë¤ç
¤È¤¹¤ì¤Ð¤è¤µ¤½¤¦¤À¡£
¼¡¤Ë¡¢Linux¤Ë¤Ä¤Ê¤¬¤Ã¤¿¥¹¥¥ã¥Ê¤Ë¡¢¥Í¥Ã¥È¥ï¡¼¥¯±Û¤·¤ËWindows¤«¤é¥¹¥¥ã¥ó¤Ç¤¤ë¤è¤¦¡¢Windows¥¯¥é¥¤¥¢¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¡£
¤½¤ÎÁ°¤ËLinux¦¤Çsane ¤Î¥Ç¡¼¥â¥ó¡¢saned ¤ò xinit.d ¤«¤é¸Æ¤Ó½Ð¤¹¤è¤¦¤ËÀßÄê¡£
# cat /etc/services | grep 6566
sane-port 6566/tcp # SANE Control Port
sane-port 6566/udp # SANE Control Port#/etc/xinetd.d/sane
(°Ê²¼¤ÎÆâÍÆ¤òµ½Ò)
service sane
{
port = 6566
socket_type = stream
server = /usr/sbin/saned
user = root
wait = no
disable = no
}
C ¥É¥é¥¤¥Ö¤Î¥ë¡¼¥Èľ²¼¤Î sane ¥Ç¥£¥ì¥¯¥È¥ê ¤Ë¥Õ¥¡¥¤¥ë(xsane-win32-0.991.zip)¤òŸ³«
C:\sane\etc\sane.d\net.conf ¤ËÀܳÀ襵¡¼¥Ð¤Î IP ¥¢¥É¥ì¥¹¤ò½ñ¤¯
C:\sane\bin\xsane.exe ¤òµ¯Æ°
³¤¤Ï¤Þ¤¿º£ÅÙ£÷
2008:
Åê¹Æ¼Ô onsenfan [ Linux¥µ¡¼¥Ð, PC¡¦¥¤¥ó¥¿¡¼¥Í¥Ã¥È ] : 2007年01月09日 23:17
¤³¤Îµ»ö¤¬Ìò¤ËΩ¤Ã¤¿¡¿¤ª¤â¤·¤í¤¤¤È»×¤Ã¤¿¤é¡¢¥ï¥ó¥¯¥ê¥Ã¥¯¤Ç±þ±ç¤ª´ê¤¤¤·¤Þ¤¹
¥È¥é¥Ã¥¯¥Ð¥Ã¥¯
¤³¤Î¥¨¥ó¥È¥ê¡¼¤Î¥È¥é¥Ã¥¯¥Ð¥Ã¥¯URL:
http://blog.odorokutamegoro.com/cgi-bin/mt/mt-tb.cgi/1740_2241622202674