No £ sign in FreeBSD terminals

To do this globally: add the following to the end of the default:\ section of /etc/login.conf, not forgetting to add a backslash to the line above where you add these lines.


Then run

cap_mkdb /etc/login.conf

Or, for a single user set LANG to en_GB.UTF-8 and MM_CHARSET to UTF-8.

For example if your shell is bash put the following in .bash_login.

export LANG

Boot from grub2 on Linux

Here FreeBSD is installed on ufs2 partitions on the same disk as Linux.

Add something similar to the following to /etc/grub.d/40_custom

menuentry 'FreeBSD 12' {
    insmod ufs2
    set root=(hd0,gpt7)
    kfreebsd /boot/loader

and run grub-mkconfig -o /boot/grub/grub.cfg


For GPT disk and EFI booting the following works: shared /boot/efi, and add the following to /etc/grub.d/40_custom:

menuentry "FreeBSD 12.1" {
    insmod fat
    insmod chain
    chainloader (hd0,gpt1)/efi/boot/BOOTx64.efi

xorg.conf for dinah

Graphics card is Mobile 945GSE Express Integrated Graphics Controller

(As seen by: pciconf -lv | grep -B3 display)

Section "Module"
        Load  "fb"
        Load  "vgahw"

Section "Device"
        Identifier "Card0"
        Driver     "intel"

Also, add kern.vty=vt to /boot/loader.conf for KMS and nice text consoles.

Xorg configuration for jubjub

Graphic card is Intel Corporation HD Graphics 5300

Just this file /usr/local/etc/X11/xorg.conf.d/device.conf

Section    "Device"
       Identifier "Card0"
       Driver     "scfb"
       BusID      "PCI:0:2:0"