LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2010, 03:49 AM   #1
aicrop
LQ Newbie
 
Registered: Jul 2010
Location: Phlippines
Distribution: CentOS
Posts: 14

Rep: Reputation: 0
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
 
Old 07-31-2010, 03:52 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Write permissions are likely set for root only, so (assuming you're using Ubuntu), put "sudo" in front of tar to have the privileges.
 
1 members found this post helpful.
Old 07-31-2010, 04:08 AM   #3
aicrop
LQ Newbie
 
Registered: Jul 2010
Location: Phlippines
Distribution: CentOS
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
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 ^__^
 
Old 07-31-2010, 04:22 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 07-31-2010, 04:26 AM   #5
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
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".

Last edited by zirias; 07-31-2010 at 04:29 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to extract a "tar.bz2" file? deWin Linux - Newbie 14 08-09-2016 09:49 AM
Installing fusefs-kmod: "Set SRC_BASE if it is not in /usr/src" odiseo77 *BSD 5 07-14-2009 06:33 PM
RPM installation gives "error: cannot create %sourcedir /usr/src/redhat/SOURCES" praveen_darshanam Linux - Newbie 5 01-24-2009 06:59 AM
What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? jtp51 Linux - General 4 06-11-2007 01:22 AM
"/usr/src/linux" should you use it ksnash Programming 6 04-30-2005 02:11 AM


All times are GMT -5. The time now is 06:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration