LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Thread Tools
Old 11-03-2009, 06:39 PM   #1
Pedroski
Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Debian
Posts: 501
Thanked: 0
kernel source directory


[Log in to get rid of this advertisement]
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!
linuxubuntu Pedroski is offline     Reply With Quote
Old 11-03-2009, 07:01 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
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.
windows_xp_2003 pljvaldez is offline     Reply With Quote
Old 11-04-2009, 06:18 PM   #3
Pedroski
Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Debian
Posts: 501
Thanked: 0

Original Poster
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??
linuxubuntu Pedroski is offline     Reply With Quote
Old 11-04-2009, 06:20 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
Either sudo /etc/init.d/gdm stop or sudo service gdm stop
windows_xp_2003 pljvaldez is offline     Reply With Quote
Old 11-04-2009, 07:23 PM   #5
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,916
Thanked: 167
Do an "sudo init 1" from a terminal.
(Ubuntu and Fedora ???).
syg00 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 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 03:38 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration