how to set up a Raspberry Pi as a wireless print server

we will be using CUPS to create a shared printer, connected locally via usb to a raspberry pi. The Pi will be connected wirelessly to your network.

i will assume that you have a standard install of raspberry pi os already set up on your board. make sure that you have ssh enabled by creating a file called “ssh” in the root of your boot drive. also, it might be easiest to enable wifi by creating a file called “wpa_supplicant.conf” and filling it with the info from the following site:

after this is done, we have a few steps to go through:

  1. prepare installation
  2. install CUPS
  3. install printer drivers
  4. install samaba server
  5. install airprint server

1. prepare installation

before we start, we should make sure we are up to date on all our packages with the apt command:

sudo apt update && sudo apt upgrade

Also, we want to go into our router and set up a static dhcp lease. i will leave that to a separate guide.

2. install cups

then, we install cups, it’s very simple:

sudo apt install cups

we’ll need a few more things to get it ready to work. first is adding the default pi user to the permissions group to use the printer. run this:

sudo usermod -a -G lpadmin pi

then, we need to open up the networking so the CUPS server will respond to anything across the network:

sudo cupsctl --remote-any

and that’s it! you might want to reboot the Pi now to make sure we’ll all set before the next step.

3. install printer drivers

the CUPS server runs a webserver for config on port 631, navigate there in a browser, to the static address you put into your router. for me it was:

from there, we can use the front end to install drivers. to determine what driver you need, you can go to:

4. install samba server

5. install airprint server

6. install print drivers on your local windows setup

7. references

Leave a Reply

Your email address will not be published. Required fields are marked *