post on CUPS
All checks were successful
Build Hugo Site / build (push) Successful in 24s

This commit is contained in:
John 2025-04-13 21:32:27 -05:00
parent a00589ccf2
commit 3b35015744
3 changed files with 27 additions and 8 deletions

View File

@ -6,7 +6,7 @@ defaultContentLanguage = "en"
[languages] [languages]
[languages.en] [languages.en]
title = "Lambwire" title = "[:: LAMBWIRE ::] "
languageName = "en-US 🇺🇸" languageName = "en-US 🇺🇸"
LanguageCode = "en-US" LanguageCode = "en-US"
contentDir = "content" contentDir = "content"
@ -22,4 +22,4 @@ defaultContentLanguage = "en"
[params.author] [params.author]
name = "John Lamb" name = "John Lamb"
email = "me@example.com" email = "johnlamb@lambwire.net"

25
content/blog/CUPS.md Normal file
View File

@ -0,0 +1,25 @@
---
title: 'Workbench: Taming a Home Print Server for a Brother HL2240D'
date: 2025-04-13
draft: false
---
It turns out printers are their usual wily selves on Linux too.
Ive been experimenting with turning my Ubuntubased home server (running on a Raspberry Pi) into a network print server for my aging, but reliable Brother HL2240D. This isnt a polished howto guide—its a work log of the messy, unexpected challenges of building something real. Theres a lot to be learned from the wild detours in DIY server projects, and if youre curious about what happens when things dont go exactly as planned, read on.
## The Auth Adventure
Getting CUPS (the Common Unix Printing System) to share the printer over the network turned out to be an adventure. I wrestled with accessing the admin interface over HTTPS versus HTTP, and even encountered some browser cache quirks that made authentication seem inconsistent. After a few refreshes (and the occasional incognito window), I finally got into the CUPS admin pages and configured my printer correctly.
## The Driver Debacle
Everything looked promising until I tried printing—CUPS reported that the job was completed, yet no paper came out. Classic! A look at the logs revealed that the Brother proprietary driver was built for i386, which isnt compatible with my ARM64 (aarch64) Raspberry Pi. I briefly toyed with QEMU emulation, only to find that mixing architectures led to missing libraries and a host of awkward workarounds.
Then I discovered the opensource brlaser driver—a native solution that does away with emulation entirely. Unfortunately, there was no clear match for my HL2240D in the drivers offered by brlaser: HL2220, HL2140, and HL2270DW. HL2220 *sounded* closest but community feedback steered me toward the HL2140 option. Once I switched to the native driver, printing actually worked, turning a frustrating mismatch into a practical fix.
---
In short, what began as a straightforward print server project evolved into a wild ride through browser caches, authentication quirks, and architectural mismatches. This was a classic case where one route (emulation) seemed promising and could've worked but would've required immense complexity to implement all the needed workarounds. Taking a step back revealed the simplest solution and one I hadn't considered initially: an open source driver.
Happy tinkering!

View File

@ -1,6 +0,0 @@
---
title: 'Hello World'
date: 2025-03-09
draft: false
---
This is a test post.