Results 1 to 8 of 8

Thread: [SOLVED] linux kernel source and sense of life

  1. #1
    Join Date
    Mar 2008
    Location
    Poland, Europe
    Beans
    211
    Distro
    Ubuntu

    Question [SOLVED] linux kernel source and sense of life

    Wasup,

    I'm trying to find the sense of my life. Could anybody tell me where can I find kernel source? Dang, I'm under /usr/src/my_kernel_version and all I see in every single folder are twp stand alone files Kconfig and Makefile. What's wrong? If I should download the sources to have them in /usr/src/kernel_version/ , please let met know how.

    Thanks,
    Mike, the Zen lamer
    Last edited by mkarnicki; June 8th, 2008 at 08:15 PM.

  2. #2
    Join Date
    Nov 2007
    Beans
    706
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: linux kernel source and sense of life

    Very confusing post, but I think you're looking for http://www.kernel.org/
    Programming is an art. Learn it. Live it. Love it.

  3. #3
    Join Date
    Mar 2008
    Beans
    349
    Distro
    Ubuntu 8.04 Hardy Heron

  4. #4
    Join Date
    Mar 2008
    Location
    Poland, Europe
    Beans
    211
    Distro
    Ubuntu

    Re: linux kernel source and sense of life

    @Sinkingships It was supposed to be a joke

    Thank you guys, I'll follow the link. I thought the sources where download-able via synaptic, since user sometimes recompile their kernels. Whatsoever, thanks again!

    *meditating with the kernel code*

    Mike

  5. #5
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: [SOLVED] linux kernel source and sense of life

    You want the Ubuntu kernel source code ?

    Install the "linux-headers"

    Code:
    sudo apt-get install linux-headers-`uname -r`
    http://packages.ubuntu.com/search?su...=linux-headers
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #6
    Join Date
    Jul 2006
    Location
    Lake City, Florida. USA
    Beans
    24
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: [SOLVED] linux kernel source and sense of life

    Also, if you just want the tarball for the Ubuntu version of the kernel, you can run the following code:

    Code:
    apt-get source the-package-name

  7. #7
    Join Date
    Feb 2007
    Location
    /dev/random
    Beans
    671
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] linux kernel source and sense of life

    Hi,

    There a few things about getting the sources from kernel.org: They're usually a couple releases ahead. Second, there are many to choose from. Third, the *ubuntus do not use a stock kernel, it has Canonical supplied patches.

    Get it from the repositories. In Synaptic search for "linux-source". Install it and that will get you a nice large tarball of everything, patches included. You'll find it in the folder /usr/src. Also search for and install "linux-headers" - you'll probably want "linux-headers-generic" (unless you're after -rt or -server or -386, etc). They will also be placed in /usr/src.

    Since I sniff a possible kernel builder, you also want these packages: "build-essential" and "kernel-package" OR just get "linux-kernel-devel" which includes the first two and tools.

    And some advice: Backup - everything - before you deploy your new kernel. Or try it in a VM. Broken kernel = broken box, to the point of being completely unusable.
    Main system: Dell 1420n - C2D T5250, 4GB RAM, 120GB SATA. Ubuntu 8.04.3.
    Assorted VMs (via VBox). Favorites: Fedora, FreeBSD, Solaris.

  8. #8
    Join Date
    Mar 2008
    Location
    Poland, Europe
    Beans
    211
    Distro
    Ubuntu

    Talking Re: [SOLVED] linux kernel source and sense of life

    Now THAT I call valuable replies! THANK YOU!

    bodhi.zazen, crashsystems and niteshifter - these were very useful hints and instructions. I'm glad there was little more response on this topic. Now I'm packed with source, yay! Have a good day
    Last edited by mkarnicki; June 8th, 2008 at 10:11 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •