Skip to content

Latest commit

 

History

History
66 lines (63 loc) · 2.76 KB

File metadata and controls

66 lines (63 loc) · 2.76 KB

1. NVIDIA Drivers

Although its possible to download NVIDIA drivers for freeBSD the easiest would be to install it from freshports with

pkg install -y nvidia-driver

Then setup NVIDIA. Note that these instructions are outdated.

1.1. Load the kernel module created by the driver at boot time.

This is done by adding below to vi /etc/rc.conf

kld_list="nvidia-modeset"

NEVER put nvidia_load="YES" in /boot/loader.conf

1.2. Enable the driver.

Create the /xorg.conf.d directory as follows

mkdir -p /usr/local/etc/X11/xorg.conf.d

then, add below into vi /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf

Section "Device"
        Identifier "NVIDIA Card"
        VendorName "NVIDIA Corporation"
        Driver "nvidia"
EndSection

2. Optional tools/utilities for NVIDIA

Although not required it is handy to install some NVIDIA tools.

2.1. Display Control Panel for X NVidia driver

pkg install -y nvidia-settings

2.2. Tool to manipulate X configuration files for the NVidia driver

pkg install -y nvidia-xconfig

Read these comments for discussions on installing NVIDIA drivers in FreeBSD.

3. Install Linux programs and libraries

Because x11/nvidia-driver port no longer installs Linux programs and libraries if you plan to use linuxulator you will want to install these libraries. But before installing these you must configure linux binary compatibility.

3.1. Load Linux kernel module

kldload linux
kldload linux64

You can use kldstat to verify. Load them before attempting to build/install (next step).

3.2. Install the NVIDIA linux programs

pkg install -y linux-nvidia-libs

3.2.1. Post-installation mounts linprocfs, linsysfs, tmpfs

Some programs require mounting linprocfs (in /compat/linux/proc), some others require mounting linsysfsf (in /compat/linux/sys), and others require tmpfs (in /compat/linux/dev/shm). Add below to vi /etc/fstab

linprocfs       /compat/linux/proc      linprocfs       rw      0       0
linsysfs        /compat/linux/sys       linsysfs        rw      0       0
tmpfs           /compat/linux/dev/shm   tmpfs           rw,mode=1777      0       0

Then to mount them one has to, say to mount tmpfs, mount /compat/linux/dev/shm.

3.3. Enable Linux compatibility

In vi /etc/rc.conf add

linux_enable="YES"