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
stopped "Filter failed"
curl url/.txt | lp
sudo apt-get install ghostscript foomatic-db cups-filters
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
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) .
"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
Processing - "The printer is not responding."
"Filter "pdftopdf" not found." apt-file search pdftoraster ; aptitude install cups-filters
cat /var/log/cups/error_log Cannot process "<STDIN>": Unknown filetype lp: Unsupported document-format "text/plain".
Idle - "/usr/lib/cups/filter/foomatic-rip failed"
lp: Unsupported document-format “text/plain”.
Ping host ?
Unsupported document-format "application/vnd.cups-command".
prnt/hpcups/HPCupsFilter.cpp 565: cupsRasterOpen failed, fd = 0 printer-driver-hpcups: /usr/lib/cups/filter/hpcups
Problem was caused when adding remote printer and set drivers on clients; while it work when set as “Local Raw Printer”
ProbleM :
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
SolutioN : Make sure ParPort is correctly connected
Cant find printer ?
sudo aptitude reinstall cupsys
cupsd: Child exited on signal 15!
cat /var/log/cups/error_log cat /etc/cups/cupsd.conf
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...