Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Install Nvidia Cuda and Pyrit

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    1

    Install Nvidia Cuda and Pyrit

    Hey all!

    I am a newb, and after hours (and hours) of searching for answers to this online, and not finding a real solution I decided to create a how-to of the steps I took to get Cuda and Pyrit working on my machines.

    To start off I have 2 machines:

    Phenom II 980 BE / GTX 570
    FX-8150 / GTX 680

    I have tested this on both machines.

    Second, the starting point to these instructions is a clean install of 1.0.4 i386 (It should work the same with x64, but since the 32-bit version has PAE, I didn't feel the need to run a 64-bit OS)




    What you will need:

    Nvidia Cuda Toolkit https://developer.nvidia.com/cuda-toolkit
    I used the Version 5.5 Self Extracting Installer for 32-Bit OS.

    pyrit http://pyrit.googlecode.com
    cpyrit http://pyrit.googlecode.com






    Let's get started!

    First thing we need to do is to make sure the kernel headers are installed

    Code:
    apt-get upate && apt-get install -y linux-headers-$(uname -r)
    Then we need to disable the builtin linux drivers, save the changes to grub and reboot to unload them.

    Code:
    sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
    update-grub
    reboot
    Once the computer reboots. DO NOT log back into the GDM. Instead press CTRL + ALT + F1 and log into the command prompt.

    In order to install the Nvidia drivers, you need to shut down the gdm service by typing this

    Code:
    service gdm3 stop
    Now we are ready to install the nVidia driver and Cuda Toolset.




    CD to the directory that you downloaded the Nvidia drivers to and type the following commands. (this is for the version that I downloaded. If you have a different version, put the correct file name in for yours)

    Code:
    chmod 755 cuda-5.5.11-linux_32.run
    ./cuda-5.5.11-linux_32.run
    At this point scroll through the EULA (space to move a page at a time, enter for a line at a time) and accept the agreement.

    You will get a warning that this is not a supported version of Linux, do you want to continue. Type Y and press enter.

    I took the defaults for the rest of the options.

    Hopefully at this point you should (after a couple minutes) get a message saying that the install was successful. Yay!

    Go ahead and type

    Code:
     
    reboot
    Once your computer comes back up, you will probably see a blank black screen with a cursor flashing in the top left corner. Don't worry, it's not a bad thing, and nothing is gone.

    Simply press CTRL + ALT + F1 and login.

    Type the following

    Code:
    nvidia-xconfig
    reboot
    You should now be able to log in using the gdm GUI.




    The hard part is done!

    A few more minutes and you will be up and running with pyrit using your GPU's.!


    Open a terminal shell and cd to the directory that you downloaded the pyrit files to.

    Type the following to extract them. Remember to change the file name if you have a different version.

    Code:
    tar -xvzf pyrit-0.4.0.tar.gz
    tar -xvzf cpyrit-cuda-0.4.0.tar.gz
    For the sake of brevity I will just type all of the next steps into a single code box. But just understand that I am adding a couple packages that are necessary to compile / run. Then installing pyrit and cpyrit. These are the commands I used, and the files were in my /root/ directory.

    Code:
    apt-get install python2.7-dev python2.7-libpcap libpcap-dev
    
    cd /pyrit-0.4.0/
    python setup.py build
    python setup.py install
    
    cd
    
    cd /cpyrit-cuda-0.4.0/
    python setup.py build
    python setup.py install
    
    pyrit list_cores
    If all went well, you should have a list of available processors, including your GPU(s)!!

    bench_result.jpg

  2. #2
    Junior Member
    Join Date
    Mar 2013
    Posts
    12
    nice work man...

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    12

    still stuck..

    i still get the blank screen, blinking underscore top left of screen after installing Nvidia driver/cuda tools - yes ive done the nvidia-xconfig command.

    Every god damn time!
    ive tried alot of different methods, mostly they all look the same.
    i've also tried this http://forums.kali.org/showthread.php?18178

    Ive tried the install on my laptop nvidia 610m and desktop GTX570

    Any ideas?

  4. #4
    Junior Member
    Join Date
    May 2013
    Posts
    12
    No drivers detected - Story of my life now..


    [ 20.857]
    X.Org X Server 1.12.4
    Release Date: 2012-08-27
    [ 20.857] X Protocol Version 11, Revision 0
    [ 20.857] Build Operating System: Linux 2.6.32-5-686-bigmem i686 Debian
    [ 20.857] Current Operating System: Linux kali 3.7-trunk-686-pae #1 SMP Debian 3.7.2-0+kali8 i686
    [ 20.857] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.7-trunk-686-pae root=UUID=25da3bd9-2c83-4744-8a45-ecd5f53f2978 ro nomodeset
    [ 20.857] Build Date: 17 April 2013 11:13:16AM
    [ 20.857] xorg-server 2:1.12.4-6 (Julien Cristau <jcristau@debian.org>)
    [ 20.857] Current version of pixman: 0.26.0
    [ 20.857] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 20.857] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 20.857] (==) Log file: "/var/log/Xorg.5.log", Time: Sat Aug 3 21:54:50 2013
    [ 20.857] (==) Using config file: "/etc/X11/xorg.conf"
    [ 20.858] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [ 20.858] (==) ServerLayout "Layout0"
    [ 20.858] (**) |-->Screen "Screen0" (0)
    [ 20.858] (**) | |-->Monitor "Monitor0"
    [ 20.858] (**) | |-->Device "Device0"
    [ 20.858] (**) |-->Input Device "Keyboard0"
    [ 20.858] (**) |-->Input Device "Mouse0"
    [ 20.858] (==) Automatically adding devices
    [ 20.858] (==) Automatically enabling devices
    [ 20.858] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [ 20.858] Entry deleted from font path.
    [ 20.859] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
    [ 20.859] Entry deleted from font path.
    [ 20.859] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
    [ 20.859] Entry deleted from font path.
    [ 20.859] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
    [ 20.859] Entry deleted from font path.
    [ 20.859] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
    [ 20.859] Entry deleted from font path.
    [ 20.859] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
    [ 20.859] Entry deleted from font path.
    [ 20.859] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
    [ 20.859] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 20.859] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 20.859] (WW) Disabling Keyboard0
    [ 20.859] (WW) Disabling Mouse0
    [ 20.859] (II) Loader magic: 0xb778c5a0
    [ 20.859] (II) Module ABI versions:
    [ 20.859] X.Org ANSI C Emulation: 0.4
    [ 20.859] X.Org Video Driver: 12.1
    [ 20.859] X.Org XInput driver : 16.0
    [ 20.859] X.Org Server Extension : 6.0
    [ 20.860] (--) PCI:*(0:0:2:0) 8086:0166:1043:1457 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
    [ 20.860] (--) PCI: (0:1:0:0) 10de:1058:1043:1457 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/134217728, 0xe8000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
    [ 20.860] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 20.860] (II) LoadModule: "extmod"
    [ 20.861] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 20.861] (II) Module extmod: vendor="X.Org Foundation"
    [ 20.861] compiled for 1.12.4, module version = 1.0.0
    [ 20.861] Module class: X.Org Server Extension
    [ 20.861] ABI class: X.Org Server Extension, version 6.0
    [ 20.861] (II) Loading extension SELinux
    [ 20.861] (II) Loading extension MIT-SCREEN-SAVER
    [ 20.861] (II) Loading extension XFree86-VidModeExtension
    [ 20.861] (II) Loading extension XFree86-DGA
    [ 20.861] (II) Loading extension DPMS
    [ 20.861] (II) Loading extension XVideo
    [ 20.861] (II) Loading extension XVideo-MotionCompensation
    [ 20.861] (II) Loading extension X-Resource
    [ 20.861] (II) LoadModule: "dbe"
    [ 20.862] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 20.862] (II) Module dbe: vendor="X.Org Foundation"
    [ 20.862] compiled for 1.12.4, module version = 1.0.0
    [ 20.862] Module class: X.Org Server Extension
    [ 20.862] ABI class: X.Org Server Extension, version 6.0
    [ 20.862] (II) Loading extension DOUBLE-BUFFER
    [ 20.862] (II) LoadModule: "glx"
    [ 20.862] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 20.875] (II) Module glx: vendor="NVIDIA Corporation"
    [ 20.875] compiled for 4.0.2, module version = 1.0.0
    [ 20.875] Module class: X.Org Server Extension
    [ 20.875] (II) NVIDIA GLX Module 319.37 Wed Jul 3 18:40:15 PDT 2013
    [ 20.875] (II) Loading extension GLX
    [ 20.875] (II) LoadModule: "record"
    [ 20.875] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 20.875] (II) Module record: vendor="X.Org Foundation"
    [ 20.875] compiled for 1.12.4, module version = 1.13.0
    [ 20.875] Module class: X.Org Server Extension
    [ 20.875] ABI class: X.Org Server Extension, version 6.0
    [ 20.875] (II) Loading extension RECORD
    [ 20.875] (II) LoadModule: "dri"
    [ 20.875] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 20.875] (II) Module dri: vendor="X.Org Foundation"
    [ 20.875] compiled for 1.12.4, module version = 1.0.0
    [ 20.875] ABI class: X.Org Server Extension, version 6.0
    [ 20.875] (II) Loading extension XFree86-DRI
    [ 20.875] (II) LoadModule: "dri2"
    [ 20.875] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 20.876] (II) Module dri2: vendor="X.Org Foundation"
    [ 20.876] compiled for 1.12.4, module version = 1.2.0
    [ 20.876] ABI class: X.Org Server Extension, version 6.0
    [ 20.876] (II) Loading extension DRI2
    [ 20.876] (II) LoadModule: "nvidia"
    [ 20.876] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 20.876] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 20.876] compiled for 4.0.2, module version = 1.0.0
    [ 20.876] Module class: X.Org Video Driver
    [ 20.876] (II) NVIDIA dlloader X Driver 319.37 Wed Jul 3 18:18:35 PDT 2013
    [ 20.876] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 20.876] (++) using VT number 7

    [ 20.879] (EE) No devices detected.
    [ 20.879]
    Fatal server error:
    [ 20.879] no screens found
    [ 20.879]
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 20.879] Please also check the log file at "/var/log/Xorg.5.log" for additional information.
    [ 20.879]

  5. #5
    Junior Member
    Join Date
    Aug 2013
    Posts
    6
    Try this code:
    rm /etc/X11/xorg.conf
    reboot

  6. #6
    Junior Member
    Join Date
    May 2013
    Posts
    12
    Quote Originally Posted by kali75 View Post
    Try this code:
    rm /etc/X11/xorg.conf
    reboot

    lol, i dont care about removing the startup conf; it doesnt answer/help my question.

  7. #7
    Junior Member
    Join Date
    Aug 2013
    Posts
    6
    I solved in this way.
    After installing correctly cuda toolkit 5.5 I see black screen but CTRL + ALT + F1 and login. Then:
    rm /etc/X11/xorg.conf
    nano ~/.bashrc
    change the PATH= and add these lines to the end (after the last fi) so it looks like this:

    PATH=$PATH:/usr/local/cuda-5.5/bin
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.5/lib
    export PATH
    export LD_LIBRARY_PATH

    exit nano and save changes.

    source /root/.bashrc
    ldconfig
    reboot

    Now you can continue the second part of silverwrath's guide."The hard part is done!"............good lucky

  8. #8
    Junior Member
    Join Date
    Mar 2013
    Posts
    26
    Quote Originally Posted by Philly View Post
    i still get the blank screen, blinking underscore top left of screen after installing Nvidia driver/cuda tools - yes ive done the nvidia-xconfig command.

    Every god damn time!
    ive tried alot of different methods, mostly they all look the same.
    i've also tried this http://forums.kali.org/showthread.php?18178

    Ive tried the install on my laptop nvidia 610m and desktop GTX570

    Any ideas?
    IMO never, but never you should issue the nvidia-xconfig command once the nvidia drivers have been installed. This will mess up you xconfig and boom, your gui just vanished.

    I've ran into the same nvidia cuda and pyrit situation having a dell latitude 6430 with nvidia quadro nvs 5200 but after weeks of searching and trying I've successfully managed to have them installed and working following this:

    http://pentestconsultancy.blogspot.c...a-cuda-55.html

  9. #9
    Junior Member
    Join Date
    May 2013
    Posts
    12
    Quote Originally Posted by Amidamaru View Post
    IMO never, but never you should issue the nvidia-xconfig command once the nvidia drivers have been installed. This will mess up you xconfig and boom, your gui just vanished.

    I've ran into the same nvidia cuda and pyrit situation having a dell latitude 6430 with nvidia quadro nvs 5200 but after weeks of searching and trying I've successfully managed to have them installed and working following this:

    http://pentestconsultancy.blogspot.c...a-cuda-55.html
    So if i dont use the nvidia-xconfig command, how does my video card get selected at boot?

    The blog is good, but it has nothing i havn't seen before to help me, sorry.

  10. #10
    Junior Member
    Join Date
    Aug 2013
    Posts
    1

    Talking Ed

    Quote Originally Posted by Philly View Post
    So if i dont use the nvidia-xconfig command, how does my video card get selected at boot?

    The blog is good, but it has nothing i havn't seen before to help me, sorry.





    I have tried at least 5 diferent methods on this, but this post finally worked for me. I have an NVIDIA GeForce 610M (a hybrid card) on an asus.. Follow this exactly and i hope it works for you;
    http://www.hackdig.com/?07/hack-4577.htm

Posting Permissions

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