Add freebsd.org

This commit is contained in:
Jeffrey Serio 2024-09-22 23:30:07 -05:00
parent 4663574df8
commit 98bd101071
2 changed files with 64 additions and 1 deletions

63
freebsd.org Normal file
View File

@ -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.

View File

@ -50,7 +50,7 @@ sudo chown -R prometheus: /etc/prometheus /var/lib/prometheus
#+END_SRC #+END_SRC
Save the following contents to a file at ~/etc/systemd/system/prometheus.service~: Save the following contents to a file at ~/etc/systemd/system/prometheus.service~:
#+BEGIN_SRC shell #+BEGIN_SRC systemd
[Unit] [Unit]
Description=Prometheus Description=Prometheus
Wants=network-online.target Wants=network-online.target