Printer SliTaz 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:

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

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.