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

Re: Tutorial for kernel compiling the Debian way, RFC



Hi,

I must say, it is a very exhaustive document, but I think detailed enough
for a newbie, BUT:
everything you describe, is done as root. This is not needed, and
certainly for newbies somewhat dangerous. I would do the following:
As root:
- install kernel source with apt
- addgroup <useraccount> src (this gives you read and write permissions in
/usr/src)
- LET THE USER LOG IN AGAIN - OTHERWISE HE IS NOT ADDED TO THE GROUP (you
can check this with the command 'groups').

Then as <useraccount>:
- unpack to /usr/src
- link linux to kernel-source-...
- do everything you need to do to compile the kernel
- compile it

Then as root:
- install the newly compiled kernel with dpkg -i kernel.....


This is also better when you want to use 'make xconfig'. I have heard that
using X as root is not so wise, now you can be an ordinary user.

Perhaps you have mentioned it somewhere, but it may be worthy noting that
you can compile kernels on a fast machine for a slower machine (with the
correct config files), copy the .deb file and install the package on the
slower machine.

Succes,
Sebastiaan



On Sun, 22 Apr 2001, Jesse Goerz wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I wrote a basic document intended to help Debian newbies compile custom 
> kernels using kernel-package.  I'd really appreciate any and all comments, 
> suggestions, additions, subtractions you may have. (constructive 
> welcomed, the rest accepted) 
> 
> You can browse the doc online at:
> http://newbiedoc.sourceforge.net/kernel-pkg/index-kernel-pkg.html
> 
> Or download a tarball for offline viewing at:
> http://newbiedoc.sourceforge.net/kernel-pkg/kernel-pkg.tgz
> 
> I'm not on the list just now so please cc me or post to:
> newbiedoc-discuss@lists.sourceforge.net
> 
> 
> If you're interested in contributing to the project check out the link in the
> signature.  There's a quick docbook intro at (online browsing):
> http://newbiedoc.sourceforge.net/docbook-guide/index-docbook-guide.html
> 
> or download a tarball for offline viewing at:
> http://newbiedoc.sourceforge.net/docbook-guide/docbook-guide.tgz
> 
> Regards,
> jesse
> - -- 
> Docs by & for Debian newbies
> http://newbiedoc.sourceforge.net
> pgp key at:
> http://personal.mco.bellsouth.net/~jgoerz
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iEYEARECAAYFAjrio6kACgkQUraCO4ktIFdo+ACgpojRUFgCupXxJ3PVDE9B3LRX
> 2YQAn3XD3INEGQGEULNaJISJb1SG70Mf
> =W65y
> -----END PGP SIGNATURE-----
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 



Reply to: