LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 11-03-2009, 05:39 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
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, 06:01 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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, 05:18 PM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
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, 05:20 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Either sudo /etc/init.d/gdm stop or sudo service gdm stop
 
Old 11-04-2009, 06:23 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

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


Reply



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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration