Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-09-2006, 03:59 PM
|
#1
|
|
Member
Registered: Aug 2006
Location: pakistan ,lahore
Distribution: UBUNTU DAPPER
Posts: 77
Rep:
|
How to install Linux kernel source in Ubuntu
its been litraly 52 hours since my last sleep ......the only reason i couldnt sleep is cuz i cant install nvidia drivers downloaded from nvidia.com it keeps asking me for the kernel source location ....what to do ???
i installed the drivers from the instructions ( not the file i got from nvidia.com) on a page. i see an nvidia logo in the start but still cant change my resolution higher than 1024x786...........
how can i find kernel source location?????
|
|
|
|
10-09-2006, 04:06 PM
|
#2
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
Not sure about Ubuntu but in FC we have to install the kernel-devel package for the specific kernel we are running.
Lazlow
|
|
|
|
10-09-2006, 04:08 PM
|
#3
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,080
|
In Slack it's usually in /usr/src/
|
|
|
|
10-09-2006, 04:11 PM
|
#4
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
You actually only need to download the kernel-headers. Type uname -a and you should see some kernel image. Then type apt-cache search linux-header and find the right one that matches your kernel. Then sudo aptitude install linux-headers-blah (where blah is the appropriate kernel version like "686" or "2.6.18-3-686"). Then try installing from the Nvidia drivers again.
Oh, and on Debian (which Ubuntu is based) I had to invoke the installer with sudo sh NVIDIA-Linux-x86-1.0-XXXX-pkg1.run --x-module-path=/usr/lib/xorg/modules so the driver was installed in the right place.
|
|
|
|
10-09-2006, 07:21 PM
|
#5
|
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Rep:
|
On Ubuntu you can install the build-essentials package that contains everything you would require to build stuff, including the kernel headers.
Code:
apt-get install build-essentials
...and I've never used a Debian-based distro, it funny what little bits and pieces you pick up just from reading the forums 
|
|
|
|
10-09-2006, 07:36 PM
|
#6
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
Quote:
|
Originally Posted by cs-cam
On Ubuntu you can install the build-essentials package that contains everything you would require to build stuff, including the kernel headers.
Code:
apt-get install build-essentials
...and I've never used a Debian-based distro, it funny what little bits and pieces you pick up just from reading the forums 
|
I'm pretty sure build essentials doesn't include the kernel headers, just the compilers and development libs.
|
|
|
|
10-09-2006, 09:20 PM
|
#7
|
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Rep:
|
Ahh well I'm not sure, I've just seen it suggested to someone installing ndiswrapper and assumed it contained the headers as they'd be needed for the build 
|
|
|
|
10-10-2006, 04:13 AM
|
#8
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
I've changed the thread title so that its shows what your question is about.
|
|
|
|
10-10-2006, 07:15 AM
|
#9
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
OK so if I'm reading this right,
1. you couldn't get the drivers you downloaded from nvidia to compile and install.
2. you followed directions from somewhere else and got the drivers working, you get nvidia logo when you start X
3. now just need help getting a resolution above 1024x768, because the drivers ARE actually working..?
dpkg-reconfigure xserver-xorg
YOU really need to work on your questions because it's very difficult to tell exactly what you are requesting help with....
|
|
|
|
10-10-2006, 12:02 PM
|
#10
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
To install the kernel source on Ubuntu go to a terminal then type
Code:
sudo apt-get install linux-headers-`uname -r`
|
|
|
|
10-10-2006, 12:03 PM
|
#11
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
the kernel source location is /usr/src.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:22 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|