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

Re: Non-root kernel compiling



Hi,
I have read a very different way to compile a new kernel. 

$ cd /tmp
$ tar -xIvf /usr/src/kernel-souce-2.2.17.tar.bz2
$ c cd 2.2.17
$ make-kpkg clean
$ make menuconfig
$ fakeroot make-kpkg --revision=9:mykernel kernel_image

If it is correct, there is a net .deb packet in /tmp:
cp /tmp/kernel-image-2.2.17_mykernel_i386.deb /home/user/

Now as root:
# dpkg -i /home/user/kernel-image-2.2.17_mykernel_i386.deb

This will install your new kernel. Check lilo and look out for updates in
/lib/modules/2.2.17, I do not remember how this is handled.

Every step that you did being a user can also be done on another computer,
so you can compile kernels on a fast computer for a slower one.

Greetz,
Sebastiaan


On Tue, 5 Dec 2000, paolo massei wrote:

> I read sometimes ago in this list that i can compile my custom-kernel
> being an ordinary user and not using root account (before installing it);
> well, when i try run  "make *config" in /usr/src/linux directory,
> i receive this error message:
> 
> bash-2.03$ make xconfig
> rm -f include/asm
> rm: impossibile scollegare `include/asm': Permesso negato
> make: *** [symlinks] Error 1
> 
> (translation of line n°3: rm: impossible to unlink `include/asm': Permission Denied)
> and all is stopped.
> 
> User paolo hasn't (obviously) permissions of writing /usr directory and i think the 
> right thing to do is to untar kernel-source in my /home-dir and compile there:
> may i have troubles installig (as root with make-kpkg) from there, or it's the ordinary
> manner in compiling kernel as user?
> 
> Answers, other tips (and money donations ;))) will be appreciated...
> 
>  Tnks
> 
>     paolo massei
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 



Reply to: