FreeBSD 14 Larkbox - BYO-NTP/recipes GitHub Wiki

date server os
2025 Chuwi Larkbox X FreeBSD 14.2

INSTALL

(from memory)

  • Boot into Windows
  • Shrink 512GB partition in half
  • Boot into BIOS
    • disable Secure Boot
    • disable Fast Boot
    • In boot priority, select USB, then NVME
  • Boot into FreeBSD installer on a USB thumb drive
    • manual partition mode
    • create freebsd-zfs partition
    • install FreeBSD
    • create a user, so you can log in remotely (root cannot, yet)

CONFIGURE

remote login

Set up root user w/ssh key access and disable password logins.

ssh-copy-id -i ~/.ssh/id_ed25519 matt@chuwi  # change matt to your username
ssh matt@chuwi
su -
passwd root  # set the root password
cp -r ~matt/.ssh /root/ && chown -R root:wheel /root/.ssh
sysrc sshd_flags="-o PermitRootLogin=without-password -o KbdInteractiveAuthentication=no"
service sshd restart
exit; exit  # disconnect
ssh root@chuwi

enable re1

To enable the 2.5Gb NIC, install the newer drivers:

pkg install -y realtek-re-kmod
cat >> /boot/loader.conf <<EOSYS
if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"
hw.re.max_rx_mbuf_sz="2048"
EOSYS

DISABLED="$(grep ^ifconfig_re0= /etc/rc.conf | grep txsum)"
if [ -z "$DISABLED" ]; then
  ifconfig re0 -rxcsum -txcsum -rxcsum6 -txcsum6
  ifconfig re1 -rxcsum -txcsum -rxcsum6 -txcsum6
  sed -i '' -e '/^ifconfig_re0=/ s/"$/ -rxcsum -txcsum"/' /etc/rc.conf
fi

DISABLED="$(grep ^ifconfig_re0_ipv6 /etc/rc.conf | grep sum6)"
if [ -z "$DISABLED" ]; then
  sed -i '' -e '/^ifconfig_re0_ipv6/ s/"$/ -rxcsum6 -txcsum6"/' /etc/rc.conf
fi

disable wifi

sysrc devmatch_blocklist="if_iwlwifi iwlwifi if_iwlwifi-Qu-b0-hr-b0 if_iwlwifi-Qu-c0-hr-b0 if_iwlwifi-QuZ-a0-hr-b0 if_iwlwifi-so-a0-hr-b0"

localize

Apply the FreeBSD changes.

References

⚠️ **GitHub.com Fallback** ⚠️