View Single Post
  #1   (View Single Post)  
Old 4th July 2015
Mike-Sanders Mike-Sanders is offline
Fdisk Soldier
 
Join Date: Dec 2012
Posts: 52
Default How To: Terminus font in console

Meant to do this earlier but got tangled up a little bit.

Code:
How To: Terminus font in console


Tested on FreeBSD10...


0. assumes root access at a physical console throughout


1. download the *compiled* console-terminus font .deb archive
from the url below (link working as of 7/5/2015)...


https://packages.debian.org/squeeze/all/console-terminus/download


2. move .deb archive to /tmp...


mv console-terminus_4.30-2_all.deb /tmp/ && cd /tmp


3. extract deb archive using one of the two methods shown next...


ar p /tmp/console-terminus_4.30-2_all.deb data.tar.gz | tar -xzf -

ar vx /tmp/*.deb && tar -xzf /tmp/data.tar.gz


4. read README.Debian.gz to determine font for your locale...


zless /tmp/usr/share/doc/console-terminus/README.Debian.gz


5. extract gzipped font (I selected the english font)...


gunzip -c /tmp/usr/share/consolefonts/Lat15-Terminus16.psf.gz > /tmp/Lat15-Terminus16.psf


6. strip psf header/unicode-map trailer (8x16x256 only?)...


dd if=Lat15-Terminus16.psf of=terminus-latin-8x16.fnt bs=1 count=4096 skip=4


7. test font...


vidcontrol -f /tmp/terminus-latin-8x16.fnt && echo success


8. move font to syscons font directory...


mv /tmp/terminus-latin-8x16.fnt /usr/share/syscons/fonts/


9. load font upon every boot (add construct to /etc/rc.conf)...


font8x16="terminus-latin-8x16"


10. enjoy
__________________
www.tacoshack.xyz

Last edited by Mike-Sanders; 6th July 2015 at 12:43 PM. Reason: updated links
Reply With Quote