Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@grahamperrin
grahamperrin / pkgsave_cleanup.sh
Created March 9, 2026 07:07
pkgsave_cleanup script from Roger Marquis
#!/bin/sh -
## pkgsave_cleanup
# Archive .pkgsave files created in multiple locations by messy upgrade apps,
# preserving the original path and deleting unchanged files.
## to do:
# Check-in as appropriate.
# See also: etcupdate, zfs snapshot, beadm, ...
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
set -a
@grahamperrin
grahamperrin / freebsd-desktop-alfix-quickstart.md
Last active March 8, 2026 11:25
FreeBSD desktop installer script test: quick start

FreeBSD desktop installer script test

Quick start

  1. perform a fresh installation of FreeBSD
  2. restart
  3. run the four commands below.

cd /root

@grahamperrin
grahamperrin / pkg-unregister.8.txt
Created February 23, 2026 19:16
pkg-unregister(8) manual page – pkg version 2.5.1, FreeBSD 15.0-RELEASE-p3
PKG-UNREGISTER(8) FreeBSD System Manager's Manual PKG-UNREGISTER(8)
NAME
pkg unregister – deletes package records from the database
SYNOPSIS
pkg unregister [-fnqRy] [-Cgix] pkg-name ...
pkg unregister [-Dnqy] -a
pkg unregister [--{force,dry-run,quiet,recursive,yes}]
@grahamperrin
grahamperrin / 2026-02-14 04-08 whoopsie.md
Last active February 14, 2026 05:02
kwin_wayland segfault, 2026-02-14 04:08

kwin_wayland segfault, 2026-02-14 04:08

In Firefox, logged in at https://forums.virtualbox.org/posting.php?mode=reply&t=113890 whlist drafting a reply, I clicked to add an image. [img][/img] code appeared, so I keyed Control-T for a new tab then went to my logged in view of https://imgbb.com/.

Then probably Alt-Tab to bring Dolphin to the foreground, and whilst I began browsing screenshots, if I recall correctly:

  1. on my secondary display, an HP ZBook 17 G2 (docked), the screen became distorted
  2. apps disappeared from my main display, to the left (on DisplayPort)
  3. some apps reappeared
  4. plasmashell reappeared
@grahamperrin
grahamperrin / pkg.freebsd.org-pkg-urls.md
Last active January 31, 2026 13:14
pkg.freebsd.org package download URLs

pkg.freebsd.org package download URLs

When a FreeBSD Project-provided package is not in the usual places, we can look in unusual places.

An example: editors/vscode

Currently at https://www.freshports.org/editors/vscode/#packages:

No package information for this port in our database …

@grahamperrin
grahamperrin / fediverse-decision-time.md
Last active January 26, 2026 20:54
Fediverse decision time

Fediverse decision time

I needed a second home. The winner:

Runner-up:

@grahamperrin
grahamperrin / freebsd-15.0-release-amd64-zfs.vhd-quickstart.md
Last active January 7, 2026 19:48
FreeBSD 15 VirtualBox quick start
@grahamperrin
grahamperrin / etn-review.md
Last active January 3, 2026 15:40
partial review
  1. https://old.reddit.com/r/freebsd/comments/1pq7qci/-/nwdqbq1/?context=2 under post 1pq7qci
  2. https://old.reddit.com/r/freebsd/comments/1pq7qci/-/nwdr78v/?context=1 under post 1pq7qci
  3. https://old.reddit.com/r/freebsd/comments/1pq7qci/-/nwfglk9/?context=3 under post 1pq7qci involving removal of a comment from ETN
  4. https://old.reddit.com/r/freebsd/comments/1pq7qci/-/nwfhjrg/?context=1 under post 1pq7qci
  5. https://old.reddit.com/r/freebsd/comments/1pq7qci/-/nwimgms/?context=3 under post 1pq7qci involving removal of a comment from ETN, moderator STRIKE ONE
  6. https://old.reddit.com/r/freebsd/comments/1pq7qci/-/nwjgftj/?context=2 under post 1pq7qci involving removal of two comments from ETN, moderator CLOSE TO STRIKE TWO
  7. https://old.reddit.com/r/freebsd/comments/1pyab53/-/nwipu7n/?context=2 under post 1pyab53 ETN seeking a backstory, promising to not leak
  8. https://old.reddit.com/r/freebsd/comments/1pymcte/-/ post 1pymcte (ETN, 2025-12-29)
  9. https://forum.opnsense.org/index.php?topic=5
@grahamperrin
grahamperrin / FreeBSD-src-16-inferior.md
Last active January 1, 2026 09:46
Adding the FreeBSD-src-16 base package to inferior versions of FreeBSD, for the FreeBSD-base 15 repo keys

Adding the FreeBSD-src-16 base package to inferior versions of FreeBSD, for the FreeBSD-base 15 repo keys

For https://www.freebsd.org/releases/15.0R/relnotes/#upgrade-rc and the like.

Where a pair of cp commands involves these two paths – a file, and a directory file:

/usr/src/usr.sbin/pkg/FreeBSD.conf.quarterly-release
/usr/src/share/keys/pkgbase-15
@grahamperrin
grahamperrin / 2025-11-29-virtualbox.txt
Created November 29, 2025 13:42
All VirtualBox VMs terminating unexpectedly during startup with exit code 1 (0x1) – Result Code: NS_ERROR_FAILURE (0x80004005) – Component: MachineWrap – Interface: IMachine {e36a5081-a82a-40bd-9e4e-42a44d6ce50f}
grahamperrin@mowa219-gjp4 ~> VBoxManage startvm removable
Waiting for VM "removable" to power on...
VBoxManage: error: The virtual machine 'removable' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
grahamperrin@mowa219-gjp4 ~ [1]> sudo dmesg | grep -i vbox
[sudo: authenticate] Password:
[ 65.864631] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
[ 65.878166] vboxdrv: Found 8 processor cores/threads
[ 65.894652] vboxdrv: TSC mode is Invariant, tentative frequency 2494209944 Hz
[ 65.894659] vboxdrv: Successfully loaded version 7.2.4 r170995 (interface 0x00340001)