[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel sources for Lenny?



On Mon, Oct 05, 2009 at 11:46:22AM -0700, Andrew Porter wrote:
> 
> 
> What is the _right_ way to install kernel headers,
> and if possible kernel sources,
> so that they get put in /usr/src/ ... ?? 
> 
> I installed these packages, 
> from the www.debian.org web-site, <stable> distro:
> 
> 	 linux-headers-2.6.26-1-686_2.6.26-13lenny2_i386.deb
> 	 linux-headers-2.6.26-1-common_2.6.26-13lenny2_i386.deb
> 	 linux-kbuild-2.6.26_2.6.26-3_i386.deb
> 
> This is where it (dpkg) put them,
> (not in /usr/src/linux): 
> 
> pts/0:/usr/src>ls -lsa
>  4 drwxr-xr-x  4 root root  4096 2009-09-22 12:09 linux-headers-2.6.26-1-686

Any reason you use 2.6.26-1 and not 2.6.26-2 ?

>  4 drwxr-xr-x 18 root root  4096 2009-09-22 12:09 linux-headers-2.6.26-1-common
>  4 drwxr-xr-x  3 root root  4096 2009-09-22 12:09 linux-kbuild-2.6.26
> 
> --------------------------------------
> 
> These are Lenny (Debian 5.0, currently <stable>) kernal packages,
> and Lenny is what's on the machine.  

Stable packages are actually 2.6.26-2

> 
> What is the right way to get kernel sources and kernel headers
> installed under /usr/src/linux?  
> 
> 
> All this is in aid of installing
> the XiG commercial X server,
> which has features X.org does not,

It's still alive?

> and which asks that kernel sources 
> (esp. headers) be installed under /usr/src/linux . . . 

The symlink method suggested elsewhere in this thread can easily lead
you to using an incorrect kernel source tree.

  /lib/modules/`uname -r`/build

is a saner default :-(

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: