new-install

Notes on OS intalls
git clone https://git.bracken.jp/new-install.git
Log | Files | Refs | LICENSE

commit af560678e7c06b997a3dc060db22a160d2d62e85
parent bf42fa9ec1a347d4802980fea760bb5c6662fc1b
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 22 Apr 2020 02:49:26 -0700

FreeBSD: add NVIDIA driver installation

Cover how to install and configure NVIDIA drivers for X11.

Diffstat:
Mfreebsd_install.md | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)

diff --git a/freebsd_install.md b/freebsd_install.md @@ -257,6 +257,36 @@ forward root's mail to a local user. To do so: sudo service sshd restart ``` +### NVIDIA drivers + +For systems with an NVIDIA card, we'll install the drivers, configure them to +load at boot, and add X11 config. + +First install the drivers: + + sudo pkg install nvidia-driver + +Next add the following line to `/boot/loader.conf`: + + nvidia_load="YES" + +Then add the following line to `/etc/rc.conf`: + + kld_list="nvidia-modeset" + +Next, create the file `/usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf` with +the following contents: + + Section "Device" + Identifier "NVIDIA Card" + VendorName "NVIDIA Corporation" + Driver "nvidia" + EndSection + +Finally, reboot the system or run `kldload nvidia-modeset` to manually load the +driver. + + ### Configure XWindows To install XWindows with the i3 window manager and compton compositor: