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

Re: kernel sources for Lenny?



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
>  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.  
>
> 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,
> and which asks that kernel sources 
> (esp. headers) be installed under /usr/src/linux . . . 
>
>   

I would suggest to make a symbolic link:
/usr/src/:# ln -s /usr/src/linux-headers-2.6.26-1-686 linux


and I guess you'll be ok!

G.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: