Printer
5.1
SliTaz prints with CUPS. Installing it and adding a printer from its web page is in the Handbook, Printing and scanning: start there. This page goes further: which driver package to pick, network printers, the command line and what to check when nothing comes out.
Pick the driver
The Handbook installs cups, cups-filters and gutenprint. Add the
package that knows your printer:
- gutenprint: many inkjet printers (Epson, Canon, HP and others).
- foomatic-db with foomatic-db-engine and foomatic-filters: the OpenPrinting database, for many laser and inkjet printers. foomatic-db-nonfree adds non-free PPD files.
- hplip: HP printers, with the
hp-setupandhp-infotools. - foo2xqx: the foo2zjs drivers for host-based laser printers that only speak their own protocol, such as the HP LaserJet 1018, 1020 or P1005 and some Samsung, Konica Minolta and Oki models. Install it with the foomatic packages: they hold the printer entries.
- pnm2ppa: some old HP DeskJet printers (PPA models).
- cups-pdf: a virtual printer that writes a PDF file instead of printing.
For example, for an HP printer:
# spk-add hplip
Look up your model on OpenPrinting to see which driver it needs.
There is no Canon driver package in SliTaz 5.1 (no cnijfilter2, no ufr2). Try gutenprint for a Canon inkjet, or driverless printing below for a recent network model.
Network printers
A recent network printer often needs no driver at all: it speaks IPP. In the CUPS web page, choose Internet Printing Protocol (ipp), give its address, for example:
ipp://192.168.1.20/ipp/print
and pick the IPP Everywhere driver. An older network printer usually listens on port 9100: choose AppSocket/HP JetDirect and give:
socket://192.168.1.20:9100
then the driver of its model.
From the command line
The CUPS tools do everything the web page does. As root, list the printers CUPS sees and the drivers it has:
# lpinfo -v
# lpinfo -m | grep -i laserjet
Add a network printer named office with the IPP Everywhere driver,
and make it the default:
# lpadmin -p office -E -v ipp://192.168.1.20/ipp/print -m everywhere
# lpadmin -d office
As a user, print a file and follow the queue:
$ lp document.pdf
$ lpstat -p -o
Print to PDF
After spk-add cups-pdf, add a printer with the CUPS-PDF driver
from the web page. Files "printed" to it go to
/var/spool/cups-pdf/<user>/; the Out line of
/etc/cups/cups-pdf.conf changes that folder.
Scanners
The Handbook installs sane-backends and xsane. For a Brother
scanner, add brscan and set it up with brsaneconfig. HP
all-in-one printers scan through hplip.
Troubleshooting
The printer is not in the list: for a USB printer, check that the
system sees it with lsusb (package usbutils), then unplug it and
plug it in again with the printer on.
The admin pages ask for a login: give root and its password.
Nothing prints: read the CUPS log, then restart CUPS. Its boot
script has no restart: stop it and start it again.
# tail /var/log/cups/error_log
# /etc/init.d/cupsd stop
# /etc/init.d/cupsd start
A printer stopped after an error is shown as Paused in the web page:
resume it there, or with cupsenable office.