Re: Confused about kernel source location
On Fri, 17 Aug 2007 06:11:08 +0200 Marcus Blumhagen <[EMAIL PROTECTED]> wrote: > Hi, > > First of all, please CC me when replying, since I am not subscribed to > this list. > > > [...] > > And as I rarely decompress files, I have forgotten the command to > > decompress tar/bz2 files . > > [...] > > I just wanted to add my ¢2. You may want to evaluate the package named > "unp" and you will never (almost) need to remember any command for > decompressing archive files. Just type: > > unp > > and it automagically extracts it, no matter what kind of archive, > provided you have the appropriate archiver program installed. > Great little program. Thanks. Cheers Frank -- Change the world one loan at a time - visit Kiva.org to find out how
Re: Confused about kernel source location
Hi, First of all, please CC me when replying, since I am not subscribed to this list. > [...] > And as I rarely decompress files, I have forgotten the command to > decompress tar/bz2 files . > [...] I just wanted to add my ¢2. You may want to evaluate the package named "unp" and you will never (almost) need to remember any command for decompressing archive files. Just type: unp and it automagically extracts it, no matter what kind of archive, provided you have the appropriate archiver program installed. Regards -- Marcus Blumhagen "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." -- Albert Einstein signature.asc Description: Digital signature
Re: Confused about kernel source location
Ed Jabbour([EMAIL PROTECTED]) is reported to have said: > On Tuesday 14 August 2007 21:27, Wayne Topa wrote: > > >Anybody? Where do people dump their kernel source anyway??? > > > > I have always put my kernels in /usr/src. First time I've _ever_ > > heard of " DO NOT USE THE /usr/src area". Just what readme did you > > see _that_ in? > > From linux-source-2.6.18/README: > > INSTALLING the kernel: > > - If you install the full sources, put the kernel tarball in a >directory where you have permissions (eg. your home directory) and >unpack it: > > * * * * > Do NOT use the /usr/src/linux area! This area has a (usually >incomplete) set of kernel headers that are used by the library header >files. They should match the library, and not get messed up by >whatever the kernel-du-jour happens to be. > === Thanks Ed I'm running 2.6.21-1-amd64 so had to go to another box to check. Yes I see that in the 2.6.18 source. For what it's worth, there is no such README in the 2.6.21-1-amd64 source dir, which is installed in /usr/src, by aptitude. Interesting. Wayne -- Why do we want intelligent terminals when there are so many stupid users? ___ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Confused about kernel source location
On Tuesday 14 August 2007 21:27, Wayne Topa wrote: > >Anybody? Where do people dump their kernel source anyway??? > > I have always put my kernels in /usr/src. First time I've _ever_ > heard of " DO NOT USE THE /usr/src area". Just what readme did you > see _that_ in? From linux-source-2.6.18/README: INSTALLING the kernel: - If you install the full sources, put the kernel tarball in a directory where you have permissions (eg. your home directory) and unpack it: * * * * Do NOT use the /usr/src/linux area! This area has a (usually incomplete) set of kernel headers that are used by the library header files. They should match the library, and not get messed up by whatever the kernel-du-jour happens to be. ===
Re: Confused about kernel source location
On Wed, 15 Aug 2007 10:36:52 +0900 Takehiko Abe <[EMAIL PROTECTED]> wrote: > Frank McCormick wrote: > > >>> Well, I always store there all the sources related with my > >>> kernel, modules, etc... I haven't get any problem... BTW, > >>> remember doing the symlink to /usr/src/linux from your > >>> kernel-source. > >> > >> Well then why the warning from the Kernel developers? And what's > >> this about symlinking? Symlinking what to what ? > > I don't know why. but the kernel package readme > (/usr/share/doc/kernel-package/README.gz) also suggests not to build > the kernel there. Also the Filesystem Hierarchy Standard (FHS) says > that source code may be placed under /usr/src "only for reference > purposes" and "should not be build within". Again I don't understand > why exactly. [...] The idea is that /usr should be kept read-only. Some administrators even mount /usr read-only on its own partition. -- Liam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Confused about kernel source location
El Mar, 14 de Agosto de 2007, 8:29 pm, Frank McCormick escribió: > >> On Mon, 13 Aug 2007 14:28:41 -0400 >> Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote: >> >> > Frank McCormick wrote: >> > > I downloaded and installed the source for the current kernel, >> > > which aptitude dumped into /usr/src. Reading the readme, one of >> > > the first things it says is " DO NOT USE THE /usr/src area" >> > > because that is where the headers for libc I guess are stored. >> > > What is up here ? >> > >> > Well, I always store there all the sources related with my kernel, >> > modules, etc... I haven't get any problem... BTW, remember doing the >> > symlink to /usr/src/linux from your kernel-source. >> >>Well then why the warning from the Kernel developers? And what's >> this about symlinking? Symlinking what to what ? > > >Anybody? Where do people dump their kernel source anyway??? > Well, the first person that says that the kernel sources must NOT be in /usr/src was Linus, but I think that this only affects things at 'build' time (like build the base system for a distribution) so it's the same put in /kernelsource or /usr/src since the build symlink in /lib/modules/$(uname -r) points to the 'original' source code where the kernel was compiled. My kernels sources are in /kernelsource and I don't have any problems. Saludos. -olr
Re: Confused about kernel source location
Frank McCormick wrote: >>> Well, I always store there all the sources related with my kernel, >>> modules, etc... I haven't get any problem... BTW, remember doing >>> the symlink to /usr/src/linux from your kernel-source. >> >> Well then why the warning from the Kernel developers? And what's >> this about symlinking? Symlinking what to what ? I don't know why. but the kernel package readme (/usr/share/doc/kernel-package/README.gz) also suggests not to build the kernel there. Also the Filesystem Hierarchy Standard (FHS) says that source code may be placed under /usr/src "only for reference purposes" and "should not be build within". Again I don't understand why exactly. If you can use make-kpkg, I think following the instruction detailed in the kernel-package readme is an easy path. I never used that symlink (what is that?). >Anybody? Where do people dump their kernel source anyway??? I use /usr/local/src/kernel. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Confused about kernel source location
On Tue, 14 Aug 2007, Frank McCormick wrote: On Mon, 13 Aug 2007 14:28:41 -0400 Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote: Frank McCormick wrote: I downloaded and installed the source for the current kernel, which aptitude dumped into /usr/src. Reading the readme, one of the first things it says is " DO NOT USE THE /usr/src area" because that is where the headers for libc I guess are stored. What is up here ? Well, I always store there all the sources related with my kernel, modules, etc... I haven't get any problem... BTW, remember doing the symlink to /usr/src/linux from your kernel-source. Well then why the warning from the Kernel developers? And what's this about symlinking? Symlinking what to what ? Anybody? Where do people dump their kernel source anyway??? Cheers Frank When I compile my own kernels, I usually put them in /usr/local/src/ , then make a symlink from linux-version to kernel. That way, when a new kernel comes out i just remove the symlink from the old to the new. I find it's easier to do it that way when I have to recompile modules, that way I always point the config to /usr/local/src/kernel . I leave /usr/src out, because thats where the debian kernel source files will go if I need to download them and I dont want things to get confused. -+- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Confused about kernel source location
Frank McCormick([EMAIL PROTECTED]) is reported to have said: > > > On Mon, 13 Aug 2007 14:28:41 -0400 > > Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote: > > > > > Frank McCormick wrote: > > > > I downloaded and installed the source for the current kernel, > > > > which aptitude dumped into /usr/src. Reading the readme, one of > > > > the first things it says is " DO NOT USE THE /usr/src area" > > > > because that is where the headers for libc I guess are stored. > > > > What is up here ? > > > > > > Well, I always store there all the sources related with my kernel, > > > modules, etc... I haven't get any problem... BTW, remember doing the > > > symlink to /usr/src/linux from your kernel-source. > > > >Well then why the warning from the Kernel developers? And what's > > this about symlinking? Symlinking what to what ? > > >Anybody? Where do people dump their kernel source anyway??? > I have always put my kernels in /usr/src. First time I've _ever_ heard of " DO NOT USE THE /usr/src area". Just what readme did you see _that_ in? Wayne -- Warning, keyboard not found. Press Enter to continue. ___ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Confused about kernel source location
> On Mon, 13 Aug 2007 14:28:41 -0400 > Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote: > > > Frank McCormick wrote: > > > I downloaded and installed the source for the current kernel, > > > which aptitude dumped into /usr/src. Reading the readme, one of > > > the first things it says is " DO NOT USE THE /usr/src area" > > > because that is where the headers for libc I guess are stored. > > > What is up here ? > > > > Well, I always store there all the sources related with my kernel, > > modules, etc... I haven't get any problem... BTW, remember doing the > > symlink to /usr/src/linux from your kernel-source. > >Well then why the warning from the Kernel developers? And what's > this about symlinking? Symlinking what to what ? Anybody? Where do people dump their kernel source anyway??? Cheers Frank -- Change the world one loan at a time - visit Kiva.org to find out how -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Confused about kernel source location
On Mon, 13 Aug 2007 14:28:41 -0400 Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote: > Frank McCormick wrote: > > > > > > I have taken the first steps towards compiling an Nvidia module for > > my Quadro-pro card... > > I downloaded and installed the source for the current kernel, which > > aptitude dumped into /usr/src. Reading the readme, one of the first > > things it says is " DO NOT USE THE /usr/src area" because that is > > where the headers for libc I guess are stored. What is up here ? > > Well, I always store there all the sources related with my kernel, > modules, etc... I haven't get any problem... BTW, remember doing the > symlink to /usr/src/linux from your kernel-source. Well then why the warning from the Kernel developers? And what's this about symlinking? Symlinking what to what ? > And as > > I rarely decompress files, I have forgotten the command to > > decompress tar/bz2 files . > > That's why man exists :) `man tar', and even more simple!: > `tar --help'... > > Anyway > > tar -jxf linux-2.6.x.x.tar.bz2 > Thanks for that. I should have RTFM ! Cheers -- Change the world one loan at a time - visit Kiva.org to find out how -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Confused about kernel source location
Frank McCormick wrote: > > > I have taken the first steps towards compiling an Nvidia module for my > Quadro-pro card... > I downloaded and installed the source for the current kernel, which > aptitude dumped into /usr/src. Reading the readme, one of the first > things it says is " DO NOT USE THE /usr/src area" because that is > where the headers for libc I guess are stored. What is up here ? Well, I always store there all the sources related with my kernel, modules, etc... I haven't get any problem... BTW, remember doing the symlink to /usr/src/linux from your kernel-source. And as > I rarely decompress files, I have forgotten the command to decompress > tar/bz2 files . That's why man exists :) `man tar', and even more simple!: `tar --help'... Anyway tar -jxf linux-2.6.x.x.tar.bz2 Regards, Jose Luis. -- ghostbar on debian linux 'sid' 2.6.22 x86_64-SMP - #382503 Weblog: http://ghostbar.ath.cx/ - http://linuxtachira.org http://debian.org.ve - irc.debian.org #debian-ve #debian-devel-es San Cristóbal, Venezuela. http://chaslug.org.ve Fingerprint = 3E7D 4267 AFD5 2407 2A37 20AC 38A0 AD5B CACA B118 signature.asc Description: OpenPGP digital signature