Konstantinos Antoniou.

← Projects

Turning my USB Printer into a Wireless Network Printer Using Raspberry Pi Pico W and Ubuntu Server

Overview

This project demonstrates how I transformed my simple USB printer into a fully functional wireless network printer, using Raspberry Pi Pico W as the wireless bridge and CUPS (Common Unix Printing System) on Ubuntu Server 22.04 to handle print jobs.
The goal was to give my Samsung M2070 printer a chance by allowing any device on my network to print wirelessly, without relying on expensive print servers.


Motivation

My Samsung M2070 USB printer that workes perfectly but lackes wireless capabilities. Instead of connecting it via USB each time or buying a dedicated print server, I wanted to integrate it into my home network, making it accessible from any laptop, tablet, or even smartphone.

This was also an experiment in combining embedded hardware (the Pico W) with Linux print services, while learning about network sharing, USB forwarding, and CUPS configuration.


Hardware and Software Stack

  • Raspberry Pi Pico W
    • Acts as the network bridge and USB interface.

Screenshot 1: Hardware and Software Stack

  • Ubuntu Server 22.04 LTS
    • Runs CUPS as the print server.
    • Connected to my LAN with static IP for consistent printer discovery.
  • Printer: Standard USB printer (Samsung M2070).

Screenshot 2: Hardware and Software Stack

  • Software Tools:
    • cups,  avahi-daemon, papd, sane-airscan for network discovery.

Implementation Steps

1. Flashing Ubuntu Server 22.04 LTS

I flashed Ubuntu Server 22.04 onto the SD card using the official Raspberry Pi Imager.

Screenshot 3: 1. Flashing Ubuntu Server 22.04 LTS

Once flashed, I inserted the SD card, powered on the Pico W, and connected to it via SSH using its hostname:

ssh [email protected]


Setting Up CUPS on Ubuntu Server 22.04

I installed and configured CUPS to manage and share printers over the network:

sudo apt update sudo apt install cups avahi-daemon papd sane-airscan
sudo usermod -aG lpadmin $USER sudo systemctl enable cups sudo systemctl start cups

Then, I enabled remote access:

sudo cupsctl —remote-admin —remote-any —share-printers

I also enabled Avahi (Bonjour) to broadcast the printer across the network:

sudo apt install avahi-daemon sudo systemctl enable avahi-daemon

and allowed traffic through the firewall:

sudo ufw allow 631/tcp

Accessing the CUPS web interface at

http://server-ip:631


Lessons Learned

  • The Pico W’s built-in Wi-Fi and USB support make it an incredibly versatile microcontroller for small IoT or server-adjacent tasks.
  • CUPS remains the backbone of Linux printing, flexible enough to integrate even custom networked devices.