Links 2015 KW 12

Copy your FreeBSD img to sd card @MacOS

  1. Plugin your sd card
  2. Open a terminal as sudo/root/admin
  3. $ diskutil list // Identify the /dev/diskNUMBER of the sd card
    $ diskutil unmountDisk /dev/diskNUMBER
    $ sudo dd bs=1m if=FreeBSD-11.0-CURRENT-arm-armv6-RPI-B-20150217-r278908.img of=/dev/diskNUMBER

How to build your own freebsd raspberry pi (arm6) image:

Setup swapfile on FreeBSD

$ dd if=/dev/zero of=/swapfile bs=1m count=512
$ chmod 0600 /swapfile
$ echo ‘md99            none            swap sw,file=/swapfile  0 0’ >> /etc/fstab
$ reboot
$ swapon -aLq
$ swapinfo
$ swapctl -lh

Links:

Freebsd ntpd setup

$ portsnap fetch update
/* …
Snapshot appears to have been created more than one day into the future!
(Is the system clock correct?)
… */
$ ntpdate pool.ntp.org
$ echo ‘ntpd_enable=“YES”’ >> /etc/rc.conf
$ echo 'ntpdate_enable=“YES”’ >> /etc/rc.conf
$ echo 'ntpd_sync_on_start=“YES”’ >> /etc/rc.conf