Differences between revisions 6 and 8 (spanning 2 versions)
Revision 6 as of 2020-12-20 08:47:17
Size: 907
Editor: Sciuro
Comment:
Revision 8 as of 2020-12-20 21:16:17
Size: 2133
Editor: Sciuro
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:

= Installation =
== Boot disk ==
Create a bootable installation USB stick from [[https://www.freebsd.org/where.html|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.
Line 15: Line 26:
}}}

== Window manager ==
{{{
pkg install slim xfce
Line 26: Line 42:
{{{
+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
-.endif

}}}

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 slim 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
-.endif

removed some includes

In /boot/loader.conf: nvidia="YES" nvidia-modeset_load="YES"

Xorg

Section "Device"
        Identifier      "Card0"
        Driver          "nvidia"
        # BusID         "PCI:0:8:0:0"
EndSection

In /etc/rc.conf:

dbus_enable="YES"
hald_enable="YES"

Login manager

In /etc/rc.conf:

sddm_enable="YES"

Linux compat

Howto/FreeBSDDesktop (last edited 2021-03-06 07:39:03 by Sciuro)