This shows you the differences between two versions of the page.
|
cups [2018/04/14 22:25] |
cups [2022/04/16 12:22] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== DEBIAN ===== | ||
| + | * https://wiki.debian.org/SystemPrinting | ||
| + | |||
| + | |||
| + | ===== SOFTWARE ====== | ||
| + | |||
| + | sudo aptitude install task-print-server && sudo tasksel | ||
| + | |||
| + | sudo dpkg -P \ | ||
| + | printer-driver-gutenprint \ | ||
| + | cups cups-daemon cups-core-drivers \ | ||
| + | task-print-server | ||
| + | |||
| + | sudo aptitude remove --purge \ | ||
| + | cups cups-server-common cups-daemon cups \ | ||
| + | printer-driver-gutenprint \ | ||
| + | printer-driver-hpcups printer-driver-postscript-hp | ||
| + | |||
| + | sudo dpkg -P printer-driver-gutenprint cups-daemon cups | ||
| + | sudo mv /etc/cups /tmp/ | ||
| + | sudo mkdir -p /etc/cups | ||
| + | # sudo touch /etc/cupd/cupsd.conf | ||
| + | # sudo touch /etc/cups/cupsd.conf.default | ||
| + | |||
| + | |||
| + | sudo tasksel | ||
| + | sudo aptitude install cups | ||
| + | sudo aptitude install printer-driver-gutenprint | ||
| + | sudo aptitude install cups-daemon cups-driver-gutenprint | ||
| + | sudo apt-get install $(apt-cache search cups | grep -o '^cups[^ ]*') | ||
| + | sudo aptitude reinstall $(apt-cache search cups | grep -o '^cups[^ ]*') | ||
| + | sudo /etc/init.d/cups restart | ||
| + | |||
| + | Add local printer and share it | ||
| + | create default class | ||
| + | |||
| + | then on remote host add new ipp printer and set this url : | ||
| + | |||
| + | http://$hostname:631/classes/default | ||
| + | |||
| + | |||
| + | |||
| + | ===== TROUBLESHOOT ====== | ||
| + | |||
| + | lpq | ||
| + | sudo systemctl stop cups | ||
| + | sudo mv /var/log/cups /var/log/cups._$(date +%s).bak | ||
| + | sudo mv /var/cache/cups /var/cache/cups._$(date +%s).bak | ||
| + | sudo systemctl restart cups | ||
| + | |||
| + | |||
| + | cat /var/log/cups/error_log | ||
| + | E [22/Feb/2021:18:41:30 +0100] Unknown directive BrowseAddress on line 8 of /etc/cups/cupsd.conf. | ||
| + | E [22/Feb/2021:18:41:31 +0100] Missing value on line 5758 of /var/cache/cups/job.cache. | ||
| + | |||
| + | cupsd -t | ||
| + | Unknown directive BrowseAddress on line 8 of /etc/cups/cupsd.conf # BrowseAddress localhost | ||
| + | TMPDIR (/tmp/user/0) has the wrong permissions. | ||
| + | Missing value on line 5434 of /var/cache/cups/job.cache. | ||
| + | Missing value on line 5458 of /var/cache/cups/job.cache. | ||
| + | Missing value on line 5470 of /var/cache/cups/job.cache. | ||
| + | Missing value on line 5845 of /var/cache/cups/job.cache. | ||
| + | Missing value on line 5858 of /var/cache/cups/job.cache. | ||
| + | Missing value on line 5941 of /var/cache/cups/job.cache. | ||
| + | Missing value on line 5954 of /var/cache/cups/job.cache. | ||
| + | "/etc/cups/cups-files.conf" is OK. | ||
| + | "/etc/cups/cupsd.conf" is OK. | ||
| + | |||
| + | <code> | ||
| + | lpstat -t | ||
| + | scheduler is running | ||
| + | system default destination: HP_Deskjet_1510_series | ||
| + | matériel pour HP_Deskjet_1510_series : hp:/usb/Deskjet_1510_series?serial=CN49T1C03905YR | ||
| + | HP_Deskjet_1510_series accepte des requêtes depuis mar. 09 mars 2021 11:27:28 | ||
| + | printer HP_Deskjet_1510_series disabled since mar. 09 mars 2021 11:27:28 - | ||
| + | Unplugged or turned off | ||
| + | HP_Deskjet_1510_series-2635 unknown 58368 sam. 20 mars 2021 11:58:16 | ||
| + | </code> | ||
| + | |||
| + | ===== ERROR : State : stopped "Filter failed" ===== | ||
| + | |||
| + | stopped | ||
| + | "Filter failed" | ||
| + | |||
| + | curl url/.txt | lp | ||
| + | |||
| + | sudo apt-get install ghostscript foomatic-db cups-filters | ||
| + | |||
| + | === KDE === | ||
| + | |||
| + | Occurred after added printer on kde, then went back to cups web ui that located remote printer and it worked.... | ||
| + | |||
| + | For reference: | ||
| + | |||
| + | Cannot process "<STDIN>": Unknown filetype. | ||
| + | |||
| + | The problem is on the client not the print server, make sure this client has the cups files | ||
| + | It worked once I copied the pdf file to the print server and printed it using lp | ||
| + | |||
| + | * http://forum.ubuntu-fr.org/viewtopic.php?id=1406561# [RESOLU] imprimante reseau erreur 'Filter failed' ubuntu 13.10 | ||
| + | |||
| + | |||
| + | <code> | ||
| + | sudo /etc/init.d/cups restart | ||
| + | |||
| + | Restarting Common Unix Printing System: cupsd/usr/sbin/cupsd: /lib/i386-linux-gnu/libgpg-error.so.0: no version information available (required by /lib/i386-linux-gnu/libgcrypt.so.20) | ||
| + | /usr/sbin/cupsd: /lib/i386-linux-gnu/libgpg-error.so.0: no version information available (required by /lib/i386-linux-gnu/libgcrypt.so.20) | ||
| + | . | ||
| + | </code> | ||
| + | |||
| + | ===== ERROR ===== | ||
| + | |||
| + | "Connected to printer." | ||
| + | |||
| + | E [27/Mar/2013:22:11:02 +0100] Returning IPP client-error-not-authorized for Create-Job (http://nrv:631/printers/prt) from 192.168.0.30 | ||
| + | |||
| + | * http://bugs.debian.org/689991 | ||
| + | |||
| + | |||
| + | Processing - "The printer is not responding." | ||
| + | |||
| + | === "Unable to get printer status." === | ||
| + | |||
| + | === error === | ||
| + | |||
| + | "Filter "pdftopdf" not found." | ||
| + | apt-file search pdftoraster ; aptitude install cups-filters | ||
| + | |||
| + | === "Session setup failed: NT_STATUS_LOGON_FAILURE" === | ||
| + | |||
| + | |||
| + | ===== ERROR : "Waiting for job to complete." ===== | ||
| + | |||
| + | |||
| + | cat /var/log/cups/error_log | ||
| + | Cannot process "<STDIN>": Unknown filetype | ||
| + | |||
| + | lp: Unsupported document-format "text/plain". | ||
| + | |||
| + | |||
| + | ===== ERRORS : misc ===== | ||
| + | |||
| + | Idle - "/usr/lib/cups/filter/foomatic-rip failed" | ||
| + | |||
| + | * https://bugs.debian.org/769058 | ||
| + | |||
| + | |||
| + | |||
| + | lp: Unsupported document-format "text/plain". | ||
| + | ===== Error: Unable to locate printer ===== | ||
| + | |||
| + | * https://bbs.archlinux.org/viewtopic.php?id=92011 | ||
| + | |||
| + | Ping host ? | ||
| + | |||
| + | |||
| + | ===== Error: "Filter failed" ===== | ||
| + | |||
| + | |||
| + | ==== error: "Unable to add document to print job." ==== | ||
| + | |||
| + | * https://h30434.www3.hp.com/t5/Printers-Archive-Read-Only/UNABLE-TO-ADD-DOCUMENT-TO-PRINT-JOB/td-p/4306178# | ||
| + | |||
| + | ==== Errors ==== | ||
| + | |||
| + | * http://localhost:631/printers/# Maintenance / Print Self test page | ||
| + | |||
| + | Unsupported document-format "application/vnd.cups-command". | ||
| + | |||
| + | |||
| + | === HP : Filter failed === | ||
| + | |||
| + | prnt/hpcups/HPCupsFilter.cpp 565: cupsRasterOpen failed, fd = 0 | ||
| + | printer-driver-hpcups: /usr/lib/cups/filter/hpcups | ||
| + | |||
| + | |||
| + | * https://bugzilla.redhat.com/show_bug.cgi?id=1010580 | ||
| + | |||
| + | Problem was caused when adding remote printer and set drivers on clients; while it work when set as "Local Raw Printer" | ||
| + | |||
| + | |||
| + | |||
| + | === DMA === | ||
| + | |||
| + | ProbleM : | ||
| + | |||
| + | <code> | ||
| + | dmesg | ||
| + | [ 381.220150] DMA write timed out | ||
| + | [ 451.256246] parport0: FIFO is stuck | ||
| + | [ 451.304116] parport0: BUSY timeout (1) in compat_write_block_pio | ||
| + | [ 461.304119] DMA write timed out | ||
| + | </code> | ||
| + | |||
| + | SolutioN : Make sure ParPort is correctly connected | ||
| + | |||
| + | * http://dossy.org/2006/09/debian-printing-problem-dma-write-timed-out-try-this/ | ||
| + | |||
| + | @TaG: DmA ParPort | ||
| + | |||
| + | |||
| + | |||
| + | ===== MISC ===== | ||
| + | |||
| + | |||
| + | Cant find printer ? | ||
| + | |||
| + | * https://askubuntu.com/questions/769959/ubuntu-16-04-does-not-find-any-printer | ||
| + | |||
| + | |||
| + | |||
| + | sudo aptitude reinstall cupsys | ||
| + | |||
| + | * Starting Common Unix Printing System: cupsd | ||
| + | cupsd: Child exited on signal 15! | ||
| + | |||
| + | cat /var/log/cups/error_log | ||
| + | cat /etc/cups/cupsd.conf | ||
| + | |||
| + | |||
| + | * http://ubuntuforums.org/archive/index.php/t-447129.html | ||
| + | |||
| + | <code> | ||
| + | diff -u /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf | ||
| + | --- /etc/cups/cupsd.conf.default 2008-12-11 12:09:59.000000000 +0100 | ||
| + | +++ /etc/cups/cupsd.conf 2008-12-11 12:28:36.000000000 +0100 | ||
| + | @@ -15,27 +15,32 @@ | ||
| + | |||
| + | |||
| + | # Only listen for connections from the local machine. | ||
| + | -Listen localhost:631 | ||
| + | +#Listen localhost:631 | ||
| + | +Listen 631 | ||
| + | Listen /var/run/cups/cups.sock | ||
| + | |||
| + | # Show shared printers on the local network. | ||
| + | Browsing Off | ||
| + | BrowseOrder allow,deny | ||
| + | BrowseAllow all | ||
| + | -BrowseAddress @LOCAL | ||
| + | +#BrowseAddress @LOCAL | ||
| + | #BrowseAddress @LOCAL $USER.homelinux.org | ||
| + | |||
| + | # Default authentication type, when authentication is required... | ||
| + | DefaultAuthType Basic | ||
| + | |||
| + | +Allow all | ||
| + | + | ||
| + | # Restrict access to the server... | ||
| + | <Location /> | ||
| + | Order allow,deny | ||
| + | +Allow all | ||
| + | </Location> | ||
| + | |||
| + | # Restrict access to the admin pages... | ||
| + | <Location /admin> | ||
| + | Order allow,deny | ||
| + | +Allow all | ||
| + | </Location> | ||
| + | |||
| + | # Restrict access to configuration files... | ||
| + | |||
| + | </code> | ||
| + | |||
| + | |||
| + | ===== MORE ===== | ||
| + | |||
| + | @TaG: PrinT ApplE PrintinG PrinteR | ||