Premise:
In a automotive gate automation scenario, I'm building a daemon, that I think to run in an Ubuntu headless server.
linux headless host
+----------------------+
| |
| |
| |
| +--------------+ |
| | graphic card | |
+---+------+-------+---+
| HDMI
|
|
+--------------v---------------+
| |
| Please contact the operator. |
| Push the emergency button |
| |
| |
| |
| |
+------------------------------+
high resolution screen
Goal:
The daemon program has to display some simple texts on a screen. Basically I just need to write text lines on a stdout, but with configurable BIG size fonts and geometry, as I could with a gnome terminal on a desktop environment. The point is that I would avoid to install a desktop environment just to solve the problem.
In the screenshot it's displayed the command
clear && echo "Please contact operator"
on a gnome terminal with different font size setting.
BTW, the reason of big font requirement is that displayed text will be read by truck drivers, at a distance of 1/2 meters from the computer monitor.
Notes:
A way I explored is to set the TTY character setting (at GRUB level). Unfortunately it doesn't appear to be a good option, because the font setting are very limited.
Reading Linux without graphical OS but with graphical resources, maybe framebuffer mode could be an option?
Question:
How can I display big front texts (so in a graphic mode) on a headless computer?
clear && printf "push the\nemergency\nbutton" | toilet -t --font=mono12
– Giorgio Robino Nov 03 '20 at 10:48