Raspberry Pi as a Print Server

On a Raspberry Pi 3 running Raspbian GNU/Linux 9 (stretch). Works fine on macOS (you won’t see the pretty printer icon that looks like your printer.)

sudo apt-get update
sudo apt-get upgrade

# Install CUPS and reboot
sudo apt-get install cups
sudo reboot

# Create a backup of the CUPS config
sudo cp /etc/cups/cupsd.conf{,.default}

# Start editing
sudo vi /etc/cups/cupsd.conf

Here’s the diff

< #Listen localhost:631
< Listen 631
> Listen localhost:631
<   Allow @Local
<   Allow @Local
<   Allow @Local
# Restart CUPS
sudo service cups restart

# Allow the `pi` user to administer CUPS
# This means that when you see HTTP Basic auth
# when trying to add/administer printers,
# you simply use the `pi` user creds.
sudo usermod -a -G lpadmin pi

Navigate to http://pi:631. You’ll know what to do.

AirPrint Support

Easier than I thought it would be!

sudo apt-get install avahi-discover
systemctl is-enabled avahi