LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant extract kernel "linux-2.6.34.1.tar.bsz2" in /usr/src (https://www.linuxquestions.org/questions/linux-newbie-8/cant-extract-kernel-linux-2-6-34-1-tar-bsz2-in-usr-src-823167/)

aicrop 07-31-2010 02:49 AM

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

Nylex 07-31-2010 02:52 AM

Write permissions are likely set for root only, so (assuming you're using Ubuntu), put "sudo" in front of tar to have the privileges.

aicrop 07-31-2010 03:08 AM

Quote:

Originally Posted by Nylex (Post 4050708)
Write permissions are likely set for root only, so (assuming you're using Ubuntu), put "sudo" in front of tar to have the privileges.


thank you Sir! It worked I love sir hehe ^__^

Nylex 07-31-2010 03:22 AM

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.

zirias 07-31-2010 03:26 AM

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
This will still run as normal user and create a kernel .deb package which you can install using "sudo dpkg -i".


All times are GMT -5. The time now is 06:08 PM.