Contents
Description
Installation
Boot disk
Create a bootable installation USB stick from FreeBSD.org. Install the disk by:
OS |
Command |
MacOS |
sudo dd if=FreeBSD-12.2-RELEASE-amd64-memstick.img of=/dev/diskX bs=4m |
Linux |
sudo dd if=FreeBSD-12.2-RELEASE-amd64-memstick.img of=/dev/sdX bs=4=M |
Disks
The best solution is using ZFS. Downside, it will take your whole disk. Encrypt your disk and swap file.
Configuration
Users
Add the users:
Kernel
svnlite checkout https://svn.freebsd.org/base/release/12.2.0 /usr/src
Window manager
pkg install xorg xfce
NVIDIA
Updated the ports
distinfo
SHA256 (NVIDIA-FreeBSD-x86_64-460.27.04.tar.gz) = b9c0e676b5e66569d2f71a25ab1e782bb8a52cbcb3e413e854b72debc37b6623 SIZE (NVIDIA-FreeBSD-x86_64-460.27.04.tar.gz) = 103234112
Makefile
+DISTVERSION?= 460.27.04
-SUB_PATCHES= extra-patch-src-Makefile \
- extra-patch-src-nv-freebsd.h \
- extra-patch-src-nv-misc.h \
- extra-patch-src-nvidia_ctl.c \
- extra-patch-src-nvidia_dev.c \
- extra-patch-src-nvidia_linux.c \
- extra-patch-src-nvidia_pci.c
-.if ${NVVERSION} >= 358.009
-# Initialize memory allocations to avoid spurious "lock re-initialization"
-# errors. A little more detail can be found in bug 201340 starting around
-# comment #50.
-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c
-.endifremoved some includes
In /boot/loader.conf:
nvidia-modeset_load="YES"
pkg install nvidia-xconfig nvidia-settings
run nvidia-xconfig
Xorg
Section "Device"
Identifier "Card0"
Driver "nvidia"
# BusID "PCI:0:8:0:0"
EndSection
Section "Module"
Load "freetype"
Load "bitmap"
Load "type1"
Load "glx"
EndSectionIn /etc/rc.conf:
dbus_enable="YES" hald_enable="YES"
Login manager
pkg install slim
In /etc/rc.conf:
slim_enable="YES"