Hi folks I want OpenBSD to boot directly into an application, on tty, without Xenocara.
I searched and found it is not supported, and the closest you can do is run your stuff directly from /etc/rc.local or /etc/ttys But an application run the stated way is crippled in various ways. No better answer on the mailing list and on a couple of 3rd-party resources, over many years. So I asked an AI. This time a hallucinating machine seems to have fared better than humans. So here I present a perl script for your review. See attachment. It works on my amd64 7.9, both bare metal and VM. There actually are 2 scripts. The `autologin-tty-exec` is mostly what AI told me, with my adjustments. I don't completely understand this tty setup part, so please pay closer attention there. But that script requires you to edit /etc/ttys manually, which may be fine but is also error-prone, then I thought a setter would be nice. Thus, `autologin-tty` is born. It can help you with configuration: set, get, revert; and it does setting tty up and runs a custom command on boot. It also includes a usage message with examples, so just run it with --help to see how to use it. Again, `autologin-tty` is `autologin-tty-exec` plus helpers or vice versa: `autologin-tty-exec` is a bare-bones `autologin-tty`. Their exec part is compatible, in /etc/ttys you can replace a space with a dash and instead of running the bigger script exec subcommand, you run the smaller script: `autologin-tty exec` `autologin-tty-exec` Both scripts have a dependency, please install IO::Tty with one of: pkg_add p5-IO-Tty cpan IO::Tty I'd like to hear from you before publishing on CPAN, perhaps as App::OpenBSD::autologin-tty or I'm open to name suggestions. Script correction suggestions are welcome! Specifically, it seems to work in VM console, but it doesn't set baud speed as per /etc/gettytab so dunno about real COM port. Peace
autologin-tty
Description: Binary data
autologin-tty-exec
Description: Binary data

