Joel Stahre

Software Development Engineer

Raspberry Pi Print Server

2 years ago · 2 MIN READ

I started to get tired of always have to plug in my printer to my laptop every time i needed to print something, and since i don't own a wireless printer i thought i maybe could use my raspberry pi to handle this.

After some research, i found a lot of tutorials on how to do this, some of them was quite outdated though, so i put together a small tutorial myself with all the steps i did to get this to work. To be honest, it was very straightforward.

Here are the steps i did:

Install cups

apt-get install cups printer-driver-gutenprint

It took around 3-5 minutes to finish.

Connect your Printer to raspberry pi via USB and run this command to confirm that your printer is connected.


Here we see the printer as Canon, Inc.

Bus 001 Device 005: ID 04a9:1751 Canon, Inc. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Cups adds the usergroup lpadmin, we need to add our user to this usergroup, i chose to use the default "pi" user.

sudo usermod -a -G lpadmin pi

Now, browse to https://your-raspberrypi-ip:631/ cups-start.png

Click on Administration. cups-admin.png

Click on Add Printer. You will be promted to fill in your Username and Password, in our case we use "pi" and our password cups-login.png

Choose your printer (My printer is Canon MG2100 series) and click on Continue. cups-addprinter.png

Name and Description was alreay filled in, i left it as default. Since my printer i placed in the Living Room, i filled that in. It is important that you select the "Share This Printer" option, otherwise the printer will not show up on your network. Click Continue. cups-addprinter2.png

Select the model of your printer and click on Add Printer cups-addprinter3.png

You will now see a page where you can set default options for your printer. Go ahead and modify the settings based on your needs, i left everything as default. Click on Set Default Options cups-defaultoptions.png

If everything went well, you should now be able to use your shared printer. To set it up on a mac, just go to System Preferences -> Printers & Scanners

By clicking the "+" sign as in the pictures, you should now see your printer. In my case its the Canon MG2100 series2 @ skynetPi cups-printer-mac.png

Every device connected to your home network should now be able to use this printer.


Joel Stahre

comments powered by Disqus

Proudly powered by Canvas · Sign In