How to install NVIDIA Drivers downloaded from official site.
I decided to write this tutorial because I did not find any documentation to install the Nvidia driver downloaded directly from the site. NVIDIA's instructions about this are not enough. The reason for this is that the official driver is more updated.
Download the nvidia driver:
Download your current kernel source:
Login with root user and execute this to decompress kernel source on the right place:
Decompress and install nvidia driver:
In theory the installation script Nvidia make all configuration, but in my case, I use UEFI, so I had problems with nvidia modules load drivers at boot. If this is your case, before restart follow the steps below:
Install Nano, like root (It's more easy to use):
Open the file /boot/loader.conf
Comment (recommend) or delete all entry from Nvidia to disable them:
Save with CTRL + O and exit with CTRL + X.
Now open the file /etc/rc.conf
And add these lines:
Save with CTRL + O and exit with CTRL + X.
I'm not sure if this file works by the order of entries, as I am new to FreeBSD, then I recommend that you put these entries before the lines that carry the GDM and Gnome, or any other X Manager installed. Correct me if I'm wrong.
At last, execute the command below to generate the file /etc/X11/xorg.conf with Nvidia config:
Reboot the system and be happy.
Sorry about my bad English.
I decided to write this tutorial because I did not find any documentation to install the Nvidia driver downloaded directly from the site. NVIDIA's instructions about this are not enough. The reason for this is that the official driver is more updated.
Download the nvidia driver:
Code:
$ cd ~/Downloads
$ fetch http://us.download.nvidia.com/XFree86/FreeBSD-x86_64/361.28/NVIDIA-FreeBSD-x86_64-361.28.tar.gz
Code:
$ cd ~/Downloads
$ fetch ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r`/src.txz
Code:
# tar -C / -xzvf src.txz
Code:
# tar -vxzf NVIDIA-FreeBSD-x86_64-361.28.tar.gz
# cd NVIDIA-FreeBSD-x86_64-361.28
# make install
Install Nano, like root (It's more easy to use):
Code:
# pkg install nano
Code:
# nano /boot/loader.conf
Code:
#nvidia_load="YES"
#nvidia_name="nvidia"
#nvidia_modeset_load="YES
#nvidia_modeset_name="nvidia-modeset"
Now open the file /etc/rc.conf
Code:
# nano /etc/rc.conf
Code:
### Nvidia Boot Settings ###
kld_list="nvidia nvidia-modeset"
nvidia_name="nvidia"
nvidia_modeset_name="nvidia-modeset"
I'm not sure if this file works by the order of entries, as I am new to FreeBSD, then I recommend that you put these entries before the lines that carry the GDM and Gnome, or any other X Manager installed. Correct me if I'm wrong.
At last, execute the command below to generate the file /etc/X11/xorg.conf with Nvidia config:
Code:
# nvidia-xconfig
Sorry about my bad English.