The graphics driver is the program used to drive the graphics card, which is the software that the hardware corresponds to. The driver is a small piece of code that is added to the operating system, which contains information about the hardware device. With this information, the computer can communicate with the device. A driver is a configuration file that is written by the hardware vendor according to the operating system, and it can be said that there is no driver and the hardware in the computer does not work. Different operating systems, the hardware drivers are different. This section describes how to install the Nvidia graphics driver in Kali.
The specific steps to install the Nvidia graphics driver are as follows.
(1) Add open source nvidia driver Nouveau to blacklist. The method is as follows:
[email protected]:~# vi /etc/modprobe.d/blacklist.confblacklist nouveau
The above information indicates that a blacklist nouveau line has been added to the blacklist.conf file.
(2) View the current system information. The execution commands are as follows:
[email protected]:~# uname -aLinux kali 3.12-kali1-kali-amd64 #1 SMP Debian 3.12.6-2kali1 (2014-01-06) x86_64 GNU/Linux
From the output information you can see that the current system is installed Kali, its kernel version is 3.12, the system architecture is the x86_64 bit.
(3) Install the Linux header file. The execution commands are as follows:
[email protected]:~# aptitude -r install linux-headers-$(uname -r)下列“新”软件包将被安装。 linux-headers-3.12-kali1-686-pae linux-headers-3.12-kali1-common{a} linux-kbuild-3.12{a}下列软件包将被“删除”: firmware-mod-kit{u} libadns1{u} libcrypto++9{u} liblzma-dev{u} libsmi2-common{u} libwebkit-dev{u} msgpack-python{u} p7zip{u} python-adns{u} python-bs4{u} python-easygui{u} python-ipy{u} python-levenshtein{u} python-mechanize{u} python-metaconfig{u} python-paramiko{u} python-pycryptopp{u} python-pysnmp4{u} python-pysnmp4-apps{u} python-pysnmp4-mibs{u} sqlmap{u} unrar-free{u}0 个软件包被升级,新安装 3 个,22 个将被删除, 同时 206 个将不升级。需要获取 4,848 kB 的存档。解包后将释放 55.4 MB。您要继续吗?[Y/n] y
The output information above shows the current number of packages to be installed, the packages to be removed, and the packages to be upgraded. Enter Y at this point to continue the installation.
(4) Install the Nvidia kernel. The execution commands are as follows:
[email protected]:~# apt-get install nvidia-kernel-3.12-kali1-adm64
After you execute the above command, the installation process for installing the Nvidia-kernel package is displayed. You do not need to manually set any information at this time to complete the automatic installation.
(5) Install the NVIDIA driver nvidia-kernel-dkms package. The execution commands are as follows:
[email protected]:~# aptitude install nvidia-kernel-dkms下列“新”软件包将被安装。 dkms{a} glx-alternative-mesa{a} glx-alternative-nvidia{a} glx-diversions{a} libgl1-nvidia-glx{a} libvdpau1{a} linux-headers-3.12-kali1-686-pae{a} linux-headers-3.12-kali1-common{a} linux-headers-686-pae{a} linux-kbuild-3.12{a} nvidia-alternative{a} nvidia-driver{a} nvidia-installer-cleanup{a} nvidia-kernel-common{a} nvidia-kernel-dkms nvidia-vdpau-driver{a} xserver-xorg-video-nvidia{a}0 个软件包被升级,新安装 17 个,0 个将被删除, 同时 207 个将不升级。需要获取 29.4 MB 的存档。解包后将要使用 108 MB。您要继续吗?[Y/n] y
The output information above shows the size of the packages and packages that will be installed. Enter Y at this point to continue the installation. The interface shown in 2.1 appears during the installation process.
Figure 2.1 Configuring Xserver-xorg
This interface prompts you to configure Xserver-xorg-video-nvidia. Click the OK button in the interface and configure it manually later.
(6) Install the NVIDIA graphics card driver Application Nvidia-xconfig package. The execution commands are as follows:
[email protected]:~# aptitude install nvidia-xconfig
(7) Generate xorg service configuration file. The execution commands are as follows:
[email protected]:~# nvidia-xconfig
After executing the above command, the information shown below will be output.
WARNING: Unable to locate/open X configuration file.New X configuration file written to ‘/etc/X11/xorg.conf‘
The output information that indicates that the xorg.conf file was regenerated. Then, restart the system.
(8) Check that the NVIDIA graphics card driver is installed successfully. First check the GLX module and execute the command as follows:
[email protected]:~# glxinfo | grep -i "direct rendering"direct rendering: Yes
Check the NVIDIA driver module. The execution commands are as follows:
[email protected]:~# lsmod | grep nvidianvidia 9442880 29i2c_core 24129 2 i2c_i801,nvidia[email protected]:~# lsmod | grep nouveau
Determine whether the open source Nvidia driver Nouveau is blacklisted by looking at the contents of the following files, as follows:
[email protected]:~# cat /etc/modprobe.d/nvidia.confalias nvidia nvidia-currentremove nvidia-current rmmod nvidia[email protected]:~# cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf# You need to run "update-initramfs -u" after editing this file.# see #580894blacklist nouveau[email protected]:~# cat /etc/modprobe.d/nvidia-kernel-common.confalias char-major-195* nvidiaoptions nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_Device FileMode=0660# To enable FastWrites and Sidebus addressing, uncomment these lines# options nvidia NVreg_EnableAGPSBA=1# options nvidia NVreg_EnableAGPFW=1
Seeing the above output information indicates that Nouveau has been blacklisted.
In order to speed up the user to crack some big data files, it is necessary to install Cuda (Compute Unified Device Architecture). Cuda is a general-purpose parallel computing architecture introduced by Nvidia that enables GPUs to solve complex computational problems.
Installs the NVIDIA Cuda toolset and Nvidia OpenCL. The execution commands are as follows:
[email protected]:~# aptitude install nvidia-cuda-toolkit nvidia-opencl-icd
After executing the above command, if there is no error during the output, the package is successfully installed. After that, you can use Cuda to crack encrypted big data files.
Kali-linux Installing and configuring NVIDIA graphics drivers