Re: linux-sources

2012-02-11 Thread Panayiotis Karabassis
On 02/11/2012 02:14 PM, lina wrote:
> On Sat, Feb 11, 2012 at 8:02 PM, Scott Ferguson
>  wrote:
>> On 11/02/12 22:53, lina wrote:
>>> Right now updating I notice the install of linux-source 3.2
>>>
>>> my question is that:
>>>
>>> 1] will it install on /
>>> my / has reached 83%
>>
>> Maybe, depends on your partitioning.
>> If you have only the one partition - yes.
>>
>> (mount will tell you)
>>
>> 7% of free space "could" be sufficient... how big is your drive?
>> (the package is about 73MB, it'll take up more again when installed)
>>
>>>
>>> 2] I have installed kernel 3.2.5
>>> is it necessary to have 3.2?
>>
>> Yes - if you plan on building your own 3.2x kernel.
> 
> Thanks, it stays quietly under /usr/src as linux-source-3.2.tar.bz2, I
> worried it might be installed in /boots.
> 
> what's the kernel-image and kernel-head relationship?

The kernel image is the compiled kernel we run. The kernel headers are
part of the kernel source and are needed, for example, to compile kernel
modules.

For example we could have the C function:

void hello_world()
{
   printf("Hello world!\n");
}

In order to use that function in a program or library, we need to tell
the compiler what hello_world is (e.g. its return type and arguments:
void). For this purpose we use a header file, which would contain:

void hello_world();

We can then call hello_world in any program that includes the header. Of
course we also need to link the program with the compiled hello_world
code, but that's a different story.

>>
>>>
>>> thanks
>>>
>>>
>>
>>
>> Kind regards
>>
>> --
>> Iceweasel/Firefox extensions for finding answers to Debian questions:-
>> https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
>> Archive: http://lists.debian.org/4f3658d6.5010...@gmail.com
>>
> 
> 


-- 
Best regards,
Panayiotis Karabassis


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f369d00.7040...@gmail.com



Re: linux-sources

2012-02-11 Thread lina
On Sat, Feb 11, 2012 at 8:02 PM, Scott Ferguson
 wrote:
> On 11/02/12 22:53, lina wrote:
>> Right now updating I notice the install of linux-source 3.2
>>
>> my question is that:
>>
>> 1] will it install on /
>> my / has reached 83%
>
> Maybe, depends on your partitioning.
> If you have only the one partition - yes.
>
> (mount will tell you)
>
> 7% of free space "could" be sufficient... how big is your drive?
> (the package is about 73MB, it'll take up more again when installed)
>
>>
>> 2] I have installed kernel 3.2.5
>> is it necessary to have 3.2?
>
> Yes - if you plan on building your own 3.2x kernel.

Thanks, it stays quietly under /usr/src as linux-source-3.2.tar.bz2, I
worried it might be installed in /boots.

what's the kernel-image and kernel-head relationship?
>
>>
>> thanks
>>
>>
>
>
> Kind regards
>
> --
> Iceweasel/Firefox extensions for finding answers to Debian questions:-
> https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/4f3658d6.5010...@gmail.com
>


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cag9cjmmg58u-_-y3xeqtotpnrwwgnkdi9inb8ppyvwqkxps...@mail.gmail.com



Re: linux-sources

2012-02-11 Thread Scott Ferguson
On 11/02/12 22:53, lina wrote:
> Right now updating I notice the install of linux-source 3.2
> 
> my question is that:
> 
> 1] will it install on /
> my / has reached 83%

Maybe, depends on your partitioning.
If you have only the one partition - yes.

(mount will tell you)

7% of free space "could" be sufficient... how big is your drive?
(the package is about 73MB, it'll take up more again when installed)

> 
> 2] I have installed kernel 3.2.5
> is it necessary to have 3.2?

Yes - if you plan on building your own 3.2x kernel.

> 
> thanks
> 
> 


Kind regards

-- 
Iceweasel/Firefox extensions for finding answers to Debian questions:-
https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f3658d6.5010...@gmail.com



linux-sources

2012-02-11 Thread lina
Right now updating I notice the install of linux-source 3.2

my question is that:

1] will it install on /
my / has reached 83%

2] I have installed kernel 3.2.5
is it necessary to have 3.2?

thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAG9cJmn2-B+Zz7n=Kidp_C_QyugCJNai0s=zpdvghnjkacu...@mail.gmail.com



Re: I have no /usr/src/linux/ sources

2004-09-23 Thread Wolfgang Pfeiffer
On Wed, 2004-09-22 at 23:50, Wolfgang Pfeiffer wrote:
> Hi Eric
> 
> Sorry for the late answer. But I don't have the time to check the
> messages on debian-user more often.
> 
> On Sat, 2004-09-18 at 15:03, Eric Dickner wrote:
> > I am trying to compile some .src.rpm files.  When
> > I try to do this they look for headers under the
> > /usr/src/linux link. I installed linux from CD's
> > originally and they didn't put anything there...I
> > don't even have that link.
> > 
> > I downloaded a source kernel from kernel.org and many
> > of the instructions I found told me to put the source
> > there...BUT the readme from kernel.org specifically
> > told me NOT to put it there.  
> 
> Great to hear that! It's NOT necessary to have /usr/src/linux, as far
> as
> I can see: You can compile your .deb packages (probably all .deb
> packages) somewhere in your user directory, with any need to cd to
   ^

should say: "  without any need ... "

> /usr/src/

[ ... ]

Sorry.

Regards
Wolfgang

-- 
Wolfgang Pfeiffer   gpg ID: 0AA7E825 
Profile, links: http://profiles.yahoo.com/wolfgangpfeiffer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I have no /usr/src/linux/ sources

2004-09-22 Thread Wolfgang Pfeiffer
Hi Eric

Sorry for the late answer. But I don't have the time to check the
messages on debian-user more often.

On Sat, 2004-09-18 at 15:03, Eric Dickner wrote:
> I am trying to compile some .src.rpm files.  When
> I try to do this they look for headers under the
> /usr/src/linux link. I installed linux from CD's
> originally and they didn't put anything there...I
> don't even have that link.
> 
> I downloaded a source kernel from kernel.org and many
> of the instructions I found told me to put the source
> there...BUT the readme from kernel.org specifically
> told me NOT to put it there.  

Great to hear that! It's NOT necessary to have /usr/src/linux, as far as
I can see: You can compile your .deb packages (probably all .deb
packages) somewhere in your user directory, with any need to cd to
/usr/src/

I don't have any idea how to get rpm packages compiled on a Debian
system. But others might be able to help here ...
(maybe you can forget the rpm's by simply finding the deb. package
pendant, and then try to compile/install this?)

Even Linus Torvalds suggested some time ago that people should NOT use
/usr/src for compiling kernels:



Excerpt:

I would suggest that people who compile new kernels should:

  * NOT do so in /usr/src. Leave whatever kernel (probably only the
header files) that the distribution came with there, but don't
touch it.

  * compile the kernel in their own home directory, as their very
own selves. No need to be root to compile the kernel. You need
to be root to install the kernel, but that's different.

  * not have a single symbolic link in sight (except the one that
the kernel build itself sets up, namely the "linux/include/asm"
symlink that is only used for the internal kernel compile
itself)


I tried to describe in (more or less) detail a kernel compile in a
NON-/usr/src/ environment. You find it here:


It should also work for any other .deb package you'd like to compile.

If you want to compile a package simply do a 
apt-get build-dep 

The command above will pull dependency related packages, necessary for
the build, into your system. More on that here:



> They said something
> about how the source from the "kernel du jour" was not
> what was supposed to be there.  Of course, I threw out
> all those instructions on recompiling kernels and
> followed the readme from those folks.
> 
> As a result I still have nothing there except the RPM
> directories.  Any effort to"make" the .rps results in
> them looking for these headers.

   [ ... ]

Did you ever install a kernel from a deb package? If not: Perhaps this
is the reason you don't have these "headers" on your system ... ??
Any one out there knows more on that?

And Eric: Please let me know if this does not help ..

Good luck
Wolfgang
-- 
Profile: http://profiles.yahoo.com/wolfgangpfeiffer

3 more reasons for Linux:





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I have no /usr/src/linux/ sources

2004-09-19 Thread Eric Dickner

--- Andrea Vettorello <[EMAIL PROTECTED]>
wrote:

> If you
> need some kernel
> header files you'll probably find them installing
> kernel-headers
> packages.
> 
> 
> Andrea
> 

Yeah, putting that empty directory there only made it
insist on specific files.  That at least led me to the
proper package.  I a remain surprised that these
headers are not part of any given install.

ejd




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I have no /usr/src/linux/ sources

2004-09-19 Thread Andrea Vettorello
On Sat, 18 Sep 2004 21:16:03 -0400, Travis Crump <[EMAIL PROTECTED]> wrote:
> Andrea Vettorello wrote:
> > On Sat, 18 Sep 2004 06:10:46 -0700, Stefan O'Rear <[EMAIL PROTECTED]> wrote:
> >
> >>On Sat, Sep 18, 2004 at 06:03:01AM -0700, Eric Dickner wrote:
> >>>What am I missing here, besides these .h files?
> >>
> >>Nothing.
> >>
> >>How to cope:
> >>
> >># mkdir /usr/src/linux
> >># mkdir /usr/src/linux/include
> >>
> >
> >
> > This is only looking for trouble. You should not mess with files
> > managed by your package manager (dpkg). As a user you are only free to
> > create/copy files on your home or in /usr/local, any other location
> > should not be touched
> 
> /usr/src/ should be fine too touch manually.[Though I am not convinced

You are right, those aren't libraries or binaries so should have
minimum impact and i've specified that "with caution" you can do it. 
=)

> this solution is correct, nothing should be referencing kernel headers
> except for kernel modules which generally need the exact version, ie
> install the appropriate kernel-headers package and create a symlink to
> /usr/src/linux/]
> 

Yeah, userland program shouldn't use kernel headers.


Andrea


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I have no /usr/src/linux/ sources

2004-09-18 Thread Travis Crump
Andrea Vettorello wrote:
On Sat, 18 Sep 2004 06:10:46 -0700, Stefan O'Rear <[EMAIL PROTECTED]> wrote:
On Sat, Sep 18, 2004 at 06:03:01AM -0700, Eric Dickner wrote:
What am I missing here, besides these .h files?
Nothing.
How to cope:
# mkdir /usr/src/linux
# mkdir /usr/src/linux/include

This is only looking for trouble. You should not mess with files
managed by your package manager (dpkg). As a user you are only free to
create/copy files on your home or in /usr/local, any other location
should not be touched 
/usr/src/ should be fine too touch manually.[Though I am not convinced 
this solution is correct, nothing should be referencing kernel headers 
except for kernel modules which generally need the exact version, ie 
install the appropriate kernel-headers package and create a symlink to 
/usr/src/linux/]


signature.asc
Description: OpenPGP digital signature


Re: I have no /usr/src/linux/ sources

2004-09-18 Thread Andrea Vettorello
On Sat, 18 Sep 2004 06:10:46 -0700, Stefan O'Rear <[EMAIL PROTECTED]> wrote:
> On Sat, Sep 18, 2004 at 06:03:01AM -0700, Eric Dickner wrote:
> > I am trying to compile some .src.rpm files.  When
> > I try to do this they look for headers under the
> > /usr/src/linux link. I installed linux from CD's
> > originally and they didn't put anything there...I
> > don't even have that link.
> >
> > I downloaded a source kernel from kernel.org and many
> > of the instructions I found told me to put the source
> > there...BUT the readme from kernel.org specifically
> > told me NOT to put it there.  They said something
> > about how the source from the "kernel du jour" was not
> > what was supposed to be there.  Of course, I threw out
> > all those instructions on recompiling kernels and
> > followed the readme from those folks.
> >
> > As a result I still have nothing there except the RPM
> > directories.  Any effort to"make" the .rps results in
> > them looking for these headers.
> >
> > What am I missing here, besides these .h files?
> 
> Nothing.
> 
> How to cope:
> 
> # mkdir /usr/src/linux
> # mkdir /usr/src/linux/include
> 

This is only looking for trouble. You should not mess with files
managed by your package manager (dpkg). As a user you are only free to
create/copy files on your home or in /usr/local, any other location
should not be touched (if you use a lot of caution you can do it, but
i can assure you it's a very bad idea =). If you need some kernel
header files you'll probably find them installing kernel-headers
packages.

And manuals and documentation in general have their priority: follow
first the Debian if present, then the program documentation and last
the Howto. If something is in contrast with Debian documentation,
follow the Debian Way (TM)...


Andrea


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I have no /usr/src/linux/ sources

2004-09-18 Thread Eric Dickner

--- Stefan O'Rear <[EMAIL PROTECTED]> wrote:

> 
> Nothing.
> 
> How to cope:
> 
> 
> # mkdir /usr/src/linux
> # mkdir /usr/src/linux/include
> 
> Now the apps -I/usr/src/linux/include won't do
> anything, but they will
> still find the kernel headers because a set of
> known-good kernel
> headers is installed in /usr/include by libc6-dev.
> 
> -- 

Well, that's easy enough.  

I guess it's silly to point it out but it is things
like this that make linux hard to use.  Why isn't that
directory created and left empty upon installation?
Scrpits and makefiles from all over seem to want
things there.



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I have no /usr/src/linux/ sources

2004-09-18 Thread Stefan O'Rear
On Sat, Sep 18, 2004 at 06:03:01AM -0700, Eric Dickner wrote:
> I am trying to compile some .src.rpm files.  When
> I try to do this they look for headers under the
> /usr/src/linux link. I installed linux from CD's
> originally and they didn't put anything there...I
> don't even have that link.
> 
> I downloaded a source kernel from kernel.org and many
> of the instructions I found told me to put the source
> there...BUT the readme from kernel.org specifically
> told me NOT to put it there.  They said something
> about how the source from the "kernel du jour" was not
> what was supposed to be there.  Of course, I threw out
> all those instructions on recompiling kernels and
> followed the readme from those folks.
> 
> As a result I still have nothing there except the RPM
> directories.  Any effort to"make" the .rps results in
> them looking for these headers.
> 
> What am I missing here, besides these .h files?

Nothing.

How to cope:


# mkdir /usr/src/linux
# mkdir /usr/src/linux/include

Now the apps -I/usr/src/linux/include won't do anything, but they will
still find the kernel headers because a set of known-good kernel
headers is installed in /usr/include by libc6-dev.

-- 
The world's most effective spam filter:
ln -sf /dev/full /var/mail/$USER


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



I have no /usr/src/linux/ sources

2004-09-18 Thread Eric Dickner
I am trying to compile some .src.rpm files.  When
I try to do this they look for headers under the
/usr/src/linux link. I installed linux from CD's
originally and they didn't put anything there...I
don't even have that link.

I downloaded a source kernel from kernel.org and many
of the instructions I found told me to put the source
there...BUT the readme from kernel.org specifically
told me NOT to put it there.  They said something
about how the source from the "kernel du jour" was not
what was supposed to be there.  Of course, I threw out
all those instructions on recompiling kernels and
followed the readme from those folks.

As a result I still have nothing there except the RPM
directories.  Any effort to"make" the .rps results in
them looking for these headers.

What am I missing here, besides these .h files?




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Linux Sources

2001-07-28 Thread Joost Kooij
On Sat, Jul 28, 2001 at 04:25:55PM -0400, [EMAIL PROTECTED] wrote:
> I downloaded a copy of the Linux 2.4.7 sources as a tar-gz file, and I 
> suppose I need to install them into /usr/src. However, the tar-gz's contents 
> are not at all indicative of that, and doing a make config just gives me a 
> bunch of questions to set up a kernel. Do I just make a kernel from this dir 
> I'm working from, or do the files need to be in /usr/src?

Install kernel-package and read all the files in /usr/doc/kernel-package.

Cheers,


Joost



Re: Linux Sources

2001-07-28 Thread Karsten M. Self
on Sat, Jul 28, 2001 at 10:44:56PM +0200, J.H.M. Dassen (Ray) ([EMAIL 
PROTECTED]) wrote:
> On Sat, Jul 28, 2001 at 16:25:55 -0400, [EMAIL PROTECTED] wrote:
> > I downloaded a copy of the Linux 2.4.7 sources as a tar-gz file, and I 
> > suppose I need to install them into /usr/src. However, the tar-gz's 
> > contents 
> > are not at all indicative of that, and doing a make config just gives me a 
> > bunch of questions to set up a kernel.
> 
> It doesn't really matter where you extract the kernel sources. /usr/src is
> the traditional location, but /usr/src is under control of the package
> management system, so I wouldn't recommend it anymore. Personally, I use
> /usr/local/src.

The package management system will copy kernel sources (as a compressed
tarball) to /usr/src.  It won't populate subdirectories.  You have to
uncompress the archives manually.  For practical purposes, /usr/src is
_largely_ under local control.

Among the advantages of using /usr/src is that /usr/src/linux (usually a
symlink to the appropriate source version) is where things like kernel
headers (occasionally useful) are sought.

A sample /usr/src directory:

config.1999.10.12
config.2417
config.2902
config.2902.old
defconfig.19991021.b
kernel-doc-2.2.14_custom.1.0_all.deb
kernel-doc-2.2.17_1_all.deb
kernel-headers-2.2.14_custom.1.0_i386.deb
kernel-headers-2.2.17/
kernel-headers-2.2.17_1_i386.deb
kernel-image-2.2.14_custom.1.0_i386.deb
kernel-image-2.2.17_1_i386.deb
kernel-patches/
kernel-source-2.2.14_custom.1.0_all.deb
kernel-source-2.2.17/
kernel-source-2.2.17_1_all.deb
kernel-source-2.2.17.tar.bz2
linux@
lost+found/
rpm/

and:

   lrwxrwxrwx [...] /usr/src/linux -> kernel-source-2.2.17

Cheers.

-- 
Karsten M. Self   http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand? There is no K5 cabal
  http://gestalt-system.sourceforge.net/   http://www.kuro5hin.org
Free Dmitry!! Boycott Adobe!! Repeal the DMCA!!  http://www.freedmitry.org


pgpFuDbAJcz1o.pgp
Description: PGP signature


Re: Linux Sources

2001-07-28 Thread J.H.M. Dassen \(Ray\)
On Sat, Jul 28, 2001 at 16:25:55 -0400, [EMAIL PROTECTED] wrote:
> I downloaded a copy of the Linux 2.4.7 sources as a tar-gz file, and I 
> suppose I need to install them into /usr/src. However, the tar-gz's contents 
> are not at all indicative of that, and doing a make config just gives me a 
> bunch of questions to set up a kernel.

It doesn't really matter where you extract the kernel sources. /usr/src is
the traditional location, but /usr/src is under control of the package
management system, so I wouldn't recommend it anymore. Personally, I use
/usr/local/src.

Ray
-- 
RUMOUR  Believe all you hear. Your world may  not be a better one than the one
the blocks  live in but it'll be a sight more vivid.  
- The Hipcrime Vocab by Chad C. Mulligan  



Linux Sources

2001-07-28 Thread JakeCatfox
I downloaded a copy of the Linux 2.4.7 sources as a tar-gz file, and I 
suppose I need to install them into /usr/src. However, the tar-gz's contents 
are not at all indicative of that, and doing a make config just gives me a 
bunch of questions to set up a kernel. Do I just make a kernel from this dir 
I'm working from, or do the files need to be in /usr/src?