paulrickards, (edited )
@paulrickards@mastodon.social avatar

I’ve been rebuilding a installation that supports my classic Mac habit 😄

I used to use the awesome image which includes a ton of pre-configured software like . But it hasn’t been updated in a while so I used it as excuse to start from scratch.

I used this Pi Zero W as my starting point. HDMI video stopped working on it for unknown reasons. I added an Ethernet/USB hub hat and a 2 hat for devices.

in_sympathy,
@in_sympathy@mastodon.social avatar

@paulrickards there is a tiny chip on Pi (HDMIDP1) - like super small silver square somewhere around HDMI - try replacing or at least reflowing that one. Looks something like this:
https://a.aliexpress.com/_EuTdNlZ

eric,
@eric@bitbang.social avatar

@paulrickards post your progress! I would love to do something similar and turn off ny LC3 which has been on for a month. 😂

paulrickards,
@paulrickards@mastodon.social avatar

@eric Power efficiency is definitely a motivator for this project!

paulrickards,
@paulrickards@mastodon.social avatar

One reason for rebuilding netatalk is I wanted to run TashRouter on the same machine. It’s doesn’t work right on the MacIPGW image because of the “split horizon” patch.

I can now freely use AppleTalk devices on EtherTalk, LocalTalk (PhoneNet!), and LToUDP (Mini VMac). This enables, for instance, printing to an ImageWriter II from my modern Mac running System 7.5 in Mini VMac! (There were lots of bugs to resolve to get the ImageWriter II working!)

paulrickards,
@paulrickards@mastodon.social avatar

One piece that's missing is AURP aka support. I'd like to avoid running a VM and have something more lightweight.

Luckily @DrJosh9000 has created jrouter which comes very close to accomplishing this! Remote zones are showing up but are all empty and not sure if my zone is visible outside. I need to play with some settings some more I think. But soooo close!

https://gitea.drjosh.dev/josh/jrouter

paulrickards,
@paulrickards@mastodon.social avatar

With netatalk, a TashTalk hat, TashRouter, and CUPS on the Raspberry Pi, we can do clever things like share a II printer over with an iPhone using AirPrint!

This screenshot was printed from my phone to the ImageWriter II.

Interestingly, this was just fixed in the latest netatalk 2.3.2!

gaj,
@gaj@mastodon.social avatar

@paulrickards for a while, the CUPS drivers for the ImageWriter printers were deprecated but then put back in after it was clear people still use them. I love my IW II.

paulrickards,
@paulrickards@mastodon.social avatar

@gaj Glad they’re back. I also hear that color printing to an ImageWriter II will be available soon.

gaj,
@gaj@mastodon.social avatar

@paulrickards now if only we could get new color ribbons

paulrickards,
@paulrickards@mastodon.social avatar
ecschwarz,
@ecschwarz@mastodon.social avatar

@paulrickards I love this! I've been toying with the idea of connecting a Raspberry Pi to an original IW via USB<->serial and sharing it via AirPrint, but not sure if that would work (also haven't had the time to really dig into it). Nice to see the IWs still work with CUPS!

paulrickards,
@paulrickards@mastodon.social avatar

@ecschwarz That’s possible as well with just CUPS! I did it years ago with an older version of MacOS X.

https://youtube.com/watch?v=gvpRIn10Mcw

paulrickards,
@paulrickards@mastodon.social avatar

In the interest of science, I did an ImageWriter II comparison print of CUPS vs the MacPalette driver for Classic. I think MacPalette wins here. There appears to be better color range and the text is a little sharper.

A black and white dot matrix print of iOS maps showing the Apple Campus. The print is a little lighter and crisper. Done with the MacPalette II driver on Classic.

billgoats,
@billgoats@bitbang.social avatar

@paulrickards I found the same thing a couple of years back. CUPS is handy and convenient, but MacPalette is so much better.

paulrickards,
@paulrickards@mastodon.social avatar

@billgoats Yeah.. gotta figure out a way to plumb CUPS into MacPalette II!

paulrickards,
@paulrickards@mastodon.social avatar
paulrickards,
@paulrickards@mastodon.social avatar

Ok folks: how do you make MacOS 9.2 automatically print a PDF that appears in a specific folder?

Cdespinosa,
@Cdespinosa@mastodon.social avatar

@paulrickards In the Finder, select the folder, command-click, choose “Attach a Folder Action…” from the contextual menu

System Folder > Scripts > Folder Action Scripts has some samples on how to handle added files. You probably want to tell the finder to print the added items.

paulrickards,
@paulrickards@mastodon.social avatar

@Cdespinosa Ahh yes, thanks! I've got a script mocked up now and it does work to the point the print dialog comes up, waiting for a mouse click or enter. I can't figure out how to send a return keystroke. The usual tell "system events" results in "where is system events" on MacOS 9.

paulrickards, (edited )
@paulrickards@mastodon.social avatar

So I have a new MacOS 9.2.2 Folder Action attached to a network share via netatalk. It works only if these conditions are met:

  1. The folder is open already in the Finder. If it’s closed, it never triggers.
  2. The new item is added to the folder from the current machine. Items added remotely to the network share do not “refresh” therefore never trigger the action.

Is this expected?

paulrickards,
@paulrickards@mastodon.social avatar

Ok, I've abandoned Folder Actions as it just doesn't seem to work. I've now gone with an always-running to scan the folder.

And.. it works! Almost? It seems that MacPalette II crashes (and takes Acrobat Reader with it) after it completes a print and there's a finder dialog that's proving difficult to dismiss in AppleScript.

paulrickards,
@paulrickards@mastodon.social avatar

The way it works is this:

  1. A print is initiated from a device to the CUPS-PDF driver on my #netatalk Raspberry Pi.
  2. The resulting PDF is placed in the AFP share of netatalk/afpd.
  3. An emulated PPC Mac 9.2.2 running the #AppleScript below is watching for new files in that folder and will print them using Acrobat Reader to the #ImageWriterII via #LocalTalk using the MacPalette II driver.

It works, but crashes with dialog that I can't auto-dismiss.

#RetroComputing #VintageApple #VintageMac

billgoats,
@billgoats@bitbang.social avatar

@paulrickards does AppleScript let you send a click to a specific coordinate? assuming the dialog is always in the same place, a wait and then a click where OK is could maybe work.

paulrickards,
@paulrickards@mastodon.social avatar

@billgoats In theory yes. System Events is supposed to do that, but I can't seem to summon it, even on this fresh MacOS 9.2.2 + AppleScript 1.8.3 install.

To get keystrokes to work, I had to use to "Sigma's Additions" OSAX and use the "type text" command (that's all it has).

paulrickards,
@paulrickards@mastodon.social avatar

Ok, so this centipede printer workflow isn’t really reliable so I dove into CUPS to try and see if there’s a way to alter the dithering.

I tried adding different settings to the PPD file but nothing produced any changes.

Until I added “DitherPPI” (a GS option) and it produced a result that was pretty good! I tried various values (30, 80, 120, 180) but they all looked identical. In any case, this is good enough for me!

billgoats,
@billgoats@bitbang.social avatar

@paulrickards that’s looking so much better!

paulrickards,
@paulrickards@mastodon.social avatar

@billgoats It's a big improvement over the defaults for sure. It's a little posterized in the dithering but I don't mind it.

ChartreuseK,
@ChartreuseK@restless.systems avatar

@paulrickards Looks much better, the plain driver seemed to be crushing to black much faster than it should (possibly putting too much ink and it bleeding), or even possibly doing double strikes for black.

paulrickards,
@paulrickards@mastodon.social avatar

@ChartreuseK Yeah, the defaults seemed a little heavy handed all over. Happy with this new setting-- although not entirely sure why it's working.

ChartreuseK,
@ChartreuseK@restless.systems avatar

@paulrickards Is the default DPI perhaps the issue? Might be that above a certain amount it's doing two passes per line with a half pixel offset and that's just putting too much ink down?

paulrickards,
@paulrickards@mastodon.social avatar

@ChartreuseK The three images in the example were all set to the same highest dpi setting (160x144) which does the two-pass slightly offset Y "in between" print.

paulrickards,
@paulrickards@mastodon.social avatar

@ChartreuseK Interestingly, adding the DitherPPI setting for GhostScript says

"forces all devices to be considered high-resolution, and forces use of a halftone screen or screens with lpi lines per inch, disregarding the actual device resolution. Reasonable values for lpi are N/5 to N/20, where N is the resolution in dots per inch."

I tried several DitherPPI settings without any change.

paulrickards,
@paulrickards@mastodon.social avatar

As promised, I wrote a blog post about creating my own classic Mac support server using a Raspberry Pi Zero, a TashTalk 2 hat, netatalk, and a few other tools. It's very much like MacIPRpi with everything current.

https://biosrhythm.com/?p=2791

Boosts appreciated!

dbarros,
@dbarros@mastodon.social avatar

@paulrickards The site is down at the moment?

paulrickards,
@paulrickards@mastodon.social avatar

@dbarros Yeah, it looks like my host is doing scheduled maintenance. Should be back up later. Thanks for the heads up!

dbarros,
@dbarros@mastodon.social avatar

@paulrickards Cool, thanks. I'll check out the post then.

paulrickards,
@paulrickards@mastodon.social avatar

@dbarros Site is up now. Cheers!

dbarros,
@dbarros@mastodon.social avatar

@paulrickards 👍🏻

maxxcan,
@maxxcan@mastodon.social avatar

@paulrickards so beatiful

jcdenton,
@jcdenton@mastodon.social avatar

@paulrickards Off topic, but I so love the System 7/Mac OS 7 aesthetic. First time they introduced a splash of color into the UI before later refining it with Platinum.

eric,
@eric@bitbang.social avatar

@paulrickards this is great.. I want to stay on global talk but having my LCIII running all day every day seemed like a lot to ask that old machine to do! I just ordered the trash talk hat and will get this going as soon as I get that! Thank you!

paulrickards,
@paulrickards@mastodon.social avatar

@eric AURP routing isn’t supported yet but hopefully soon!

paulrickards,
@paulrickards@mastodon.social avatar

I was able to tweak the output of the ImageWriter II prints from CUPS to be slightly better. I've updated the blog post.

https://biosrhythm.com/?p=2791

paulrickards,
@paulrickards@mastodon.social avatar

This animation shows the simulated output of CUPS ImageWriter II DitherPPI setting approximately from 2 to 31. After that, it changes to a more posterized dither and is the same for any larger value. You can see the dithering dots start very large and shrink down with each new value.

An animation showing subsequent values for the DitherPPI setting inside the CUPS iwhi PPD. The video starts as large halftone dots that slowly get smaller, eventually being clear enough to see that it's Margaret Hamilton.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • RaspberryPi
  • rosin
  • ethstaker
  • tacticalgear
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Youngstown
  • everett
  • InstantRegret
  • slotface
  • ngwrru68w68
  • kavyap
  • JUstTest
  • GTA5RPClips
  • Leos
  • modclub
  • cisconetworking
  • Durango
  • khanakhh
  • cubers
  • normalnudes
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines