OK, here we go.
First, I'm assuming that the changing of the text font size is something that doesn't survive a reboot, so you have to do it after every boot - and that there's no way to change it so that the change is permanent. Presumably, if there is some way to do it once and for all, some other forum poster will chime in with that information. I am also assuming that the dpkg-reconfigure console-setup
command that you use to change the font size requires some user intervention - selecting things off menus and so on. Again, if there is a more automated way to do this, others are welcome to chime in.
Second, you need to check to see if you are auto-login-d on tty1. This changes back and forth from time to time with various Raspbian spins - I can't remember if it is on in the latest/current Raspbian. You can check this with the "who" command or by doing "ps uaxw | grep tty1". The point is that if it is not auto-login-d on tty1, then you need to mess around with systemd to turn that functionality (back) on. I can't tell from my systems whether or not it is on by default, because if it isn't, the first thing I do is turn it on.
If you need further help with this part of it, just let me know.
Next, you will need the program called "Expect". Do "apt install expect".
Now, use the "autoexpect" program to generate a script that will do the sudo dpkg-reconfigure console-setup
thing automatically. "man autoexpect" will get you on the right path. Call this script "do_ConsoleFont".
Finally, once you've got all that working, put the following lines into your .profile (at the end):
Code: Select all
case $(tty | sed s:^/dev/::) in
Now, reboot and, if you've done everything right, it should "just work".