xrayspx's blog

xrayspx's picture

Linux Serial Console

Music: 

Portishead - All Mine

Ok this is just a neat toy and something I never needed to care about, and probably will never use.

I have a 16 port Avocent serial console that lets me log into all my network hardware and watch it boot if there are any issues and you can't connect to them over the network. This is all pretty standard Network Guy nerd nonsense. It's what you do in a datacenter. Being a network guy, and one who de-commissions lots of stuff, I basically run my house like a datacenter now as well. This is especially useful since I've been working from home the last five years. I have very little downtime.

My main workstation has a physical 9-pin serial port so I figured it'd be neat have it start getty at boot so I can use a serial console and bounce to it through the Avocent. And so I set off about trying to figure out the pinout for a serial to RJ-45 Avocent cable . But what didn't really click until I read thread while I was on my search is that you can have Grub start that getty and get full access beginning at the bootloader. This makes this actually useful. If there is some problem, and I'm either not here, or the problem includes "there's no video from my machine", I can view the serial console, log in if the machine is up, reboot it and watch the startup sequence to see where it's failing. The Grub boot menu actually shows up on the serial console /before/ my monitor displays it.

On all my production server hardware we have iLO anyway, so like, what did I care about watching those servers over serial anyway? Actually from what I understand my servers will output over serial right from the BIOS so you can watch the machines post and such before they even reach the bootloader. I doubt my Asus motherboard will do that, but I'll definitely dig around in there for a while.

Anyway, while I did find enough information to make the cable, I re-documented it so the next person might find the guide I wish I had. Since some people are more "visual" I've included both a basic text "RJ45 pin 1 -> DE-9 Pin 8" and a color coded diagram. I started by testing continuity inside the connector and noting which colors aligned to which RJ45 pins, then made before and after diagrams. The 9 pin connector is "as seen from the back (inside) of the connector" where the solder points are. Most of these have labels on the pins both on the inside and outside, they're just hard to see:

Here's a PDF of that if you want to zoom in, apparently the original draw.io file is embedded in there too.

Most pins are pretty straight forward swapping a wire from one pin to another, but pin 4 on the serial connector has two wires going to it, so I just twisted them together and soldered them both in. Pins 1 and 6 on the Serial connector also need to connect to the same RJ-45 wire. So I soldered the main wire to Pin 1 and used some very fine bodge wire to connect Pin1 to Pin 6. So far so good.

I took some photos, but they're pretty blurry and I'm not ripping this thing back apart since I don't want to break anything. Honestly the diagrams above do a better job of conveying it.

To get Grub to launch getty and start listening, the relevant part of the SuperUser.com thread, and the even more dense Arch documentation they linked to was:

vi /etc/default/grub

GRUB_TERMINAL="console serial"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

grub-mkconfig -o /boot/grub/grub.cfg

Here it is all working in a video recorded on my bench machine:

The Avocent is the top thing in (not on, in) the rack here, the yellow network cable is going to my workstation:

xrayspx's picture

Quick Music Video Fact

Music: 

MTV From 1992

Or: The shit I put up with for good TV in this house.

I had two conversations today about how I basically optimize statistical analysis and data reconfiguration...blah blah. Each conversation just wound up with me wanting to tell the same story so I though I should write it down.

Some time ago I made a colossal mistake. I have a lot of music videos.. Like a lot a lot, to me anyway. And there's organization and logic to it to build different playlists and whatever.

xrayspx's picture

Legacy Forums Taken Down

This is something no one should care about. I have removed the legacy Wolfeboro Online forums from my site. It all still exists but I've stopped publishing it.

The reason for this is that my most "popular" content is the most vile racist trolling shit from assholes in that forum and I don't want to serve it anymore. It's not content I want associated with me, so I'm not going to keep hosting it anymore.

Carry on.

xrayspx's picture

Juggling Evidence

Music: 

If you know you know

Because my mom didn't think I knew how to juggle.

Here.

Fixed Tags:
xrayspx's picture

Power Strip Pro-Tip

Music: 

Future Sound Of London - We Have Explosive

***UPDATE 10-2024***
I only recently learned of the massive scam perpetrated by the former owner of TrippLite in which he "donated" the entire company to a brand new SuperPAC seemingly spun up by Leonard Leo for purposes of this exact transaction. Leo then went on to sell TrippLite to Eaton Power for 1.7bn. This is scum fuckery of the highest order and has no doubt contributed directly to the deaths and suffering of innocent people. For their part, Eaton has a policy against "political donations". I do not know how they square that policy with their purchase of TrippLite, which basically became a fascist slush fund for the purpose of installing a goddamn dictator. Use your judgment. These are still by far the highest quality power strips you can buy.

I did not buy any of these prior to the Eaton acquisition, though I probably did have my TrippLite UPS by that point. Likewise I don't hold Eaton blameless here either. They knew what they were part of, they didn't just want the shiny thing.

** update update... and Schneider has been ransomware'd. Neat.

On with the show...

---

With the massive Retro Youtuber explosion going back even before Covid, I've been yelling to the void about "you need a real screwdriver". Thankfully a couple of rounds of iFixit & Linus sponsorships have gotten this point across :-) And now all those LTT screwdrivers have the delightful whiff of awkward about them. (Bias: I've had Snap-On since like 1997)

I think the next tool for home gamers should be power strips. No one ever thinks of power strips except maybe to mount a super long one over their bench.

I want to buy the world a TrippLite:



I've got these everywhere, but they're great on the bench. A lot of time you'll see Youtubers plugging a whole power strip in special just so they have a switch they can throw at a safe distance to turn on a machine (don't daisy-chain power strips kids!). I have test power cables spooled well away from the power strip just in case I want to cower at a safe distance when powering something up. The neon switches make it super obvious if the thing you're working on is powered or not at a glance:

Pair them with a bunch of 1' extensions and you can tidy up and add physical switches to all your awkward-sized wall warts or to move a plug closer to your work surface. I often have two velcro'd to my lamp:

We also have them in the living room so we can quickly power on & off a bunch of vintage computers and consoles and the LiteBrite and bling and stuff.

They're high quality and they're fast. Eaton/TrippLite has the same $25,000 damage warranty they put on their UPS products.

Next up: Desk Lamps!

*** *IMPORTANT SAFETY TIP* I don't use these on a bench through a UPS, they go straight into the wall. IMHO it's a super bad idea to have UPS power backing up something like a power supply you're testing on the bench! (there are stories here) ***

xrayspx's picture

Have some content

Music: 

It seems like I really don't write very much, but that's kind of a massive misconception. I don't write "much", but I had a bunch of blog entries that were at least 60% written and were missing like, screenshots or links or tags or I need to make new tags for things like XScreensaver and BSDs. Haiku. Shit lots of stuff.

xrayspx's picture

Cinnamon Needs To Get Their Shit Together

Music: 

Eddy Grant - Electric Avenue

I'm a KDE user. I like having my ultimate control over look & feel, even though in almost every sense I'm a "leave it default" guy. But I have a nice MacOS-ey theme, handily and easily-ish customized for the proper Green on Black color scheme which is one of 1.25 acceptable palettes (amber on black):

PICTURE

Note things like the Strawberry media player window and the Dolphin windows, these will be important at probably some future date.

xrayspx's picture

What Do I Win, Internet?

Music: 

Rod Serling

I don't honestly know if this says more about me winning the Internet, or me losing at sanity. You be the judge. I was pretty much just playing Geoguessr, saw that restaurant, noticed the name and remembered exactly the place from the TV show from 15 years ago or whenever. And that they were in Wales so it was pretty likely. Also I play an unseemly amount of Geoguessr. Probably as much as any non-bot user.

xrayspx's picture

Vintage Radio Refurb

Music: 

Yes, Have Some

Electric cord plug with green goo indicating the insulation is breaking down inside.

xrayspx's picture

And The Phone Company Taketh Away

Music: 

And just like that, the balance is restored as I was just informed by The Internet that my phone is no longer supported. Did the phone mention it? Not a chance. Did Verizon? Nah. If I manually go and update it goes out and checks, says it was successful and that I'm up to date with the last Security Update on August 5. As I read it service stopped on August 19.

Why is nothing alerting that fact at all.

And Natalie just replace her battery a couple of months ago. Like she didn't get the battery replaced, she replaced the battery. She's going to be really disappointed that the correct solution really was to just toss it on the pile of perfectly good hardware that gets instabricked by capitalists.

Before I replace my phone I'm going to try and install KDE OS on it or something and try and keep it going.

Fixed Tags:

Pages

Subscribe to RSS - xrayspx's blog