LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-03-2009, 06:39 PM   #1
Pedroski
Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Fed 15
Posts: 972

Rep: Reputation: 31
kernel source directory


VIP!!

Where are the kernel source files held in Ubuntu??

I need them to get my nvidia card working, as Ubuntu won't do it.
I tried to install the nvidia package manually, and it asks for a kernel source directory!

Help! Going down for the second time!
 
Old 11-03-2009, 07:01 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
You need to install the header files first. Usually it's called linux-headers-XXXXXXX. Search through your package manager for the linux-headers package. Or in Debian, I could install the build-essential package and get the header files as a dependency.

When that's done, they should be installed to /usr/src.
 
Old 11-04-2009, 06:18 PM   #3
Pedroski
Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Fed 15
Posts: 972

Original Poster
Rep: Reputation: 31
Well that got a bit more complicated. The installer script for nvidia worked fine. But I did it in a low level root shell. It warned me that some systems need to be in run level 3 or the changes may not work. I went ahead anyway. No errors. But on boot, it took a while then up came ubuntu. With nvidia 180, although I had just installed 192.
I repeated, using telinit 3 first, from the basic root shell. That switched me to run level 3. I ran nvidias script again. Then I get the error X is already running.

How do I shutdown X??
 
Old 11-04-2009, 06:20 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
Either sudo /etc/init.d/gdm stop or sudo service gdm stop
 
Old 11-04-2009, 07:23 PM   #5
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 9,968

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Do an "sudo init 1" from a terminal.
(Ubuntu and Fedora ???).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel source directory location gemini728 Linux - Newbie 3 06-27-2007 08:38 AM
Source Directory for Target Kernel halfpower Debian 1 05-22-2006 11:48 AM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 09:37 PM
where is my kernel source directory? Veivann Linux - Newbie 3 02-19-2004 04:15 PM
Where is the kernel source directory in Libranet? seppe Debian 1 09-21-2003 10:40 AM


All times are GMT -5. The time now is 09:01 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration