In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "kali linux how to install NVIDA graphics card driver", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "kali linux how to install NVIDA graphics card driver" this article.
1. Install the Linux kernel header
My kali Linux version is 2018.1, and different versions have different kernel headers. To install kernel headers according to the actual version of your installation, you can use uname-a to see what your kernel version is. The installation commands are as follows:
``C++
Apt install linux-headers-4.14.0-kali3-amd64 linux-headers-4.14.0-kali3-common linux-headers-4.14.0-kali3-all
# # 2. Disable the open source video card driver nouveau
The disabled commands are as follows:
``C++
Root@chaojun:~$ echo-e "blacklist nouveau\ noptions nouveau modeset=0\ nalias nouveau off" > / etc/modprobe.d/blacklist-nouveau.conf
Root@chaojun:~$ update-initramfs-u & & reboot
After the above operation, the open source graphics card driver is disabled, to be on the safe side, it is important to make sure that the following disable is successful. You can view it using the following command:
``C++
Root@chaojun:~$ lsmod | grep-I nouveau
If there is no output from executing the above command, it proves that the open source video card driver nouveau has been successfully disabled.
# # 3. Download the official NVIDA driver
Go to the official website of NVIDA to download the driver http://www.nvidia.com/Download/index.aspx?lang=en-us of the corresponding model. Note that you have to choose the version corresponding to the hardware model of your graphics card, otherwise it will fail.
Click SEARCH and you can see the DOWNLOAD button. Click download.
# # 4. Installation
After downloading the video card driver file of NVIDA, use the chmod aquix NVIDIA-Linux-x86_64-384.98.run command to give the driver executable permission. Then use the. / NVIDIA-Linux-x86_64-384.98.run command to install. During installation, you will be prompted with a warning and select yes for all.
# # 5. Configuration
The most important part comes after installation, and you must configure it to let kali Linux know which graphics card driver you are using, otherwise the boot will fail. Execute nvidia-xconfig-- query-gpu-info | grep 'BusID:' | cut-d''- f6 to view the BusID. My display is as follows: PCI:1:0:0. This information is used to configure the following files. The configuration steps are as follows:
# 5.1. / etc/X11/xorg.confvi / etc/X11/xorg.conf enter the following information: ````c++Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSectionSection "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" EndSectionSection "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" EndSectionSection Device "Identifier" intel "Driver" modesetting "EndSectionSection" Screen Identifier "intel" Device "Device" Device
5.2. / usr/share/gdm/greeter/autostart/optimus.desktop and / etc/xdg/autostart/optimus.desktop
Enter the following information for vi / usr/share/gdm/greeter/autostart/optimus.desktop:
``C++
[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh-c "xrandr-- setprovideroutputsource modesetting NVIDIA-0; xrandr-- auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer
Enter the following information for vi / etc/xdg/autostart/optimus.desktop:
``C++
[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh-c "xrandr-- setprovideroutputsource modesetting NVIDIA-0; xrandr-- auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer
6. Restart
The above is all the contents of the article "how to install NVIDA graphics card driver in kali linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.