Code Sample |
$ scanimage -L [/var/log/messages] Sep 18 15:16:43 box daemon.err inetd[1572]: getpwnam: saned: No such user |
Code Sample |
$ sudo /etc/init.d/inetd restart $ telnet localhost 6566 Trying 127.0.0.1... Connected to box. Escape character is '^]'. ^] Connection closed by foreign host. $ scanimage -L device `hpaio:/usb/OfficeJet_K80?serial=ES0911401VOH' is a Hewlett-Packard OfficeJet_K80 all-in-one device `net:localhost:hpaio:/usb/OfficeJet_K80?serial=ES0911401VOH' is a Hewlett-Packard OfficeJet_K80 all-in-one $ scanimage -d net:localhost:hpaio:/usb/OfficeJet_K80?serial=ES0911401VOH --test scanimage: scanning image of size 638x1125 pixels at 24 bits/pixel scanimage: acquiring RGB frame, 8 bits/sample scanimage: reading one scanline, 1914 bytes... PASS scanimage: reading one byte... PASS scanimage: stepped read, 2 bytes... PASS ... |
Code Sample |
$ telnet 192.168.1.100 6566 Trying 192.168.1.100... Connected to 192.168.1.100. Escape character is '^]'. ^] Connection closed by foreign host. $ export PATH=/opt/hplip/bin:/opt/python-2.3/bin:$PATH $ scanimage -L device `net:192.168.1.100:hpaio:/usb/OfficeJet_G85?serial=SGG13E0C49VL' is a Hewlett-Packard OfficeJet_G85 all-in-one $ scanimage --test scanimage: scanning image of size 638x877 pixels at 24 bits/pixel scanimage: acquiring RGB frame, 8 bits/sample scanimage: reading one scanline, 1914 bytes... PASS scanimage: reading one byte... PASS scanimage: stepped read, 2 bytes... PASS scanimage: stepped read, 4 bytes... PASS yada yada scanimage: stepped read, 3 bytes... PASS |
Code Sample |
$ cat /etc/sane.d/saned.conf 192.168.1.1/120 $ sudo /opt/hplip/sbin/saned -d128 [saned] main: starting debug mode (level 128) ... [saned] main: [1] bind () to port 6566 [saned] main: [1] listen () [saned] main: waiting for control connection [saned] saned (AF-indep+IPv6) from sane-backends 1.0.18 ready [saned] check_host: access by remote host: 192.168.1.102 [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK [saned] check_host: local hostname: box [saned] check_host: local hostname(s) (from DNS): box [saned] check_host: remote host doesn't have same addr as local [saned] check_host: opening config file: saned.conf [saned] check_host: config file line: `192.168.1.1/120' [saned] check_host: subnet with base IP = 192.168.1.1, CIDR netmask = 120 [saned] check_v4_in_range: invalid CIDR value (120) ! [saned] init: access by host 192.168.1.102 denied [saned] quit: exiting |
Code Sample |
$ cat /etc/sane.d/saned.conf 192.168.1.102 192.168.1.1/120 $ sudo /opt/hplip/sbin/saned -d128 ... [saned] main: [1] bind () to port 6566 [saned] main: [1] listen () [saned] main: waiting for control connection [saned] saned (AF-indep+IPv6) from sane-backends 1.0.18 ready [saned] check_host: access by remote host: 192.168.1.102 [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK [saned] check_host: local hostname: box [saned] check_host: local hostname(s) (from DNS): box [saned] check_host: remote host doesn't have same addr as local [saned] check_host: opening config file: saned.conf [saned] check_host: config file line: `192.168.1.102' [saned] check_host: access granted from IP address 192.168.1.102 [saned] init: access granted |