Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@grahamperrin
grahamperrin / freebsd-installer-offline-packages.md
Last active October 9, 2025 23:32
FreeBSD Installer: using the installer's offline packages

FreeBSD Installer: using the installer's offline packages

The rough guide below is for:

  • FreeBSD-15.0-ALPHA5-amd64-20251004-1c0898edf28f-280541-dvd1.iso

After a minimimal installation of FreeBSD

Before first boot:

@grahamperrin
grahamperrin / 2025-09-25 06-55 typescript.txt
Last active September 25, 2025 06:47
FreeBSD major upgrade from RELEASE to CURRENT, before and after pkg issue 2522
Script started on Thu Sep 25 06:55:15 2025
root@freebsd-conf:~ # echo $SHELL
/bin/csh
root@freebsd-conf:~ # freebsd-version -kru ; uname -mvKU
14.3-RELEASE-p3
14.3-RELEASE-p3
14.3-RELEASE-p3
FreeBSD 14.3-RELEASE-p3 releng/14.3-n271443-ed55d0f2bc69 GENERIC amd64 1403000 1403000
@grahamperrin
grahamperrin / pkgbase-major-upgrade.md
Last active January 1, 2026 09:48
FreeBSD: pkgbase: major upgrades

FreeBSD: pkgbase: major upgrades

A rough guide, for alpha testing on AMD64:

  • tested with FreeBSD 15.0-ALPHA2 and ALPHA3
  • things might be less rough with ALPHA4, with or without the next release of ports-mgmt/pkg.

Not intended to be comprehensive.

Update, December 2024

@grahamperrin
grahamperrin / freebsd-packages-shortlist.md
Last active December 27, 2025 15:05
A shortlist of FreeBSD packages

A shortlist of FreeBSD packages

Packages that I often install on test systems.

pkg install --quiet --yes drm-kmod firefox gdisk gitup htop hw-probe kde lsblk lynx nano pciutils roxterm sddm stressdisk uclcmd usbutils virtualbox-ose-additions-72 xfce xorg

I normally omit:

  • drm-kmod when installing in a VirtualBox guest
  • kde when I want Xfce alone
@grahamperrin
grahamperrin / freebsd-installer-pkgbasify.md
Last active December 25, 2025 23:24
Using pkgbasify to repair a broken installation of FreeBSD 14.3-RELEASE

Using pkgbasify to repair a broken installation of FreeBSD 14.3-RELEASE

Condensed steps

  1. Use a memstick.img file to write a FreeBSD installer to a memory stick
  2. boot from the stick in single user mode
  3. /bin/csh
  4. use gpart(8) to resize things
  5. growfs /
  6. mount -uw /
@grahamperrin
grahamperrin / freebsd-ee.md
Last active March 7, 2026 07:24
FreeBSD: preferring ee (avoiding vi) for csh/tcsh and sh

FreeBSD: preferring ee (avoiding vi) for csh/tcsh and sh

Final changes when exiting FreeBSD Installer

Install ee (easy editor) and nano

FreeBSD 14:

pkg install --yes nano
@grahamperrin
grahamperrin / freebsd-de-packages.md
Last active February 28, 2026 04:36
Desktop environments: FreeBSD Project-provided packages in the ports collection

Package availability

FreshPorts provides tables, and more.

Desktop environments, display managers, Sway, X.Org

It's not unusual for a Tier 1 platform to have no package for a wanted desktop environment. Two platforms are at this tier:

  • aarch64 – 64-bit ARMv8
@grahamperrin
grahamperrin / 1500043-007-base-ports.txt
Created May 25, 2025 08:14
FreeBSD: fixed broken icons in Geany, GIMP, HandBrake, PDF Arranger, Remmina, and various other applications
root@mowa219-gjp4-zbook-freebsd:~ # bectl list -c creation | tail -n 6
1500043-002-base - - 1.71G 2025-05-16 12:34
1500043-003-base - - 1.74G 2025-05-20 11:00
1500043-004-base - - 1.66G 2025-05-21 05:50
1500043-005-base R /tmp/down 240G 2025-05-23 18:45
1500043-007-base-firefox N / 8.88G 2025-05-25 06:08
1500043-008-base - - 1.18G 2025-05-25 06:43
root@mowa219-gjp4-zbook-freebsd:~ # bectl umount 1500043-005-base
root@mowa219-gjp4-zbook-freebsd:~ # pkg iinfo gobject
gobject-introspection-1.84.0,1
@grahamperrin
grahamperrin / somesystems.md
Last active April 2, 2026 00:23
FreeBSD, GhostBSD, NomadBSD, Ubuntu, Kubuntu, KDE Plasma

A concise comparison of operating systems. Some focus on root-on-ZFS, and on Plasma. Not intended to be comprehensive.

Describing availability is not necessarily a recommendation to install what's available.

The systems

@grahamperrin
grahamperrin / 2025-04-20-19-08-gg2.5pro-experimental.md
Last active April 22, 2025 11:24
General troubleshooting advice for FreeBSD

Seeking the best unofficial resources

I fed a forty-word paragraph to Google Gemini 2.5 Pro (Experimental) on the evening of Sunday 20th April. Twenty of the forty:

Where can I find general troubleshooting advice for FreeBSD? Emphasis on: general. … I'm looking for the best unofficial resources. Thanks.

Gemini offered a 508-word response. I:

  1. reduced it to around 330 (not counting * or … as words)
  2. added a link to the third edition (2018) of Absolute FreeBSD