Follow

@js @timorl @a3000ux

Did you find `aaa.sh` or did you start from scratch?

@robryk @timorl @a3000ux From scratch. Got an auth token from another machine, transferred it and did a POST query using wget. Was rather quick and a crude hack ;)

@js @timorl @a3000ux

A (possible still broken) wget invocation that would get a token (we've managed to register an oauth app and had the network die on us once more when trying to get a token; what made it more annoying that it should have been is that that wget was old enough not to support storing bodies of errors, so there was lots of guesswork involved).

@robryk @timorl @a3000ux Registering an OAuth app seems overkill - signing in and getting a token should be enough. I just signed into the account from a regular web browser and copied the token. First attempt at wget was a 200 to my surprise, and looking at the file it saved, it was indeed successful (container JSON). I never used the Mastodon API before, so I only looked up how to post and did everything else on another machine in a browser.

@js @timorl @a3000ux

We didn't think of using lynx to log in, and the way via an oauth app seems to be the only way that's supposed to be non-interactive.

(What we messed up along the way which would have made error printing useful:
- not set Content-Type,
- typoed a field name in request,
- something else that I don't remember.)

@robryk @timorl @a3000ux That seems to be a lot more complicated than what I tried - I just used --post-data on IIRC /api/v1/statuses

@robryk @js @timorl the only lynx on the machine was a 1992'ish version without any notion of TLS ... Unless you compiled a new one (totally possible, I also put gcc-2.7.2.3 in /usr/local) but that would probably have taken the whole afternoon. Maybe through an stunnel (faster to compile) ?

@robryk @js @timorl sorry about that network issue. The raspi4 in the 3D printed Lear terminal clone was doing the wifi-ethernet bridge to the A3000's ultra rare A2065 ethernet card, but the local wifi was so dodgy that I had to use my phone's hotspot instead ... So when I went fetch a drink it was too far...

@a3000ux No worries and thanks for organizing this, it was fun to play around with this machine and see how modern tools can be used there! @robryk @js

@timorl @a3000ux @robryk Is modern tools on old systems something more people would be interested in? I thought about doing a talk on this for the VCF, but ended up not doing. I maintain @ObjFW for several old platforms, so probably have enough credentials to talk about this :). See objfw.nil.im/doc/trunk/PLATFOR

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.