It is now very nearly impossible to install a headless Pi

Jan 26, 2024 Last reply: 2 years ago 94 Replies

And this works for you? I tried to setup a Pi as a print server but it was just bad. Printer was a Laserjet but not so old it could take PCL or postscript. Something proprietary that has been thoroughly reverse engineered long ago, don't remember exactly what right now.

For me this setup was extremely flaky over the network. Sure, I could print a test page but actual print jobs were really hit or miss. Typically Cups on the Pi would say the job printed fine but nothing actually came out of the printer. Reprinting from the Cups "completed jobs" list always worked though. Sometimes Cups just decided the printer wasn't "reachable". Even when it worked it was super slow for one or two page text only jobs, say something like minutes for a file of a few dozen kB to a few hundred.

Eventually the Pi ate its SD card and I got a cheapo ink jet. Still, that old Laserjet should have something like 2000 pages worth of toner left in its cartridge so sometimes I think about trying again.

You can use `ssh-add -D` to delete all keys from the agent or `ssh-add

-t 1h` (for example) to limit the keys' life in the agent to 1 hour.

I remember laughing at that at too.

You don't have to, but when your primary computer dual-boots, it makes things easier. Besides, it was sitting idle, and even the first-gen Raspberry Pi is more than capable enough for the task.

I had it working at first by (ab)using netcat somewhat, but I eventually tracked down some ancient print-serving code:

formatting link
I had to tweak it a bit to build on modern systems (still have to compile it with -std=c90, though), and I had to tweak it further to work without glibc so it'd run on Alpine. The result is up here, along with instructions:

formatting link
CUPS (running on Gentoo Linux on another host) has been pretty solid talking to both of the printers I use with it. Win11 works well with it, too.

I think I'd tried setting up CUPS on the Raspberry Pi before, but ran into problems. Setting it up as a JetDirect-workalike has worked out much better.

The printers I'm connecting that way are definitely older than that. There was a LaserJet 1320n that had built-in Ethernet connectivity, but that wasn't what I'd bought the better part of 20 years ago.

The great thing about JetDirect was the utter lack of cleverness. Not much could go wrong with it

Fully agreed - a Pi-1 (and I have a few) is fully capable. Just questioning the NEED.

But, if you want it that way ...

Which is why I also addressed "old"/RS-232 type printers.

SERIAL - easy to deal with. Parallel/Centronics, not so easy these days.

However NEW printers are NOT very expensive. Let go of the distant past ...... :-)

LOTS of printers ....

Yea, I fully understand the urge to "keep what works", but eventually there's a POINT .......

I didn't say it was bad/stupid.

I just said there may be better solutions.

If he badly WANTS to do it that way ...

So don't put words in my mouth.

The HPLJ-2 was a damned workin' MACHINE. Almost indestructible. Good quality, acceptable speed.

But it wasn't Wi-Fi.

But it COULD be Wi-Fi or Ethernet. Just takes a cheap adapter or two. You can also SHARE it from a Win or Lin unit. No need for intermediary stuff.

Anyway, just saying that there ARE solutions beyond a dedicated print server. Easier, more future utility.

Thanks, I think the idea of certificate-based authentication sounds interesting.

I will give it a go, I should at least understand what it means, even if it is ultimately not appropriate.

Neither does your commercial laptop. Someone PUTS Winders on it.

For a Pi you PUT Linux (or a few other options) on it.

Now C-64s came "equipped" ... the "OS" was burned into the factory ROMs.

Not even your toothbrush is safe!

formatting link

---druck

That may not actually be true. One of the 'major brands' of smart toothbrushes just does Bluetooth to the phone app, and the data sent is just things like battery level and head pressure:

formatting link
Which is not to say that some other brand doesn't have an internet-enabled chip in there, but battery life would be bad and these things tend to operate from small batteries which are wirelessly-charged once a week or less. Also, to have the world's largest botnet outed in an obscure Swiss newspaper seems a bit suspect.

The presentation above has some valid points about dumb cloud apps and smart-toothbrush-linked dental insurance ("the better you brush the less you pay") but that's a different thing from a botnet.

Theo

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required