Differences between revisions 8 and 10 (spanning 2 versions)
Revision 8 as of 2020-12-20 21:16:17
Size: 2133
Editor: Sciuro
Comment:
Revision 10 as of 2020-12-20 21:40:01
Size: 2105
Editor: Sciuro
Comment:
Deletions are marked like this. Additions are marked like this.
Line 30: Line 30:
pkg install slim xfce pkg install xorg slim xfce
Line 65: Line 65:
nvidia="YES" {{{
Line 67: Line 67:
}}}
Line 68: Line 69:
run nvidia-xconfig
Line 84: Line 86:
In ''/etc/rc.conf'':
{{{
sddm_enable="YES"
}}}

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 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-modeset_load="YES"

run nvidia-xconfig

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

Linux compat

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