cant extract kernel "linux-2.6.34.1.tar.bsz2" in /usr/src
Hello Guys!
I downloaded the latest kernel version "linux-2.6.34.1.tar.bsz2"and then I placed on desktop, then i tried to extract it at /usr/src i typed cd /home/vadmin/Desktop then when i tried to extract to /usr/src tar -xjvf linux-2.6.34.1.tar.bsz2 -C /usr/src then it would say permission denied |
Write permissions are likely set for root only, so (assuming you're using Ubuntu), put "sudo" in front of tar to have the privileges.
|
Quote:
thank you Sir! It worked I love sir hehe ^__^ |
If you don't know about file permissions, then see, e.g. this.
Please mark your thread as solved. You should see a button somewhere for doing that. |
I'd like to add this is NOT the recommended way, as running the compiler shouldn't be done as root.
look at the /usr/src directory with "ls -ld /usr/src". Most systems make it owned and writable either by group "src" or by group "staff". Add the user you want to use for compiling software packages to that group, then you can do all steps as normal user except the final installation of the compiled binaries (THIS is where sudo should be used). Side node especially for kernels on debian/ubuntu: There is the very nice helper package "kernel-package". Install it! Then, configure your kernel normally (make menuconfig or make xconfig, whichever you like better) and when you've finished, do something like: Code:
make-kpkg --initrd --rootcmd fakeroot --revision [your hostname].1.0 kernel_image |
All times are GMT -5. The time now is 06:08 PM. |