Results 1 to 9 of 9

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

  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.

  2. #2
    thanks this worked and my card is showing up along with my other 8 cores.

    but now when i want to run the "service gdm3 start" command, it says "Failed!" so I cant get into the gui part anymore. How do i fix it??

  3. #3
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by theshadowbox11 View Post
    thanks this worked and my card is showing up along with my other 8 cores.

    but now when i want to run the "service gdm3 start" command, it says "Failed!" so I cant get into the gui part anymore. How do i fix it??
    try
    Code:
    service gdm3 restart
    if not work try this stop gdm3
    Code:
    service gdm3 stop
    delete xorg.conf
    Code:
    rm  /etc/X11/xorg.conf
    run nvidia xconfig
    Code:
    nvidia-xconfig
    and restrat gdm
    Code:
    service gdm3 restart
    go in nvidia settings if necessari and edit screen preference
    if you post your (new generated xorg.conf and your characteristics of the graphics card I can write the xorg.conf file customized to your pc)
    Last edited by Devil_D; 2013-10-01 at 11:53.

  4. #4
    Join Date
    2013-Sep
    Posts
    2
    how to fix this error ? :
    " You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server "

  5. #5
    Join Date
    2013-Jun
    Posts
    13
    I have a similar issue. In the nvidia settings I do not appear to be using the nvidia driver, just run nvidia-xconfig as root and reboot. The problem is every time I try I end up having to delete my /etc/X11/xorg.conf to get my gui back.
    When I run lsmod | grep nvidia I get this :root@kali:~# lsmod | grep nvidia
    nvidia 9384498 12
    i2c_core 24042 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvid ia,videodev

    Pyrit and Cuda are working!!. But I still cannot successfully start my gui with a working xorg.conf file Any suggestions?

  6. #6
    Join Date
    2013-Jun
    Posts
    13

    Lightbulb Pyrit and Cuda working, Help with xorg.conf

    I have a similar issue. In the nvidia settings I do not appear to be using the nvidia driver, just run nvidia-xconfig as root and reboot. The problem is every time I try I end up having to delete my /etc/X11/xorg.conf to get my gui back.
    When I run lsmod | grep nvidia I get this :root@kali:~# lsmod | grep nvidia
    nvidia 9384498 12
    i2c_core 24042 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvid ia,videodev

    Pyrit and Cuda are working!!. But I still cannot successfully start my gui with a working xorg.conf file Any suggestions?

  7. #7
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by Castor_Troy View Post
    I have a similar issue. In the nvidia settings I do not appear to be using the nvidia driver, just run nvidia-xconfig as root and reboot. The problem is every time I try I end up having to delete my /etc/X11/xorg.conf to get my gui back.
    When I run lsmod | grep nvidia I get this :root@kali:~# lsmod | grep nvidia
    nvidia 9384498 12
    i2c_core 24042 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvid ia,videodev

    Pyrit and Cuda are working!!. But I still cannot successfully start my gui with a working xorg.conf file Any suggestions?

    try to download and install the latest beta nvidia drivers.
    But if you tell me what video card you can help more then I wanted to ask you also have an integrated video card in your PC?

  8. #8
    Join Date
    2013-Jun
    Posts
    13
    I'm using a dell xps l702x with intel/nvidia gt555m. Something went wrong with my last install I posted about. Funny thing is that was gnome desktop. I just re installed kde version and same thing happened. I do not have an xorg.conf file. Pyrit is working and I successfully built all cuda samples. The only reason I would need an xorg.conf would be for me to use compiz.(cool but not necessary)

  9. #9
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by Castor_Troy View Post
    I'm using a dell xps l702x with intel/nvidia gt555m. Something went wrong with my last install I posted about. Funny thing is that was gnome desktop. I just re installed kde version and same thing happened. I do not have an xorg.conf file. Pyrit is working and I successfully built all cuda samples. The only reason I would need an xorg.conf would be for me to use compiz.(cool but not necessary)

    I think your problem is given by the default video driver in the package cuda. If I'm not mistaken your video card should belong to the optimus (and it seems to me that there is some incompatibility issue) try to download and install the latest updated video driver, cuda package will continue to operate do not worry, and try to give xorg-conf otherwise you should try installing bamblebee (try the latest drivers if you have problems please contact me and I see to help you find a solution)

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
  •