ให้ใช้ fire fox จะดูได้สะดวกกว่านะครับ
| ในที่นี้ผมต่อ printer กับ GENTOO ผ่าน USB และ Parallel Port เท่านั้นครับ 1. Compilied Kernel ให้ support Port Printer ก่อนนะครับ ดังตอนแรกที่เขียน ถ้าให้ GENTOO Compilied ให้ ก็ใช้คำสั่งนี้ครับ #genkernel –menuconfig all ส่วนของ Parallel Port Device Drivers –> <> Parallel port support <> PC-style hardware Device Drivers –> Character Devices –> <> Parallel printer support [] IEEE 1284 transfer modes) ส่วนของUSB Device Drivers –> USB Support –> <*> Support for Host-side USB (…) — USB Host Controller Drivers (Select the HCD that your system uses. If you do not know which one to select, run “lspci -v |
grep HCI” from another terminal) <> EHCI HCD (USB 2.0) support ( or ) <> OHCI HCD support ( or ) <> UHCI HCD (most Intel and VIA) support (…) <> USB Printer support 2.ติดตั้ง CUPS #emerge -pv cups #emerge cups #emerge coldplug สำหรับ USB rc-update add coldplug default rc-update add cupsd default 3. แก้ไขแฟ้ม /etc/cups/cupsd.conf <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From IP เครื่องที่อนุญาติให้ใช้ </Location> <Location /admin> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From IP ของเครื่องที่จะมา set CUPS </Location> 4.#rc-update add cupsd default สั่งให้รันโปรแกรม cups ตั้งแต่เปิดเครื่อง 5.#/etc/init.d/cupsd start รันโปรแกรม cups 6.เปิด browser ไป URL นี้ http://IPเครื่อง GENTOO:631/admin 7.เลือก Add Printer ตั้งชื่อ Printer แล้วเลือก port ที่ต่อกับเครื่อง Print เลือก Driver แล้วลอง print test 8.log error ต่างๆเก็ยไว้ที่ /var/log/cups/error_log 9.Printer บางรุ่นอาจจะต้องติดตั้ง Driver พิเศษ #emerge gimp-print #emerge -vp hplip #emerge pnm2ppa แล้วแต่ Driver ที่ต้องการ ปล. เมื่อต่อเครื่องพิมพ์แล้วสามารถตรวจสอบได้ด้วยคำสั่ง สำหรับ parallel #dmesg |
grep -i print parport0: Printer, RICOH Aficio AP4510 สำหรับ USB #lsusb Bus 004 Device 002: ID 03f0:1017 RICOH Aficio AP4510 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 การใช้คำสั่ง lsusb ต้องติดตั้งเพิ่มเพิ่มเติม #emerge usbutils |