Raspberry Pi Zero 2 W Prints Terminal Commands on Receipt Printer

The official Raspberry Pi operating system, Raspberry Pi OS, is Linux-based. That means it’s not too uncommon to find yourself running terminal commands. This project, created by maker and developer Arseny, who posted the details under the name kotofey_magnus on Reddit, showcases a new way to log terminal interactions by printing them on a thermal receipt printer in real-time.

When users type a command into terminal, it prints out the command. When the Pi processes the input, the response is then printed on the printer right after. This creates a physical GUI and literal paper trail by logging the terminal interactions on the printer.

YouTube YouTube
Watch On

We reached out to Arseny who explained that this was his first Raspberry Pi and subsequently his first Pi-based project. It was developed as a joke but the end result is a really clever concept that we couldn’t help but appreciate.

It doesn’t take much to power the project, which is driven by a Raspberry Pi Zero 2 W. That said, any Raspberry Pi capable of running terminal should work for this project. This project uses a generic USB receipt printer, but any thermal receipt printer capable of being driven by the Pi would suffice in its stead.

Raspberry Pi

(Image credit: Arseny)

The code is simple enough, it works mainly by redirecting the terminal commands and output to the USB receipt printer instead of the terminal window. This allows for a real-time printed GUI, creating the paper interface seen in the demonstration video over at YouTube.

If you want to recreate this Raspberry Pi project, check out the original thread shared to Reddit where he breaks down the code he used to run the application. You’ll also find additional comments from other users that propose shorter methods for implementing the same idea. In the meantime, be sure to follow Arseny for more cool projects and future Pi creations.

TOPICS
Ash Hill
Contributing Writer

Ash Hill is a contributing writer for Tom's Hardware with a wealth of experience in the hobby electronics, 3D printing and PCs. She manages the Pi projects of the month and much of our daily Raspberry Pi reporting while also finding the best coupons and deals on all tech.

Read more
Raspberry Pi
Raspberry Pi Pico Game Boy Printer emulates the original to a T
Raspberry Pi
Maker builds Raspberry Pi ASCII camera, turning video frames into text-based imagery
Raspberry Pi
You can customize this Raspberry Pi eInk display with tons of cool plugins
Raspberry Pi slim cyberdeck
This Raspberry Pi slim cyberdeck uses two Raspberry Pis
Raspberry Pi
Raspberry Pi 4 brings the Raspberry Pi stream deck to life
Raspberry Pi
This Raspberry Pi portable cyberdeck is straight out of a sci fi movie
Latest in Raspberry Pi Zero
A Raspberry Pi Zero inside a case being assembled.
Modder crams LLM onto Raspberry Pi Zero-powered USB stick, but it isn't fast enough to be practical
Photograph of the Cyberdore 2064 Cyberdeck in action.
Cyberdore 2064 Cyberdeck features an oversized scroll wheel, handle, OLED display, and Raspberry Pi Zero
Waveshare BG95-M3 Zero
New Waveshare IoT board uses Raspberry Pi Zero form factor, brings cellular connectivity and a custom version of MicroPython
Geniatech XPI-3566-Zero
Geniatech XPI-3566-Zero Review: Zero Sum Game
B760M Project Zero
MSI Launches Project Zero Motherboards With Hidden Connectors
Geniatech's XPI-3566-ZERO
Raspberry Pi Zero 2 W Alternative from Geniatech Has up to 8GB RAM
Latest in News
Inspur
US expands China trade blacklist, closes susidiary loopholes
WireView Pro 90 degrees
Thermal Grizzly's WireView Pro GPU power measuring utility gets a 90-degree adapter revision
Qualcomm
Qualcomm launches global antitrust campaign against Arm — accuses Arm of restricting access to technology
Nvidia Ada Lovelace and GeForce RTX 40-Series
Analyst claims Nvidia's gaming GPUs could use Intel Foundry's 18A node in the future
Core Ultra 200S CPU
An Arrow Lake refresh may still be in the cards with only K and KF models, claims leaker
RX 9070 XT Sapphire
Lisa Su says Radeon RX 9070-series GPU sales are 10X higher than its predecessors — for the first week of availability