Results 1 to 6 of 6

Thread: source code

  1. #1
    Join Date
    Apr 2008
    Beans
    68

    Question source code

    i checked out this directory usr/src/ it has two directories which say like.. linux headers"

    do these directories actually contain the UBUNTU sourcecode ???

    or do these contain the linux kernel source code ???

    if not... what are these folders ...?

  2. #2
    Join Date
    Oct 2005
    Location
    De Kwakel - Holland
    Beans
    3,657

    Re: source code

    Quote Originally Posted by lucky.developer View Post
    i checked out this directory usr/src/ it has two directories which say like.. linux headers"

    do these directories actually contain the UBUNTU sourcecode ???

    or do these contain the linux kernel source code ???

    if not... what are these folders ...?

    kernel sources..

  3. #3
    Join Date
    Apr 2008
    Beans
    68

    Re: source code

    sources means..you say them as source code ??? of the linux or ubuntu kernel ???

  4. #4
    Join Date
    Jun 2007
    Location
    United Kingdom
    Beans
    283
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: source code

    If you're looking for the source code for ubuntu packages you can download them with apt-get:

    Code:
    apt-get source [package]

  5. #5
    Join Date
    Apr 2006
    Location
    Vancouver, BC, Canada
    Beans
    146
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: source code

    Quote Originally Posted by lucky.developer View Post
    i checked out this directory usr/src/ it has two directories which say like.. linux headers"

    do these directories actually contain the UBUNTU sourcecode ???

    or do these contain the linux kernel source code ???

    if not... what are these folders ...?
    With the exception of a few patches and utilities, there isn't really such a thing as Ubuntu source code. Ubuntu (and all other Linux distributions) are more of an amalgamation of the GNU system and the Linux kernel + tons of other projects. linux-headers contains just that -- the headers, if confused.
    A header file commonly contains forward declarations of subroutines, variables, and other identifiers. Identifiers that need to be declared in more than one source file can be placed in one header file, which is then included whenever its contents are required.
    There is a package available which contains the source, unfortunately I don't have access to my Ubuntu machine so I can't tell you for certain what it is, I think it's just linux-source, which you can grab using either apt-get or synaptic.

    Most other packages you'll have to get using
    apt-get source packagename
    Quote Originally Posted by Pimientito
    NEVER EVER give a gypsy player an unprotected guitar to play. It will end in tears!

  6. #6
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: source code

    you can't just apt-get source... you first need to add the src-repos first

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
  •