Step 9: './configure' and 'make' will run
./configure prepares HPLIP for install as well as your system is verified to have all the required dependencies for HPLIP.
'make' is then executed. Make compiles ("builds") HPLIP for your system.
Step 4: Verify your Linux Distribution
Note:
Ensure the installer detected the correct Linux distribution. Different Linux versions use different install procedures if the incorrect version is selected, the installer may fail.
Habe ein zwei Pakete., die nicht im ipkg sind.
/ # lpstat -t
scheduler is running
system default destination: hp_color_laserjet_2840
device for hp_color_laserjet_2840: hp:/net/HP_Color_LaserJet_2840?ip=192.168.1.7
hp_color_laserjet_2840 accepting requests since Thu Mar 29 18:47:56 2012
printer hp_color_laserjet_2840 disabled since Thu Mar 29 18:47:56 2012 -
Backend /usr/lib/cups/backend/hp does not exist!
/ #
/ # lpstat -t
scheduler is running
system default destination: hp_color_laserjet_2840
device for hp_color_laserjet_2840: hp:/net/HP_Color_LaserJet_2840?ip=192.168.1.7
hp_color_laserjet_2840 accepting requests since Fri Apr 20 15:51:39 2012
printer hp_color_laserjet_2840 is idle. enabled since Fri Apr 20 15:51:39 2012
ready to print
/ #
/ # saned -d5
[saned] main: starting debug mode (level 5)
[saned] read_config: searching for config file
[saned] read_config: done reading config
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up
[saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo)
[saned] do_bindings: [0] socket () using IPv6
[saned] do_bindings: [0] setsockopt ()
[saned] do_bindings: [0] bind () to port 6566
[saned] do_bindings: [0] bind failed: Address already in use
[saned] do_bindings: [1] socket () using IPv4
[saned] do_bindings: [1] setsockopt ()
[saned] do_bindings: [1] bind () to port 6566
[saned] do_bindings: [1] bind failed: Address already in use
[saned] do_bindings: couldn't bind an address. Exiting.
[saned] FATAL ERROR; bailing out, waiting for children...
[saned] bail_out: all children exited
/ #
/ # xinetd -d
12/4/20@20:26:00: DEBUG: 14384 {handle_includedir} Reading included configuration file: /op t/etc/xinetd.d/sane-port [file=/opt/etc/xinetd.conf] [line=15]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 127.0.0.1(NUMERIC) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
Service configuration: sane-port
id = sane-port
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 127.0.0.1(NUMERIC) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
12/4/20@20:26:00: ERROR: 14384 {activate_normal} bind failed (Address already in use (errno = 98)). service = sane-port
12/4/20@20:26:00: ERROR: 14384 {cnf_start_services} Service sane-port failed to start and i s deactivated.
12/4/20@20:26:00: DEBUG: 14384 {cnf_start_services} mask_max = 0, services_started = 0
12/4/20@20:26:00: CRITICAL: 14384 {init_services} no services. Exiting...
/ #
Ja, tust Du. So lange das nicht läuft, sind die Skripte wertlos.
scan-command ist ein Ordner in dem verschiedene Skripte liegen, wo unterschiedliche Einstellungen für hp-scan drin sind. Das zweite Skript macht nichts weiter den Button zu überwachen, dann die Einstellungen vom Drucker auszulesen, ggf. das Zielverzeichnis hinzuzufügen und dann das zu den Einstellungen passende Skript (also hp-scan) aufzurufen.
Ansonsten kannst Du einfach mal das innere if durch ein echo in eine Datei ersetzen, um zu sehen, ob es auch auslöst.
#!/bin/bash
cd "`dirname $0`"
set -o pipefail
while true; do
# if scan-to button pressed - run the command corresponding to the destination name
name=`wget -q -O - http://192.168.0.43/hp/device/notifications.xml \
| egrep -o '<ScanToDeviceDisplay>(.*)</ScanToDeviceDisplay>' \
| sed -e 's/<ScanToDeviceDisplay>//' \
| sed -e 's/<\/ScanToDeviceDisplay>//' \
| sed -e 's/.*://'` && {
if [ "$name" != "" ]; then
echo "$name" >> /DATEI
fi
}
sleep 5
done
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
DISKST
#!/bin/bash
# command to maintain the scan-to destination list in the HP Color LaserJet 2840 printer
if [ "$1" == "-a" ]; then
name=$2
[[ ! "$name" =~ ":" ]]&& name="$HOSTNAME:$name"
postdata="AddScanToDest_1=127.0.0.1-$HOSTNAME%5e${name/:/%3a}%5eDestFolder"
wget -q -O - --post-data="$postdata" http://192.168.1.7/hp/device/set_config.html
elif [ "$1" == "-d" ]; then
name=$2
[[ ! "$name" =~ ":" ]]&& name="$HOSTNAME:$name"
postdata="RemoveScanToDest_1=${name/:/%3a}"
wget -q -O - --post-data="$postdata" http://192.168.1.7/hp/device/set_config.html
elif [ "$1" == "-l" ]; then
wget -q -O - http://192.168.1.7/hp/device/info_scanto_destinations.xml \
| sed -n '/<DeviceDisplay>/s/<\/*DeviceDisplay>//gp'
else
echo 'usage: scanto_destination -l -a <destname> -d <destname> for listing adding and deleting destinations'
fi
sh scanto_destination -a TOSHI:DISKST
/# sh scanto_destination -l
TOSHI:DISKST
/#
#!/bin/bash
cd "`dirname $0`"
set -o pipefail
while true; do
# if scan-to button pressed - run the command corresponding to the destination name
name=`wget -q -O - http://192.168.1.7/hp/device/notifications.xml \
| egrep -o '<ScanToDeviceDisplay>(.*)</ScanToDeviceDisplay>' \
| sed -e 's/<ScanToDeviceDisplay>//' \
| sed -e 's/<\/ScanToDeviceDisplay>//' \
| sed -e 's/.*://'` && {
if [ "$name" != "" ]; then
echo "$name" >> /volume1/download/HPLIP-Scan_to_Ehternet/ausgabe
fi
}
sleep 5
done
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.