- Kali Linux Cookbook
- Willie L. Pritchett David De Smet
- 303字
- 2021-07-23 16:08:07
Installing and configuring nVidia video card drivers
In this recipe, we will embrace Compute Unified Device Architecture (CUDA), the nVidia parallel computing architecture. The first step will be the installation of the nVidia developer display driver followed by the installation of the CUDA toolkit. This will give us dramatic increases in computer performance with the power of the GPU which will be used in scenarios like password cracking.
Note
For more information about CUDA, please visit their website at http://www.nvidia.com/object/cuda_home_new.html.
Getting ready
An Internet connection is required to complete this recipe.
The preparation of kernel headers is needed before starting this task, which is explained in the Preparing kernel headers recipe at the beginning of this chapter.
In order to accomplish the installation of the nVidia driver, the X session needs to be shut down.
How to do it...
Let's begin the process of installing and configuring the nVidia video card drivers:
- Download the nVidia developer display driver according to your CPU architecture:
cd /tmp/ wget http://developer.download.nvidia.com/compute/cuda/4_1/rel/drivers/NVIDIA-Linux-x86_64-285.05.33.run
- Install the driver:
chmod +x NVIDIA-Linux-x86_64-285.05.33.run ./NVIDIA-Linux-x86_64-285.05.33.run –kernel-source-path='/usr/src/linux'
- Download the CUDA toolkit:
wget http://developer.download.nvidia.com/compute/cuda/4_1/rel/toolkit/cudatoolkit_4.1.28_linux_64_ubuntu11.04.run
- Install the CUDA toolkit to
/opt:
chmod +x cudatoolkit_4.1.28_linux_64_ubuntu11.04.run ./cudatoolkit_4.1.28_linux_64_ubuntu11.04.runConfigure the environment variables required for nvcc to work: echo PATH=$PATH:/opt/cuda/bin >> ~/.bashrc echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib >> ~/.bashrc echo export PATH >> ~/.bashrc echo export LD_LIBRARY_PATH >> ~/.bashrc
- Run the following command to make the variables take effect:
source ~/.bashrc ldconfig
- Install pyrit dependencies:
apt-get install libssl-dev python-dev python-scapy
- Download and install the GPU powered tool, pyrit:
svn co http://pyrit.googlecode.com/svn/trunk/ pyrit_src cd pyrit_src/pyrit python setup.py build python setup.py install
- Finally, add the nVidia GPU module to pyrit:
cd /tmp/pyrit_src/cpyrit_cuda python setup.py build python setup.py install
Note
To verify if nvcc is installed correctly, we issue the following command:
nvcc –V
To perform a benchmark, we simply type the following command:
pyrit benchmark
- Java編程全能詞典
- Deep Learning Quick Reference
- Photoshop CS4經(jīng)典380例
- VMware Performance and Capacity Management(Second Edition)
- Hands-On Cybersecurity with Blockchain
- 大數(shù)據(jù)處理平臺(tái)
- 大數(shù)據(jù)平臺(tái)異常檢測分析系統(tǒng)的若干關(guān)鍵技術(shù)研究
- 人工智能趣味入門:光環(huán)板程序設(shè)計(jì)
- 工業(yè)機(jī)器人運(yùn)動(dòng)仿真編程實(shí)踐:基于Android和OpenGL
- 網(wǎng)站入侵與腳本攻防修煉
- 網(wǎng)絡(luò)服務(wù)搭建、配置與管理大全(Linux版)
- Pentaho Analytics for MongoDB
- Windows安全指南
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)訓(xùn)(職業(yè)模塊)
- 納米集成電路制造工藝(第2版)