« ¼Â²È·Ø¤ÇÂè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/pixmascan

SANE 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] yes

Basic 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.linux

Now, 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 -L

No 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:
¥µ¥Æ¥é¥¤¥È¥ª¥Õ¥£¥¹¡¡¼«¼Ò¤Ë¤Æ¿·µ¡Ç½¤Î¹©ÄøÉ½ºîÀ®¡£¡¡¥ª¥ó¥é¥¤¥ó¤Ë¤Æ¼Áµ¿±þÅú¡£ Íè½µ¤Î¿®½£±óÀ¬¤Î¹â®¥Ð¥¹¤ò¡¡¥Ï¥¤¥¦¥§¥¤¥Ð¥¹.com¤Ç¼êÇÛ¡£Í½Ìó¤Ï¥ª¥ó¥é¥¤¥ó¤Ç ´°Î»(¥æ¡¼¥¶ÅÐÏ¿Í×)¡£È¯·ô¤ÏÅöÆüÁë
2006:
²¹Àô¾ðÊ󹹿·¡¡¡¡µ×¡¹¤ËËܶȤβ¹Àô¾ðÊó¤Î¥á¥ó¥Æ¡£ ºÇ¶á·ÈÂÓ¸þ¤±¥µ¥¤¥È¤Î¥¢¥¯¥»¥¹¤¬Áý¤¨¤Æ¤­¤¿¤Î¤Ç¡¢ÉʼÁ¥Á¥§¥Ã¥¯¡Ü¥¢¥Õ¥£¥ê¥¨¥¤¥ÈÊѹ¹¡£ Excel_VBA¤ò²þ½¤¤·¤ÆÂбþ¡£ ¥µ¥Ö¥É¥á¥¤¥óÊѹ¹(www2->www)Âбþ¤Î¥Á¥§¥Ã¥¯¤Ê¤É¡£ ²¹Àô¾ðÊó¤Ã¤Æ¤¤¤í¤¤¤í¤¢¤ë¤ó¤Ç...
2005:
½éÆüÍ˽жС¡3Ï¢µÙ¤À¤¬¡¢¤ä¤ó¤´¤È¤Ê¤­»ö¾ð¤Ë¤è¤ê½Ð¿Ø¡£ ¥Ý¥ê¥´¥óÆâÊñȽÄê¤Î¥Ð¥°(¥Ç¥°¥ì¡¼¥É)½¤Àµ¤È¡¢»ñÎÁºîÀ®¡£ ôÅöÉôĹŤâ½Ð¿Ø¡£ ·òÆ®¤·¤¿¡¢¤Ä¤â¤ê¤Ç¤¢¤ë¡£...
2004:
MRTG¡¡5Ï¢Åê¤Ç½Ð¼Ò¡£ µ×¡¹¤Ë¥Ð¥¤¥È·¯»²Àï¡£ ºòÆü¤Î³¤­¤Î¼ÂÁõ¤ª¤è¤ÓÉé²Ù¥Æ¥¹¥È¤Î½àÈ÷¤ò¹Ô¤¦¡£ ´Ä¶­¤¬À°¤Ã¤¿¤Î¤Ç¤¤¤¶¼Â¹Ô¤·¤è¤¦¤È»×¤Ã¤¿¤¬¡¢¥Æ¥¹¥È·ë²Ì¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥Ä¡¼¥ë¤¬À°¤Ã¤Æ¤¤¤Ê¤¤¤è¤¦¤À¡£ ¤Þ¤À¥Æ¥¹¥ÈÍѤΥɥ饤¥Ð¤â´üÂÔÄÌ¤êÆ°ºî¤·¤Ê¤¤¤Ê¤ÉÆñµ·¤â¿¤¤...
2003:
18¤­¤Ã¤×¾Ã²½¤Îι¡¡µ®½Å¤ÊµÙ¤ß¤òÍøÍѤ·¤Æ18¤­¤Ã¤×¾Ã²½¤ËÎå¤à¤Ù¤¯¡¢¤¢¤Æ¤â¤Ê¤¯½Ð³Ý¤±¤ë¡£¤·¤«¤·¸á¸å¤«¤é½Ð¿Ø¤È¤¤¤¦¤ä¤ëµ¤¤Î¤Ê¤¤Î¹¤Ç¤¢¤ë¡£²£ÉͤǤȤꤢ¤¨¤º±ØÊÛ¤òÇã¤Ã¤Æ²£¿Ü²ìÀþ¥Û¡¼¥à¤Ø¡£¶öÁ³Í褿13:08·¯ÄŹԤ˾è¤ê¹þ¤à¤â¿ô¾¯¤Ê¤¤¥Ü¥Ã¥¯¥¹Àʤ϶õ¤¤¤Æ¤ª¤é¤º¿·Àîºê¤Ç²¼¼Ö¤·...
2002:
¤È¤Û¤Û¡¼¤¤¡¡¡¡»ÅÍͽñ¤òÁ÷ÉÕ¤¹¤ë¤Ä¤â¤ê¤À¤Ã¤¿¤¬¡¢¥Õ¥¡¥¤¥ë¤¬²õ¤ì¤Æ¤¤¤¿¡£¤È¤Û¤Û¡¼¤¤¡£À§Èó¤â¤Ê¤¯¤Á¤ç¤Ã¤È¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤«¤éºÆºîÀ®¡£¤Ê¤ó¤È¤«»ö¤Ê¤­¤òÆÀ¤¿¡£...

Åê¹Æ¼Ô onsenfan [ Linux¥µ¡¼¥Ð, PC¡¦¥¤¥ó¥¿¡¼¥Í¥Ã¥È ] : 2007年01月09日 23:17

¤³¤Îµ­»ö¤¬Ìò¤ËΩ¤Ã¤¿¡¿¤ª¤â¤·¤í¤¤¤È»×¤Ã¤¿¤é¡¢¥ï¥ó¥¯¥ê¥Ã¥¯¤Ç±þ±ç¤ª´ê¤¤¤·¤Þ¤¹

¥È¥é¥Ã¥¯¥Ð¥Ã¥¯

¤³¤Î¥¨¥ó¥È¥ê¡¼¤Î¥È¥é¥Ã¥¯¥Ð¥Ã¥¯URL:
http://blog.odorokutamegoro.com/cgi-bin/mt/mt-tb.cgi/1740_2241622202674

¥³¥á¥ó¥È

¥³¥á¥ó¥È¤·¤Æ¤¯¤À¤µ¤¤




Êݸ¤·¤Þ¤¹¤«?



¥¸¥ª¥¿¡¼¥²¥Æ¥£¥ó¥°
counter
2