Results 1 to 2 of 2

Thread: Nvidia Driver, Cuda Pyrit

  1. #1
    Join Date
    2013-Oct
    Posts
    1

    Nvidia Driver, Cuda Pyrit

    Hi, i'm kind of newbie in Linux, i've been trying to solve my problem for 3 days for now, like 12h/per day, so finally i decided to ask more experieced Kali users

    I know there are lots of topics like mine in web, but i think I've already tried every "solution".

    I own lenovo with i5 and gtx660m. When i tried to install drivers this way: http://docs.kali.org/general-use/ins...-on-kali-linux after rebooting it gave me black screen with prompt line and acces only tty. I reinstalled Kali and tried this one:

    apt-get update

    apt-get install nvidia-detect nvidia-libopencl1 nvidia-opencl-common nvidia-support nvidia-opencl-icd nvidia-visual-profiler nvidia-glx nvidia-installer-cleanup nvidia-kernel-common nvidia-smi nvidia-alternative nvidia-opencl-dev libglx-nvidia-alternatives nvidia-kernel-dkms nvidia-cuda-toolkit nvidia-vdpau-driver nvidia-xconfig glx-alternative-nvidia libgl1-nvidia-alternatives nvidia-settings libgl1-nvidia-glx xserver-xorg-video-nvidia libcublas4 libcudart4 libcufft4 libnpp4 libnvidia-compiler libcuda1 libcuinj4 libnvidia-ml1 libxvmcnvidia1 libcusparse4 libcurand4 python-pycuda-doc python-pycuda-headers python-pycuda nvidia-cuda-doc nvidia-cuda-gdb

    PATH=$PATH:/usr/lib/nvidia-cuda-toolkit/bin.
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-cuda-toolkit/lib:/lib
    export PATH
    export LD_LIBRARY_PATH

    reboot

    atp-get install libpcap-dev python2.7-dev

    tar -xzvf pyrit-0.4.0.tar.gz
    cd pyrit-0.4.0
    python setup.py build
    python setup.py install

    tar -xzvf cpyrit-cuda-0.4.0.tar.gz
    cd cpyrit-cuda-0.4.0

    Here we need edit the setup.py,line 35,edit it from
    for path in ('/usr/local/cuda', '/opt/cuda'):

    to
    for path in ('/usr/local/cuda','/usr/lib/nvidia-cuda-toolkit','/opt/cuda'):

    So the nvcc could be found during the process,then install
    python setup.py build
    python setup.py install

    After that ,We can try it
    pyrit list_cores

    Well, everything went "well", no errors, but pyrit list_cores throws just CPU's.
    When entering Nvidia X serv. settings, it says I need to create xorg, and that makes black screen with command prompt, again.
    What am I doing wrong?
    Thanks for any help :-)

  2. #2
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by wojtask12 View Post
    Hi, i'm kind of newbie in Linux, i've been trying to solve my problem for 3 days for now, like 12h/per day, so finally i decided to ask more experieced Kali users

    I know there are lots of topics like mine in web, but i think I've already tried every "solution".

    I own lenovo with i5 and gtx660m. When i tried to install drivers this way: http://docs.kali.org/general-use/ins...-on-kali-linux after rebooting it gave me black screen with prompt line and acces only tty. I reinstalled Kali and tried this one:

    apt-get update

    apt-get install nvidia-detect nvidia-libopencl1 nvidia-opencl-common nvidia-support nvidia-opencl-icd nvidia-visual-profiler nvidia-glx nvidia-installer-cleanup nvidia-kernel-common nvidia-smi nvidia-alternative nvidia-opencl-dev libglx-nvidia-alternatives nvidia-kernel-dkms nvidia-cuda-toolkit nvidia-vdpau-driver nvidia-xconfig glx-alternative-nvidia libgl1-nvidia-alternatives nvidia-settings libgl1-nvidia-glx xserver-xorg-video-nvidia libcublas4 libcudart4 libcufft4 libnpp4 libnvidia-compiler libcuda1 libcuinj4 libnvidia-ml1 libxvmcnvidia1 libcusparse4 libcurand4 python-pycuda-doc python-pycuda-headers python-pycuda nvidia-cuda-doc nvidia-cuda-gdb

    PATH=$PATH:/usr/lib/nvidia-cuda-toolkit/bin.
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-cuda-toolkit/lib:/lib
    export PATH
    export LD_LIBRARY_PATH

    reboot

    atp-get install libpcap-dev python2.7-dev

    tar -xzvf pyrit-0.4.0.tar.gz
    cd pyrit-0.4.0
    python setup.py build
    python setup.py install

    tar -xzvf cpyrit-cuda-0.4.0.tar.gz
    cd cpyrit-cuda-0.4.0

    Here we need edit the setup.py,line 35,edit it from
    for path in ('/usr/local/cuda', '/opt/cuda'):

    to
    for path in ('/usr/local/cuda','/usr/lib/nvidia-cuda-toolkit','/opt/cuda'):

    So the nvcc could be found during the process,then install
    python setup.py build
    python setup.py install

    After that ,We can try it
    pyrit list_cores

    Well, everything went "well", no errors, but pyrit list_cores throws just CPU's.
    When entering Nvidia X serv. settings, it says I need to create xorg, and that makes black screen with command prompt, again.
    What am I doing wrong?
    Thanks for any help :-)
    remove all and try this guide
    https://forums.kali.org/showthread.p...cies-and-pyrit
    if you have problem and for any help
    contact me
    Last edited by Devil_D; 2013-10-18 at 15:46.

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. Pyrit list_cores cant find GPU Nvidia CUDA
    By Nu11ers3t in forum General Archive
    Replies: 2
    Last Post: 2015-02-18, 13:00
  4. NVIDIA CUDA Toolksit Setup for Pyrit
    By Er3bus in forum How-To Archive
    Replies: 0
    Last Post: 2014-06-08, 22:31
  5. Kali Linux 1.05 nvidia optimus cuda and pyrit
    By gfbaggio in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2014-04-28, 20:15

Posting Permissions

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