From 98bd101071502eeda32ee30264101737390b3d44 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 22 Sep 2024 23:30:07 -0500 Subject: [PATCH] Add freebsd.org --- freebsd.org | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ prometheus.org | 2 +- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 freebsd.org diff --git a/freebsd.org b/freebsd.org new file mode 100644 index 0000000..06c0a06 --- /dev/null +++ b/freebsd.org @@ -0,0 +1,63 @@ +#+title: FreeBSD + +** Install the ports tree + +Source: [[https://docs.freebsd.org/en/books/handbook/ports/#ports-using-installation-methods][Chapter 4. Installing Applications: Packages and Ports | FreeBSD Documentation Portal]] + +*** Ensure the FreeBSD source code is checked out + +#+BEGIN_SRC shell +sudo git clone -o freebsd -b releng/14.1 https://git.FreeBSD.org/src.git /usr/src +#+END_SRC + +*** Check out the ports tree + +#+BEGIN_SRC shell +sudo git clone --depth 1 https://git.FreeBSD.org/ports.git -b 2024Q3 /usr/ports +#+END_SRC + +To switch to a different quarterly branch: + +#+BEGIN_SRC shell +sudo git -C /usr/ports switch 2024Q4 +#+END_SRC + +** drm-61-kmod + +Install from the ports tree. + +#+BEGIN_SRC shell +cd /usr/ports/graphics/drm-61-kmod +sudo make install clean +#+END_SRC + +Alternatively, for Alderlake GPUs: + +#+BEGIN_SRC shell +sudo pkg install drm-kmod +#+END_SRC + +Edit ~/etc/rc.conf~: + +,#+BEGIN_SRC shell +kld_list="i915kms" +#+END_SRC + +Add user to ~video~ group: + +#+BEGIN_SRC shell +sudo pw groupmod video -m jas +#+END_SRC + +** Mount filesystems in single-user mode + +When booted into single-user mode. + +#+BEGIN_SRC shell +fsck +mount -u / +mount -a -t zfs +zfs mount -a +#+END_SRC + +You should now be able to edit files, add/remove packages, etc. diff --git a/prometheus.org b/prometheus.org index 6ef0ace..c1e9bbd 100644 --- a/prometheus.org +++ b/prometheus.org @@ -50,7 +50,7 @@ sudo chown -R prometheus: /etc/prometheus /var/lib/prometheus #+END_SRC Save the following contents to a file at ~/etc/systemd/system/prometheus.service~: -#+BEGIN_SRC shell +#+BEGIN_SRC systemd [Unit] Description=Prometheus Wants=network-online.target