Remote console options for Linux on PCs
I want to be able to remotely access my PC Linux box even if Linux is down. Ie: just like you’d do with a keyboard and monitor plugged in locally, but via the Internet. There’s a zillion ways to do this but they are all fiddly and the simplest ways are expensive or unobtanium.
This post is a mess but discusses three remote options.
I left out one useful technology: power control. Some of these solutions let you power cycle the Linux PC, either via the BIOS or via a hardware control. Me, I’m just using a smart power switch.
Remote management
The Big Boy option is to buy server hardware that has remote management capabilities. Some bulletproof mini-OS in the BIOS that you can access over the network. I have a friend who swears by HPE Proliant MicroServers for this exact reason. This isn’t really a Linux console, it’s just a PC that’s better suited for remote server management.
IP KVM
A common hack is to emulate a keyboard, video card, and mouse. You get a magic device (the “IP KVM”) that has HDMI and USB inputs, plug those in via cables to the PC’s HDMI and USB output, and as far as the Linux PC knows it has a normal local display, keyboard, and mouse. Meanwhile the magic device is accepting the video feed and making it available via a network server somehow, also emulating a keyboard and mouse for the PC.
The nice thing about this solution is it’s really a PC level solution, Linux is unaware of it. You can even use it to access the machine’s BIOS.
So what’s the magic device?
There’s a bunch of enterprise-grade IP KVMs out there for $400 or more. The nicest ones are rackmounted. They were more expensive and capable than I wanted so I kept looking.
JetKVM looks very impressive: $70 for a slick device with a web interface. Unfortunately this is not really purchasable. It’s only for sale on Kickstarter, they are way oversold, and they aren’t taking orders for the US.
PiKVM is another magic device option and you see it mentioned frequently because it’s a bit more hacker friendly. But the simplest thing is to buy it for.. yes, about $400. You can also DIY it with your own RPi and an HDMI capture device. I’m about to try this with a $15 RPi Zero 2 W and a $30 HDMI interface that plugs in to the camera port with a $10 cable.
I’ve also run across NanoKVM, a tiny PiKVM based on the LicheeRV Nano hardware. Interestingly the CPU is RISC V. It looks to be entirely a Chinese product so may be a bit tricky to import and understand the code. I sure wish I could read Chinese. Update: SiPeed has a pre-order page in English for NanoKVM.
Update: GL-iNet has a Comet(GL-RM1) for $90
Serial console
Another choice is to go old school and use Linux’ serial console support. This won’t let you access the BIOS of the PC (probably) but it will let you get to Linux the moment the boot loader starts.
On the Linux server end you’ll want to enable a serial console. Eventually you want this serial device to be a console at boot time. For hacking around you can just run a getty on the serial console.
On the other side of the serial cable you need a device that accepts serial and has an Internet interface. ConsolePi is one device for this purpose. It seems quite capable but also difficult to understand.
I have some much more detailed notes on a serial console in another post.