How to create a print server with Raspberry Pi

Last update: 01/12/2026
Author Isaac
  • Transforming old USB printers into wireless network devices using CUPS.
  • Centralized print queue management and cross-platform compatibility with Windows, macOS, and Linux.
  • Remote access configuration and peripheral sharing via IPP and SAMBA protocols.

Close-up of the USB ports of a Raspberry Pi, ideal for showing the connection of a printer.

Do you have a laser or inkjet printer lying around that works perfectly but is a dinosaur because it lacks Wi-Fi and an Ethernet port? There's no need to spend a fortune on a new machine or spend ages moving the USB cable from one laptop to another like it's a board game. With a Raspberry Pi and the CUPS system, you can breathe new life into that hardware and turn it into a modern print server that accepts documents from anywhere in your home.

This project is a real gem for recycling old boards, since managing a print queue doesn't require a lot of processing power. Models like the Pi 3 or Pi 4 are more than capable, although it will run like a dream on a Pi 5. The idea is to create a wireless bridge that allows any device, whether it's an Android, an iPhone, or a Windows PC, to send print jobs without any hassle. Let's see how to set this up from scratch so you don't drive yourself crazy trying.

Materials and system setup

Hands assembling electronic components, representing the physical assembly of the print server.

Before you start working with the software, you need to have your equipment ready. The basics are a Raspberry Pi board with a network connection, a microSD card of at least 16 GB (preferably Class 10 U3 to ensure smooth performance), and a stable power supply. Of course, don't forget the USB cable to connect the printer and a case, which, although some say it's optional, is essential to prevent the board from getting dusty or suffering an accidental short circuit.

The first step is to install Raspberry Pi OS. You can use the Raspberry Pi Imager to write the image to the SD card; a useful trick is to configure the hostname and Wi-Fi password From the settings wheel before burning. Once the board has booted, it's vital to update the entire system to avoid dependency errors. Open the terminal and run sudo apt update followed by sudo apt upgrade -yTo prevent the printer from "disappearing" from the network, it is highly recommended to assign a static IP addresseither from the router or by editing the Pi's network settings.

  How to password-protect and encrypt documents in LibreOffice Writer

CUPS Installation and Configuration

The heart of our server is CUPS (Common Unix Printing System), the standard for managing printers in Unix environments. To install it, simply run the command sudo apt install cups -yOnce installed, the system will restrict administration for security reasons, so you must add your user to the print management group with the command sudo usermod -a -G lpadmin pi (replace "pi" with your username if you have entered a different one).

By default, CUPS only listens for requests from the Raspberry Pi itself. To manage it from your main PC's web browser, you need to edit the configuration file. /etc/cups/cupsd.conf. Find the line that says Listen localhost:631 and change it to Port 631Furthermore, in the sections <Location />, <Location /admin> y <Location /admin/conf>You must add the directive Allow @LOCAL so that any device on your local network can connect. Don't forget to restart the service with sudo systemctl restart cups for the changes to take effect.

Add the printer and manage the drivers

Person using a laser printer in a professional office environment.

Now for the physical part: connect the printer via USB and turn it on. From your computer, open your browser and type the Raspberry Pi's IP address followed by port 631 (for example, https://192.168.1.200:631It's normal for your browser to display a security warning about the self-signed certificate; click on advanced and continue Don't worry. On the administration tab, click on "Add Printer" and choose your device from the list of local printers.

Here's where it gets tricky: the driver. If you have an HP, you might need to install hplip through sudo apt install hplip and use the assistant sudo hp-setup -i so that it detects it correctly. If the exact model doesn't appear, try searching for one. generic PostScript or PCL or upload a PPD file from the manufacturer. Very important: check the box Share This Printer so that the server can distribute it over the local network.

  How to configure the PS4 controller on PC emulators

Integration with Windows and other systems

Home workspace with a white multifunction printer and personal decoration.

If you use macOS or Linux, the printer usually appears automatically thanks to Bonjour or IPP. But if you have Windows, it's more complicated and usually requires installing [something else]. SAMBA For good communication, install it with sudo apt install samba and edit the file /etc/samba/smb.conf to configure the sections of [printers] y [print$]allowing guest access and defining spooler routes.

To add it in Windows 10 or 11, go to Printers & Scanners and select "The printer I want isn't listed." Choose the option to shared by name and enter the complete URL: http://IP_DE_TU_PI:631/printers/NOMBRE_DE_TU_IMPRESORAIf everything has been configured correctly, Windows will download the driver and you will be able to print as if the printer were connected directly to your PC.

Advanced tips and troubleshooting

Sometimes the print queue gets stuck and the printer appears as "Stopped" in the web interface. To fix this, go to the CUPS maintenance menu and select Start PrinterIf you see errors like "filter failed," it could be a Ghostscript or driver issue; in those cases, clearing the print queue from the terminal is usually the quickest solution. For the more curious, CUPS also allows you to create a virtual PDF printer, whose files are stored in /var/spool/cups-pdf/ANONYMOUS/, ideal for generating digital documents without using paper.

To ensure the server doesn't crash, it's advisable to prioritize the Ethernet cable connection over Wi-Fi and schedule periodic service restarts . For added security, you can place the Raspberry Pi on an isolated VLAN so that print traffic doesn't interfere with the rest of your home or business network, thus preventing potential vulnerabilities.

Setting up this server allows you to salvage older hardware and centralize printing for the entire home in a single, efficient location. All you need to do is install CUPS, enable network permissions in the configuration file, assign the correct drivers, and, if using Windows, add SAMBA to ensure full compatibility between systems.

  How to improve the performance of your Android mobile step by step

FAQ

How do I access the CUPS control panel from my PC?

You must enter the Raspberry Pi's IP address followed by port 631 into your browser using the HTTPS protocol.

What to do if Windows doesn't automatically detect the printer?

The printer must be added manually by name, entering the full URL of the CUPS server and the specific print queue.

Is it necessary to use SAMBA in the configuration?

SAMBA is fundamental primarily for Windows users, as it facilitates communication and printer discovery on the Microsoft network.

How do I allow other computers to manage the printer?

It is necessary to add the user to the lpadmin group and modify the cupsd.conf file by adding the Allow @LOCAL directive in the location sections.

Can I use an old Raspberry Pi for this project?

Yes, models like the Raspberry Pi 2, 3 or 4 are perfectly capable since print management requires very few processing resources.

What to do if the printer appears as stopped on the web panel?

You must enter the CUPS interface, access the printer maintenance menu, and select the Start Printer option.

How do I install HP drivers that are not listed?

It is recommended to install the hplip package and run the hp-setup -i command so that the wizard can automatically detect and configure the printer.

Isaac

Isaac

Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.