Код: Выделить всё
# echo 111 | /usr/local/bin/lp
request id is 1-11 (0 file(s))
Модератор: f0s
Код: Выделить всё
# echo 111 | /usr/local/bin/lp
request id is 1-11 (0 file(s))
Код: Выделить всё
localhost - - [25/Nov/2014:23:11:46 +0300] "POST /printers/1 HTTP/1.1" 200 406 Print-Job successful-ok
localhost - - [25/Nov/2014:23:14:09 +0300] "POST /printers/1 HTTP/1.1" 200 298 Create-Job successful-ok
localhost - - [25/Nov/2014:23:14:09 +0300] "POST /printers/1 HTTP/1.1" 200 232 Send-Document successful-ok
localhost - - [25/Nov/2014:23:15:20 +0300] "POST /printers/1 HTTP/1.1" 401 117 Purge-Jobs successful-ok
localhost - root [25/Nov/2014:23:15:20 +0300] "POST /printers/1 HTTP/1.1" 200 117 Purge-Jobs successful-ok
localhost - - [25/Nov/2014:23:15:34 +0300] "POST /printers/1 HTTP/1.1" 200 298 Create-Job successful-ok
localhost - - [25/Nov/2014:23:15:34 +0300] "POST /printers/1 HTTP/1.1" 200 232 Send-Document successful-ok
localhost - - [25/Nov/2014:23:15:47 +0300] "POST /jobs HTTP/1.1" 200 139 Cancel-Job successful-ok
localhost - - [25/Nov/2014:23:18:03 +0300] "POST /printers/1 HTTP/1.1" 200 406 Print-Job successful-ok
Код: Выделить всё
E [25/Nov/2014:23:09:14 +0300] Unable to create master DNS-SD reference: -65563
E [25/Nov/2014:23:10:19 +0300] [CGI] Unable to create service connection: No such file or directory
E [25/Nov/2014:23:10:19 +0300] [cups-deviced] PID 1312 (dnssd) stopped with status 1!
Код: Выделить всё
root 9 [25/Nov/2014:23:11:49 +0300] 1 1 - localhost Test Page - -
1 root 11 [25/Nov/2014:23:15:35 +0300] 1 1 - localhost (stdin) - -
1 root 12 [25/Nov/2014:23:18:04 +0300] 1 1 - localhost Test Page - -
Код: Выделить всё
cups 1427 0.0 0.1 34356 5648 - S 11:15PM 0:00.02 usb:/dev/ulpt0 10 root (stdin) 1 finishings=3 number-up=1 job-uuid=urn:uuid:aa1519ec-d0e4-30f8-478d-887902e741a5 job-originatin
cups 1498 0.0 0.1 48132 6708 - I 11:18PM 0:00.01 1 12 root Test Page 1 job-uuid=urn:uuid:96f448b6-b16e-3d0e-546e-d62366adf256 job-originating-host-name=localhost time-at-creati
cups 1499 0.0 0.2 53016 17756 - I 11:18PM 0:00.19 1 12 root Test Page 1 job-uuid=urn:uuid:96f448b6-b16e-3d0e-546e-d62366adf256 job-originating-host-name=localhost time-at-creati
cups 1500 0.0 0.1 34356 5732 - S 11:18PM 0:00.02 usb:/dev/ulpt0 12 root Test Page 1 job-uuid=urn:uuid:96f448b6-b16e-3d0e-546e-d62366adf256 job-originating-host-name=localhost t
cups 1501 0.0 0.4 240200 35664 - I 11:18PM 0:00.94 /usr/local/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout
Код: Выделить всё
Printer Test Page
Media Limits: 0.14 x 0.17 to 8.12 x 11.53 inches
Job ID: 1-12
Driver: STP01620.PPD
Driver Version: 5.2.10
Description: hp
Printer Location:
Make and Model: HP LaserJet 3055 - CUPS+Gutenprint v5.2.10
Printer: 1
Created at: Tue Nov 25 23:18:03 2014
Printed at: Tue Nov 25 23:18:03 2014
Код: Выделить всё
HPLIP expects printers to be attached as a ugen(4) devices. This
means that you must NOT have "device ulpt" in your kernel and ulpt
must NOT be loaded as a kernel module (you may also want to compile
print/cups-base with LIBUSB support). Please, follow the instructions
from print/cups-base pkg-message to setup correct permission for
usb devices.
In order to enable full functionality of hp tools, users must be
added to group `cups'.
Код: Выделить всё
sane-find-scanner -q
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x3417 [HP LaserJet 3055]) at libusb:/dev/usb:/dev/ugen0.3
Код: Выделить всё
# ls -la /dev/ugen0.3
lrwxr-xr-x 1 root wheel 9 Nov 26 09:57 /dev/ugen0.3 -> usb/0.3.0
Код: Выделить всё
# ls -la /dev/ugen4.5
lrw-rw---- 1 root operator 9 9 ноя 12:55 /dev/ugen4.5 -> usb/4.5.0
Код: Выделить всё
# ls -la /dev/ugen4.5
lrw-rw---- 1 root wheel 9 9 авг 23:20 /dev/ugen4.5 -> usb/4.5.0
Код: Выделить всё
ls -la /dev/ugen0.3
lrwxr-xr-x 1 root wheel 9 Nov 26 11:30 /dev/ugen0.3 -> usb/0.3.0
Код: Выделить всё
# ls -la /dev/usb/0.3.0
crw-rw---- 1 root operator 0x82 Nov 26 11:30 /dev/usb/0.3.0
Код: Выделить всё
# cat /etc/devfs.rules
[operator=5]
add path ugen4.5 mode 0660 group operator
add path usb/4.5.0 mode 0660 group operator
add path ulpt0 mode 0660 group cups
Код: Выделить всё
# cat /etc/rc.conf | grep opera
devfs_system_ruleset="operator"
Код: Выделить всё
scanimage --list-devices
Код: Выделить всё
# scanimage --list-devices
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).
Код: Выделить всё
http://www.sane-project.org/sane-mfgs.html#Z-HEWLETT-PACKARD
Код: Выделить всё
http://www.sane-project.org/cgi-bin/driver.pl?manu=hp
Код: Выделить всё
# scanimage -L
device `hpaio:/usb/HP_LaserJet_3055?serial=00CNSK604288' is a Hewlett-Packard HP_LaserJet_3055 all-in-one
Код: Выделить всё
# Firmware download HP Laserjet 1020 printer
attach 100 {
match "vendor" "0x03f0";
match "product" "0x2b17";
action "cat /usr/local/share/foo2zjs/firmware/sihp1020.dl > /dev/$device-name";
};
Получилось победить так:PYO писал(а):Код: Выделить всё
# Firmware download HP Laserjet 1020 printer attach 100 { match "vendor" "0x03f0"; match "product" "0x2b17"; action "cat /usr/local/share/foo2zjs/firmware/sihp1020.dl > /dev/$device-name"; };
Код: Выделить всё
/etc/devd/ulpt-cupsd.conf
attach 120 {
match "vendor" "0x03f0";
match "product" "0x2b17";
action "cat /usr/local/share/foo2zjs/firmware/sihp1020.dl > /dev/$device-name";
};