Coraid ethernet console

The idea is that server don't have easy console access for RS232 or VGA/PS2 access. We do have ethernet and to make this as reliable as possible, bypass the IP stack using cec.

git clone --mirror git:// /mirror/git/
rm -rv /union/git/
git clone /mirror/git/ /union/git/
cd /union/git/
 --- /union/git/
 +++ /union/git/
 @@ -40 +40 @@ enum {
 -       CEC_ETYPE = 0xBCBC,
 +       CEC_ETYPE = 0x893C,

Console of pet server configured to remove root password and make the font bigger, roughly as follows

cp /usr/system/getty.service /etc/systemd/system/getty@tty1.service
sed 's/agetty --noclear/agetty --autologin root --noclear/' /etc/systemd/system/getty@tty1.service
systemctl daemon-reload
sed s/FONTFACE="Fixed"/FONTFACE="Terminus"/ /etc/default/console-setup
sed s/FONTSIZE="16"/FONTFACE="16x32"/ /etc/default/console-setup

Let's make a systemd file to start up and supervise lecd in /etc/systemd/system/lecd.service

Recommend putting on a well protected vlan if using those, such as the highest privileged vlan in network.


#ExecStartPre=/usr/lib/systemd/systemd-networkd-wait-online --interface=VLAN
ExecStart=/union/git/ VLAN

start, stop and check this service with systemctl, also user can "accidently" kill lecd on the server to confirm that systemd will restart it.

Use /union/git/ to interact with it from the client.