# Printer

# 1 EPSON Stylus Photo R220

USB inkjet printer, slightly wider than A4. lsusb says:

ID 04b8:0005 Seiko Epson Corp. Printer

Six ink cartridges:

  • black
  • dark cyan
  • light cyan
  • dark magneta
  • light magenta
  • yellow

Third-party ink cartridges seem to work fine (DRM chip has probably been reverse-engineered).

Photo printing is a bit hit and miss, quality-wise.

Text and diagrams work much better.

# 2 CUPS Network Share

CUPS is the software that Debian Linux uses to manage printers.

Scenario: USB printer (as above) connected to Raspberry Pi running Debian Linux, shared over local network to other local computers.

On the Pi:

sudo apt install cups gutenprint printer-driver-gutenprint escputil
sudo adduser claude lpadmin

Configure /etc/cups/cupsd.conf:

...

# changed from localhost
Listen 0.0.0.0:631

...

<Location />
  Order allow,deny
  # add these two lines
  Allow localhost
  Allow from 192.168.1.*
</Location>

<Location /admin>
  Order allow,deny
  # add these two lines
  Allow localhost
  Allow from 192.168.1.*
</Location>

...

Then restart cups:

sudo service cups restart

Web interface on https://hostname.local:631/ uses a self-signed SSL certificate (causes warnings in web browser, accept the “risk”).

Add the printer, selecting the right driver and “share this printer”.

Debian Linux client needs cups running (will discover/proxy network printer automatically). Tested with bookworm on the rpi, trixie on the desktop.

Microsoft Windows 11 client needs to add printer in Printers and Scanners settings, it can take a long time for it to detect the printer, be patient. After that printing dialogs have the printer as an option.