Automatic build and install of the Nvidia kernel module/driver using Dynamic Kernel Module Support (DKMS).
Red Hat based systems ship with an nvidia-compatible graphics kernel module, and user space X11 driver) called nouveau. Keeping this default configuration is recommended because nouveau is supported by Red Hat and is provided with each new kernel update.
...
As of 2018-Dec, this process has only been tested on RHEL 6. I believe the process should be very similar on CentOS 7 (or RHEL 7), but I haven't tested it myself yet.
...
1. Find the nvidia graphics (video) model number.
...
$ cd /var/tmp
$ curl -sLO 'http://us.download.nvidia.com/XFree86/Linux-x86_64/410.78/NVIDIA-Linux-x86_64-410.78.run'
You can view the help info (optional) with this command (use -A to view "Advanced help options). But just view the help options, don't run the installer yet.
$ /bin/sh ./NVIDIA-Linux-x86_64-[version].run --help
$ /bin/sh ./NVIDIA-Linux-x86_64-[version].run -A
...
ksa@ksa-linux01 $ w
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
ksa tty1 :0 Tue07 27:54m 0.00s 0.04s pam: gdm-password
If no one is logged in at ":0", or you get the OK to stop the graphical X server, then switch to runlevel 3:
...
$ sudo /bin/sh ./NVIDIA-Linux-x86_64-[version].run --accept-license --dkms --run-nvidia-xconfig --no-questions
...
Code Block | ||
---|---|---|
| ||
cat /etc/kernel/postinst.d/notify #!/bin/sh cat <<EOF | mail -r unix-admin@slac.stanford.edu -s "$1 installed on `hostname`" ksa@slac.stanford.edu New kernel was installed on `hostname` at `date`. $1 $2 EOF |
...
Log file of automatic nvidia build:
...
Code Block | ||
---|---|---|
| ||
$ ls -l /var/lib/dkms/nvidia/410.78/2.6.32-754.10.1.el6.x86_64/x86_64 total 8 drwxr-xr-x 2 root bin 4096 Jan 17 02:22 log drwxr-xr-x 2 root bin 4096 Jan 17 02:22 module |
...
References:
...
DKMS
- See the dkms manual page, using the command: 'man dkms'
- https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support
- https://github.com/dell/dkms
...