Results 1 to 9 of 9

Thread: how to install the driver cuda 5.5 whit dependencies and pyrit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65

    how to install the driver cuda 5.5 whit dependencies and pyrit

    Hello! After many attempts I found a way to install the drivers Cuda 5.5 with all dependencies and pyrit + cpyrit I hope to be of help to all those who have had the same problem
    Here is my solution:
    step 1. Install Kali linux Kernel headers
    Code:
    aptitude update && aptitude install -y linux-headers-$(uname -r)
    step 2. Install Cuda dependencies
    Code:
    aptitude install libpcap-dev python2.7-dev libcr-dev mpich2 mpich2-doc libglu1-mesa-dev libglu1-mesa libglui-dev libxmu-dev libxi-dev build-essential binutils gcc-4.6 g++-4.6 freeglut3-dev libx11-dev libgl1-mesa-glx
    step 3. Download last Nvidia Cuda driver whit official site here
    https://developer.nvidia.com/cuda-downloads
    I preferred to download drivers for Ubuntu 10.04 32bit(i have kali 32 bit)
    step.4 Give permissions to the script running nvidia (valid command if discharged in the root directory)
    Code:
    chmod 755 cuda_5.5.22_linux_32.run
    step 5. Blacklist Nouveau Driver update grub and reboot system
    Code:
    sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
    Code:
    update-grub
    Code:
    reboot
    step 5 edit file xorg.conf (it is for nvidia geforce gt 630)
    open leafpad and copy and paste this,where necessary re-edit according to your screen, or graphics card
    Code:
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
    EndSection
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
    
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "yes"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
    
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection
    
    Section "Monitor"
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "CRT-1"
        HorizSync       30.0 - 80.0 #if you need to change the parameters for your main domain display
        VertRefresh     55.0 - 75.0 #if you need to change the parameters for your main domain display
        Option         "DPMS"
    EndSection
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GT 630" #if you need to change the parameters for your card
    EndSection
    
    Section "Module"
        Load           "glx"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    save the file in the root folder with name calling xorg.conf
    step 6 Install cuda
    first stop gdm
    Code:
    service gdm3 stop
    second press ctrl+alt+f1 on keyboard and re-login in the system
    third run nvidia script
    Code:
    sh cuda_5.5.22_linux_32.run
    accept the eula accept the installation etc and install in the default folder
    fourth at the end of the installation copy the file xorg.conf first edited in the folder etc/X11 /
    Code:
    cp xorg.conf /etc/X11/
    reboot system
    Code:
    reboot
    step 7 setting cuda for install pyrit
    create symbolic links in for the correct installation of pyrit
    first create symbolic link cuda folders in /opt
    ln -s /usr/local/cuda /opt
    second create symbolic link to nvcc /usr/bin
    Code:
    ln -s /usr/local/cuda-5.5/bin/nvcc  /usr/bin/
    try if it works nvcc
    Code:
    nvcc -V
    step 8 download pyrit and cpyrit
    Code:
    wget http://pyrit.googlecode.com/files/pyrit-0.4.0.tar.gz
    Code:
    wget http://pyrit.googlecode.com/files/cpyrit-cuda-0.4.0.tar.gz
    step9 extract, and install pyrit and cpirit-cuda
    Code:
    tar -xvzf pyrit-0.4.0.tar.gz
    Code:
    tar -xvzf cpyrit-cuda-0.4.0.tar.gz
    Code:
    cd /root/cpyrit-cuda-0.4.0
    Code:
    python setup.py build
    Code:
    python setup.py install
    Code:
    cd /root/pyrit-0.4.0
    Code:
    python setup.py build
    Code:
    python setup.py install
    try if it works pyrit
    Code:
    pyrit list_cores
    enjoy
    free and open is good
    P.S. this is my configuration and works well are the features of my pc processor intel pentium 4 3.5 ghz 8gb ram nvidia geforce gt 630 video card (msi) I hope my guida can be of help sorry for the English I translated it on google
    Last edited by Devil_D; 2013-10-09 at 15:14.

Similar Threads

  1. Install Nvidia Cuda and Pyrit
    By silverwrath in forum How-To Archive
    Replies: 18
    Last Post: 2017-01-12, 22:45
  2. Help me to install nvidia cuda and pyrit and oclhashcat
    By su6z3r0 in forum General Archive
    Replies: 1
    Last Post: 2016-06-29, 21:54
  3. Nvidia Driver, Cuda Pyrit
    By wojtask12 in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2013-10-18, 15:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •