Linux Debian support - Newbie question: nothing in /usr/src

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > August 2005 > Newbie question: nothing in /usr/src





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Newbie question: nothing in /usr/src
Teilhard Knight

2005-08-01, 5:47 pm

Hello:

I have a little experience with Mandrake and none with Debian (I am using
Debian 3.1r0a-i386). I need to compile the drivers for my wireless adapter.
For that I need what in Mandrake would be called the kernel-source which
would place a directory in /usr/src like "linux-"uname -r"". at the moment
/usr/src is empty. I tried to make a "make menuconfig" and it fails because
it does not find the Makefile in /usr/src/linux ....... What is the
corresponding package in debian I should install? I had a look at all the
packages but none ring the bell. Thanks.

Teilhard.


Bill Marcum

2005-08-01, 5:47 pm

On Mon, 1 Aug 2005 12:39:26 -0500, Teilhard Knight
<teilhk@privacy.net> wrote:
> Hello:
>
> I have a little experience with Mandrake and none with Debian (I am using
> Debian 3.1r0a-i386). I need to compile the drivers for my wireless adapter.
> For that I need what in Mandrake would be called the kernel-source which
> would place a directory in /usr/src like "linux-"uname -r"". at the moment
> /usr/src is empty. I tried to make a "make menuconfig" and it fails because
> it does not find the Makefile in /usr/src/linux ....... What is the
> corresponding package in debian I should install? I had a look at all the
> packages but none ring the bell. Thanks.
>

apt-get install kernel-source-[version]
For newer kernel versions, the package name might be
linux-source-[version]


--
Tonight you will pay the wages of sin; Don't forget to leave a tip.
Teilhard Knight

2005-08-01, 5:47 pm

"Bill Marcum" <bmarcum@iglou.com.urgent> wrote in message
news:2352s2-ac3.ln1@don.localnet...
> On Mon, 1 Aug 2005 12:39:26 -0500, Teilhard Knight
> <teilhk@privacy.net> wrote:
> apt-get install kernel-source-[version]
> For newer kernel versions, the package name might be
> linux-source-[version]


"uname -r" is for me: 2.6.8-2-686-smp, and the Synaptic Package Manager says
I have the kernel-image version 2.6.8-16. I have tried with 2.6.8-2, with
2.6.8-16, and many other versions and the system responds it doesn't find a
package "kernel-source-[version] or linux-source-[version]. I have had a
look at all packages in the list, which I suppose are the ones contained in
the CDs, and there is not a package named kernel-source... or
linux-source.....Do I have to do this in Internet?

Teilhard.


gregor herrmann

2005-08-01, 5:47 pm

On Mon, 1 Aug 2005 16:57:50 -0500, Teilhard Knight wrote:

> "uname -r" is for me: 2.6.8-2-686-smp, and the Synaptic Package Manager says
> I have the kernel-image version 2.6.8-16.


The source package is 'kernel-source-2.6.8'.

> I have had a
> look at all packages in the list, which I suppose are the ones contained in
> the CDs, and there is not a package named kernel-source... or
> linux-source...Do I have to do this in Internet?


Take a look at /etc/apt/sources.list
If there are no "deb-src ..." lines you will have to add some.

gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : infos zur usenet-hierarchie at.*: http://www.usenet.at/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`-
John Hasler

2005-08-01, 5:47 pm

Teilhard writes:
> I have tried with 2.6.8-2, with 2.6.8-16, and many other versions and the
> system responds it doesn't find a package "kernel-source-[version] or
> linux-source-[version].


Try 'apt-cache search kernel-source-2.6.8'. The '-2' is the Debian version
and is not part of the package name.

BTW starting with 2.6.12 the Debian Linux kernel packages are named
'linux-source' rather than 'kernel source'. This is due to the advent of
the Hurd and BSD ports.

--
John Hasler
John Hasler

2005-08-01, 5:47 pm

gregor writes:
> Take a look at /etc/apt/sources.list If there are no "deb-src ..." lines
> you will have to add some.


The kernel-source packages are regular packages containing the kernel
source.

--
John Hasler
Teilhard Knight

2005-08-02, 2:51 am

"gregor herrmann" <gregor+usenet-0402@comodo.priv.at> wrote in message
news:q8j2s2-n9p.ln1@news.comodo.priv.at...
> On Mon, 1 Aug 2005 16:57:50 -0500, Teilhard Knight wrote:
>
>
> The source package is 'kernel-source-2.6.8'.
>
>
> Take a look at /etc/apt/sources.list
> If there are no "deb-src ..." lines you will have to add some.


Thanks a lot. I have first of all to see how do I get Internet in my box. I
connected a direct cable from my ADSL modem to the computer, but the PPPoE
configurator says there is no connection. I was trying to do a little
research in Internet about ADSL LAN in Debian, and I read someone had to
load the drivers for his Ethernet card, and for that I suppose I need the
kernel source. I do not know where I stand because Debian doesn't even
recognize a flash disk which is what one way of loading drivers and packages
so that everything starts working. I suppose I'll have to burn a CD to load
the kernel-source, I do not see other way. Any advise?

Teilhard.


Teilhard Knight

2005-08-02, 2:51 am

"John Hasler" <jhasler@debian.org> wrote in message
news:871x5dp9wa.fsf@toncho.dhh.gt.org...
> gregor writes:
>
> The kernel-source packages are regular packages containing the kernel
> source.


I know that much. But they are needed to compile things.

Teilhard.


Teilhard Knight

2005-08-02, 2:51 am

"John Hasler" <jhasler@debian.org> wrote in message
news:8764uppa62.fsf@toncho.dhh.gt.org...
> Teilhard writes:
>
> Try 'apt-cache search kernel-source-2.6.8'. The '-2' is the Debian
> version
> and is not part of the package name.
>
> BTW starting with 2.6.12 the Debian Linux kernel packages are named
> 'linux-source' rather than 'kernel source'. This is due to the advent of
> the Hurd and BSD ports.


Thanks for the info. Please read the response to Gregor to see my dilemma.
Nothing works in my installation. Well, I will not start whining.

Teilhard.


Jon

2005-08-02, 2:51 am

Teilhard Knight wrote:

> "Bill Marcum" <bmarcum@iglou.com.urgent> wrote in message
> news:2352s2-ac3.ln1@don.localnet...
>
> "uname -r" is for me: 2.6.8-2-686-smp, and the Synaptic Package Manager says
> I have the kernel-image version 2.6.8-16. I have tried with 2.6.8-2, with
> 2.6.8-16, and many other versions and the system responds it doesn't find a
> package "kernel-source-[version] or linux-source-[version]. I have had a
> look at all packages in the list, which I suppose are the ones contained in
> the CDs, and there is not a package named kernel-source... or
> linux-source.....Do I have to do this in Internet?
>
> Teilhard.


penguin@insomniac:~$ apt-cache search kernel-source | grep 2.6.8
kernel-patch-debian-2.6.8 - Debian patches to Linux 2.6.8
kernel-source-2.6.8 - Linux kernel source for version 2.6.8 with Debian patches
kernel-tree-2.6.8 - Linux kernel source tree for building Debian kernel images
penguin@insomniac:~$

Install kernel-source-2.6.8 (apt-get install kernel-source-2.6.8). This will
download it to /usr/src. From there just untar it.

I had a similar issue when starting to use Debian with Woody. My kernel was
2.4.28-bf24 but I couldn't find it anywhere. I ended up installing the 2.4.28
kernel-source package and that did the trick ;)

Hope that helps,
--
Jon
jon@watcher.net.nz
John Hasler

2005-08-03, 5:47 pm

Teilhard Knight writes:
> Thanks a lot. I have first of all to see how do I get Internet in my box.


Generally by running pppoeconf as root.

> I connected a direct cable from my ADSL modem to the computer, but the
> PPPoE configurator says there is no connection.


Tell us _exactly_ what you did and _exactly_ what happened. Copy all
commands and messages verbatim.

> I was trying to do a little research in Internet about ADSL LAN in
> Debian, and I read someone had to load the drivers for his Ethernet card,
> and for that I suppose I need the kernel source.


Not likely. You almost certainly already have the driver.
--
John Hasler
Teilhard Knight

2005-08-04, 5:50 pm

"John Hasler" <jhasler@debian.org> wrote in message
news:873bprkqd9.fsf@toncho.dhh.gt.org...
> Teilhard Knight writes:
>
> Generally by running pppoeconf as root.



Thank you for offering to help. I just run pppoeconf as root and the program
detects my Ethernet card all right as eth0. Then it tries to connect with
the modem and I finally get the message: "Sorry, I scanned 1 interface, but
the Access Concentrator of your provider did not respond". After instructing
to check cables and so on, it says: "Another reason for the scan failure may
also another running process which controls the modem." Of course there are
another running processes controlling the modem. It is a wireless
router-modem with the option to connect 4 wired computers to it. At the
moment I have two wired computers and four wireless computers. The computer
I am working on, works wireless in Mandrake and Windows XP, and I am trying
to make it work wireless in Debian. The cable is only for having Internet
connection to download all what is necessary to make my wireless adapter to
work.


>
> Tell us _exactly_ what you did and _exactly_ what happened. Copy all
> commands and messages verbatim.



I just plugged the cable (the led lit) and ran the PPPOE KDE configurator. I
get the same result as above.


>
> Not likely. You almost certainly already have the driver.



Yes, I think so, because pppoeconf detects my card.

I think the problem is the type of router-modem I have. What do you do with
such modems?

Teilhard.


John Hasler

2005-08-05, 5:48 pm

Teilhard Knight writes:
> Of course there are another running processes controlling the modem. It
> is a wireless router-modem with the option to connect 4 wired computers
> to it.


Then why are you trying to run pppoe? The router is already doing that.
You probably just need a DHCP client.
--
John Hasler
Teilhard Knight

2005-08-06, 7:46 am

"John Hasler" <jhasler@debian.org> wrote in message
news:87acjwfc7g.fsf@toncho.dhh.gt.org...
> Teilhard Knight writes:
>
> Then why are you trying to run pppoe? The router is already doing that.
> You probably just need a DHCP client.


A DHCP client like what?

Teilhard.


Teilhard Knight

2005-08-06, 7:46 am

"John Hasler" <jhasler@debian.org> wrote in message
news:87acjwfc7g.fsf@toncho.dhh.gt.org...
> Teilhard Knight writes:
>
> Then why are you trying to run pppoe? The router is already doing that.
> You probably just need a DHCP client.


A DHCP client like what?

Teilhard.



Tim

2005-08-06, 5:46 pm

In alt.os.linux.debian Teilhard Knight wrote:

> A DHCP client like what?
>


You should find several when you run the following command:

apt-cache search "dhcp client"

--
Tim <alt.os.linux@gmail.com>
Al Krieger

2005-08-07, 2:46 am

Teilhard Knight wrote:

> "John Hasler" <jhasler@debian.org> wrote in message
> news:87acjwfc7g.fsf@toncho.dhh.gt.org...
>
> A DHCP client like what?
>
> Teilhard.

How about dhcp-client ?
--
askrieger(at)rcn(dot)com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com