DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 5th July 2015
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

ar > tar ... does not recognize the format here... nor gtar
I used the second of the three links.

................
Works (at least pre-reboot...) per the instructions in the next post.

Last edited by jb_daefo; 6th July 2015 at 01:32 AM.
Reply With Quote
  #3   (View Single Post)  
Old 5th July 2015
Mike-Sanders Mike-Sanders is offline
Fdisk Soldier
 
Join Date: Dec 2012
Posts: 52
Default

Hmm no problems here to speak up. Question... You are logged in as root right? Here's another method to extract the deb archive:

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

I've also updated the url in the how-to above so that it now points to the offical Debian repository. If for some reason, you find you still cant extract the contents of the deb file, reply here & I'll post a link to the stripped/converted font so you can down load it directly. In fact, hold on, will upload it now...

Okay, download the font here [4kb]:

http://freebsd.hypermart.net/misc/te...latin-8x16.fnt

Then, start at step 7...
__________________
www.tacoshack.xyz
Reply With Quote
  #4   (View Single Post)  
Old 6th July 2015
Mike-Sanders Mike-Sanders is offline
Fdisk Soldier
 
Join Date: Dec 2012
Posts: 52
Default

> Works (at least pre-reboot...)

What OS version number on your end jb? (Thanks in advance).
__________________
www.tacoshack.xyz
Reply With Quote
  #5   (View Single Post)  
Old 7th July 2015
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

11.0-CURRENT r281990 Sun Apr 26 2015 i386

I should rephrase that post above:
Works (have not rebooted yet). Did not mean to imply that it did not
persist across reboots...
In fact it works so well if I was well versed in porting I'd port it or ask
someone else to...
__________________
FreeBSD 13-STABLE
Reply With Quote
  #6   (View Single Post)  
Old 7th July 2015
Mike-Sanders Mike-Sanders is offline
Fdisk Soldier
 
Join Date: Dec 2012
Posts: 52
Default

Good deal. Thanks for the feedback jb, appreciate it immensely. Re: Porting...

You know, I have one official port (link here) & to be perfectly candid, building a port's infrastructure is not really all that hard (handbook helped allot). Now submitting a port for inclusion... well, is none too pleasant & not well documented enough IMO. ¯\_(ツ)_/¯
__________________
www.tacoshack.xyz
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your favorite font? guitarscn Off-Topic 4 1st January 2011 01:46 AM
font-misc-ethiopic & font-misc-meltho Beastie General software and network 0 27th February 2009 11:21 AM
CLI font size idefix FreeBSD General 3 7th February 2009 11:19 AM
Odd font display TerryP Feedback and Suggestions 4 2nd November 2008 11:22 AM
change default font of the X rex FreeBSD General 2 26th October 2008 05:54 PM


All times are GMT. The time now is 08:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick