UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.