Author Topic: Empty /usr/src/ ? [SOLVED]  (Read 20435 times)

Luke

  • Newbie
  • *
  • Posts: 30
    • View Profile
on: July 23, 2012, 05:27:13 PM
Hello. I have problem. I reinstalled BB and i wanted to install nvidia cuda. But what i see  :o my /usr/src/ is totally empty. Can someone help me ? Thank you all.

Edit: I installed new stable kernel 3.4.6. When i want to go to the tty1-6 the black screen turn on. Tty 7 works. Can someone help me ??? :'( :'( :'(
« Last Edit: July 26, 2012, 11:27:40 AM by ostendali »



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #1 on: July 23, 2012, 06:29:01 PM
luke, what do you want find in /src/  folder?? and, tty 1-6 are black screen with login.... where is the problem??

una voce libera è sempre liberatrice
under_r00t


Luke

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #2 on: July 23, 2012, 07:18:51 PM
I need to install my graphic card, but installation cant find the kernel. And...the black screen is complet black without login. So i cant get to the ttys. When i change booting : from quit splash to text  it didnt boot.  :'( :'(

Edit: I downgraded kernel to previous. Ttys work now.
« Last Edit: July 23, 2012, 07:22:57 PM by Luke »



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #3 on: July 23, 2012, 10:53:45 PM
'cause after installation headers and kernel are removed... you must install build-essential, header and sources to compile what you need! About ttys i don't know......

una voce libera è sempre liberatrice
under_r00t


Luke

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #4 on: July 24, 2012, 08:58:05 AM
Thank you for answer! I am new in linux, so can you please tell me how  ???

Edit: It said, i have already installed build-essential.  :-\

Edit 2 : oh, i think...i know how to install it. After install i will type there edit 3
« Last Edit: July 24, 2012, 09:35:45 AM by Luke »



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #5 on: July 24, 2012, 11:47:34 AM
luke, what kind of driver you are trying to install? in most case its enough to follow the step that your vendor gives you...

una voce libera è sempre liberatrice
under_r00t


Luke

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #6 on: July 24, 2012, 02:27:23 PM
Im trying to install nvidia cuda from this tutorial : http://wiki.backbox.org/index.php/Nvidia_CUDA_drivers_and_toolkit .
I installed it with no problems on BB what i had before, but i dont know why i have problems now with kernel.
I just installed the same BB what i had before. IDK what happend...Really dont know. I reinstalled it once again but i have still this problem.  :'(



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #7 on: July 24, 2012, 04:28:11 PM
ok, where is the step that gave you problem? your kernel version is... ( uname -r ) ??

una voce libera è sempre liberatrice
under_r00t


Luke

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #8 on: July 24, 2012, 05:38:49 PM
Okey. So...
1. i downloaded the files from nvidia website
2. open tty1 and log in - ctrl+alt+f1
3. type - sudo service gdm stop (for killing Xserver)
4. cd to file, where i have nvidia cuda drivers (for example cd Download)
5. ls
6. chmod a+x devdriver...
7. sudo ./devdriver (or sudo sh devdriver...)
8. And now i get this errors: http://imgur.com/NZKW2
                                         http://imgur.com/DPnTK
Help me someone please  :'(

Ups. Sorry...i forgot to type kernel : 2.6.38-15-generic
« Last Edit: July 24, 2012, 05:49:11 PM by Luke »



r083rt

  • Guest
Reply #9 on: July 24, 2012, 06:20:08 PM
Code: [Select]
sudo rm -rf /var/log/nvidia-installer.log
sudo apt-get install linux-source
sudo apt-get remove --purge nvidia*
sudo reboot

Code: [Select]
sudo service gdm stop
sudo ./nvidiadriver.run
startx

cd into whatever folder you have it in and do the last command i.e change nvidiadriver name  to your driver you downloaded
« Last Edit: July 24, 2012, 06:34:55 PM by r083rt »



Luke

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #10 on: July 24, 2012, 06:35:16 PM
Thank you r083rt . But it didnt work.  :'(
I've got same errors.
« Last Edit: July 24, 2012, 06:39:09 PM by Luke »



r083rt

  • Guest
Reply #11 on: July 24, 2012, 06:40:18 PM
what is your card ???

give me all the info laptop card etc etc I hope your not running optimus lol

IT IS IMPORTANT WHEN ASKING FOR HELP OR LOOKING FOR A SOLUTION TO SUPPLY ALL RELEVANT INFO
SO THE TROUBLE SHOOTING CAN BE ASSESSED PROPERLY
« Last Edit: July 24, 2012, 06:45:30 PM by r083rt »



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #12 on: July 24, 2012, 06:44:03 PM
luke wait please, i have to advertise you that new nvidia drivers are not yet stable, after reboot you have a black screen, and you have to reload old xorg.conf... my suggestion is to not install the new driver but continue to use nouveau... then, try to install at your own risk!
may be useful to post cat /var/log/nvidia-installer.log to see what is wrong...
« Last Edit: July 24, 2012, 06:46:22 PM by weVeg »

una voce libera è sempre liberatrice
under_r00t


Luke

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #13 on: July 24, 2012, 06:51:40 PM
Guys, i think 1 week ago i installed BB first. I installed nvidia gt520m correctly. All worked, no problem. Then...i tried to  uninstall compiz but i didnt uninstall it properly. So...i got problem with installing nvidia...
I dont know whats wrong now.  >:(

Quote
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Jul 24 19:34:01 2012
installer version: 295.59

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 295.59.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed.  If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
« Last Edit: July 24, 2012, 06:58:06 PM by Luke »



r083rt

  • Guest
Reply #14 on: July 24, 2012, 07:00:37 PM
just as i expected optimus nvidia and intel sleeping with each other lol

forget it ...........
http://bumblebee-project.org/

you can try using bumblebee but its a lot of hassle some people have had luck with it most have not
but its a good project and well needed due to dman nvidia and intel trying to grab as much market share as possible

why two cards in The one machine its just stupid

they call it optimus due to method of nvidia card kicking in when its needed but its sucks balls for linux THANKS NVIDIA YOU f**king wan****

some people have said they can switch it off from the bois but I doubt that
« Last Edit: July 24, 2012, 07:05:39 PM by r083rt »