[SOFT] Raspberry Pi CUPS print server
tl;dr: We needed a print server for our old WiFi-challenged printer. Here's how we did it.
Installing the CUPS printing server
We'll be using the Terminal for the following commands:
- Install CUPS -
sudo apt-get install cups.
- Add the
pi user to admin list for CUPS -
sudo usermod -a -G lpadmin pi.
- Run CUPS as a service on startup if your network is trustworthy -
sudo cupsctl --remote-any.
- If you’re using a HP printer like we do -
sudo apt-get install hplip.
- And restart the CUPS server -
sudo /etc/init.d/cups restart.
Finally, restart the Raspberry Pi, then access the CUPS management interface from your browser at
Installing the network printer on your computer
Download the appropriate .ppd file from the printer manufacturer:
- For HP printers, from https://developers.hp.com/hp-linux-imaging-and-printing/gethplip.
- For other manufacturers, in general - http://www.openprinting.org/drivers.
Provide the path to the .ppd file you downloaded earlier when you are adding the new printer. After setting up, you should be able to detect the printer directly from Windows. If you can’t:
- Go to the printer page in CUPS.
- Copy the URL of the printer page on the print server page, in the Printers tab.
- Look for a new printer in Windows, and choose option “The printer I want isn’t listed” then “Select a shared printer by name”.
- Paste the URL we copied from CUPS - Make sure the address starts with
- Pick the correct driver from the list Windows offers, or download the driver.
- Finish the process, print a test page if needed.