|
Size: 466
Comment:
|
Size: 2409
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 8: | Line 8: |
| = 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 9: | Line 20: |
| == Users == Add the users: |
|
| Line 10: | Line 24: |
| ``` | {{{ |
| Line 12: | Line 26: |
| ``` | }}} == Window manager == {{{ pkg install xorg xfce }}} |
| Line 15: | Line 34: |
| Updated the ports | === Updated the ports === |
| Line 17: | Line 36: |
| ``` | {{{ |
| Line 20: | Line 39: |
| ``` | }}} |
| Line 22: | 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 }}} |
|
| Line 23: | Line 63: |
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" EndSection }}} In ''/etc/rc.conf'': {{{ dbus_enable="YES" hald_enable="YES" }}} === Login manager === {{{ pkg install slim }}} In ''/etc/rc.conf'': {{{ slim_enable="YES" }}} == Linux compat == |
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"