FreeBSD 14.1 RELEASE here.
The virtual TTYs (Ctrl+Alt+F1..F8) are provided through VT(4),
the man page to which mentions only one tool for setting
up the font -- vidcontrol(1), which affects only the TTY on which
the program is invoked.
How, then, can I set up the font I need (e.g. terminus-b32.fnt),
a) as early in the boot process as possble, and
b) for all TTYs, 1 to 8 ?
Hello, all.
FreeBSD 14.1 RELEASE here.
The virtual TTYs (Ctrl+Alt+F1..F8) are provided through VT(4),
the man page to which mentions only one tool for setting
up the font -- vidcontrol(1), which affects only the TTY on which
the program is invoked.
How, then, can I set up the font I need (e.g. terminus-b32.fnt),
a) as early in the boot process as possble, and
b) for all TTYs, 1 to 8 ?
Anton Shepelev <anton.txt@gmail.moc> writes:
FreeBSD 14.1 RELEASE here.
The virtual TTYs (Ctrl+Alt+F1..F8) are provided through VT(4),
the man page to which mentions only one tool for setting
up the font -- vidcontrol(1), which affects only the TTY on which
the program is invoked.
Actually, I think it operates on stdin, which you can specify.
How, then, can I set up the font I need (e.g. terminus-b32.fnt),
a) as early in the boot process as possble, and
b) for all TTYs, 1 to 8 ?
The following, done as root, perhaps in /etc/rc.local, might work:
vidcontrol -f terminus-b32 </dev/ttyv1
vidcontrol -f terminus-b32 </dev/ttyv2
vidcontrol -f terminus-b32 </dev/ttyv3
vidcontrol -f terminus-b32 </dev/ttyv4
vidcontrol -f terminus-b32 </dev/ttyv5
vidcontrol -f terminus-b32 </dev/ttyv6
vidcontrol -f terminus-b32 </dev/ttyv7
vidcontrol -f terminus-b32 </dev/ttyv8
(or use a shell loop).
There may well be a more elegant solution, such as some kern.vt.*
variable one can set, but I don't know it.
On Sat, 21 Sep 2024 19:20:31 -0000 (UTC), Anton Shepelev wrote:
FreeBSD 14.1 RELEASE here.
The virtual TTYs (Ctrl+Alt+F1..F8) are provided through VT(4),
the man page to which mentions only one tool for setting
up the font -- vidcontrol(1), which affects only the TTY on which
the program is invoked.
How, then, can I set up the font I need (e.g. terminus-b32.fnt),
a) as early in the boot process as possble, and
b) for all TTYs, 1 to 8 ?
Simply put following into /etc/rc.config:
fontb32="terminus-b32.fnt"
sysrc fontb32="terminus-b32.fnt"
does the job.
man rc.conf
or
less /etc/defaults/rc.conf
for other useful settings.
Detlef Sax <sax@noart.de> wrote:
On Sat, 21 Sep 2024 19:20:31 -0000 (UTC), Anton Shepelev wrote:
FreeBSD 14.1 RELEASE here.
The virtual TTYs (Ctrl+Alt+F1..F8) are provided through VT(4),
the man page to which mentions only one tool for setting
up the font -- vidcontrol(1), which affects only the TTY on which
the program is invoked.
How, then, can I set up the font I need (e.g. terminus-b32.fnt),
a) as early in the boot process as possble, and
b) for all TTYs, 1 to 8 ?
Simply put following into /etc/rc.config:
fontb32="terminus-b32.fnt"
You mean in /etc/rc.conf? Unfortunately, this line
has no effect, at least no the one I seek. I think
this is an unrecognised variable, not check by any
component.
sysrc fontb32="terminus-b32.fnt"
does the job.
Yes, and I wonder why FreeBSD provides a dedicdated
utility for adding lines info rc.conf. Querying those
values is certainly useful, though.
man rc.conf
or
less /etc/defaults/rc.conf
for other useful settings.
Thank you, but fontb32 is not mentioned in either.
How did you learn about the `fontb32' setting?
Anton Shepelev <anton.txt@gmail.moc> wrote
in <vcn69v$1u780$1@paganini.bofh.team>:
#
# Hello, all.
#
# FreeBSD 14.1 RELEASE here.
#
# The virtual TTYs (Ctrl+Alt+F1..F8) are provided through VT(4),
# the man page to which mentions only one tool for setting
# up the font -- vidcontrol(1), which affects only the TTY on which
# the program is invoked.
#
# How, then, can I set up the font I need (e.g. terminus-b32.fnt),
# a) as early in the boot process as possble, and
# b) for all TTYs, 1 to 8 ?
I have in /etc/rc.conf this for the gallant font:
allscreens_flags="-f gallant"
That's the Sun Microsystems console font, simply unsurpassed,
for those who remember. Sigh...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:56:44 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,952 |