Portál AbcLinuxu, 10. května 2025 08:45
Unable to connect to hpiodPřitom příkaz ps -lA vypíše
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 5 S 0 1082 1 0 78 0 - 1214 - ? 00:00:00 hpiod 5 S 0 2054 1 0 76 0 - 1477 - ? 00:00:00 cupsdA ve /var/log/cups/error_log se opakuje jediná hláška:
E [29/Oct/2006:22:13:03 +0100] Unable to bind socket for address 200.234.56.78:631 - Cannot assign requested address.A v access.log zase
localhost - - [29/Oct/2006:22:11:08 +0100] "POST / HTTP/1.1" 200 352 CUPS-Get-Classes client-error-not-foundJde mi zatím pouze o jednoduchý tisk z jednoho počítače na tuhle jednu tiskárnu, připojenou přímo přes USB kabel. Pro úplnost připojím ještě cups.conf (s vyházenými menšítky):
LogLevel warning SystemGroup lpadmin Listen localhost:631 Listen /var/run/cups/cups.sock Browsing On BrowseOrder allow,deny BrowseAllow @LOCAL DefaultAuthType Basic Location Order allow,deny Allow localhost Location Location /admin Encryption Required Order allow,deny Allow localhost Location Location /admin/conf AuthType Basic Require user @SYSTEM Order allow,deny Allow localhost Location Policy default Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job Require user @OWNER @SYSTEM Order deny,allow Limit Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default AuthType Basic Require user @SYSTEM Order deny,allow Limit Limit Cancel-Job CUPS-Authenticate-Job> Require user @OWNER @SYSTEM Order deny,allow Limit Limit All Order deny,allow Limit> Policy>V /etc/foomatic/defaultspooler je cups. Na závěr ještě připojím /etc/hp/hplip.conf:
# hplip.conf [hpiod] # port=0 (dynamic IP port) port=2208 (IANA IP port) [hpssd] # port=0 (dynamic IP port) port=2207 (IANA IP port) [hplip] version=1.6.7 jdprobe=0 [dirs] home=/usr/lib/hplip run=/var/run/hplip ppd=/usr/share/ppdVe /var/run/hplip se vytvoří tyto soubory: hpiod.pid, hpiod.port, hpssd.pid.
A to mám povolit v cupsd.conf, nebo kde?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.