LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-15-2007, 01:58 PM   #16
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126

Quote:
I downloaded this file (right file?) to the /usr/src directory:

linux-image-2.6.15-28-386_2.6.15-28.51_i386.deb
So, have you now decided to make your own kernel? A linux-image is the complete source code for the kernel. I really don't think this is what you want. Why didn't you run the command I asked you to run? Generally, we do not manually expand .deb files. If this is what you've been doing, then this is probably the root of your problem. In the normal case of things, unless you really know what you're doing, you install a deb file with the command "dpkg -i whatever.deb". But, the download and installation are both done by the aptitude program.

Please run this and forget about expanding debs yourself for now.
Code:
sudo aptitude install linux-headers-`uname -r`
 
Old 02-15-2007, 02:29 PM   #17
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
Hi,

No I dont want to make this more confusing than it already is. I did the the command:

Code:
sudo aptitude install linux-headers-`uname -r`
And it finished with no errors. And after running that command succesfully for the first time I have two directories sitting in /usr/src :

linux-headers-2.6.15-26
linux-headers-2.6.15-26-386

I was very happy to see them there. But the make command run from /madwifi blew up again with:

Code:
Makefile.inc:113: *** KERNELPATH: /usr/src/linux-2.6.15-26-386 does not exist. Stop.
My assumption is there is something the make process wants to get to the source kernel files and so I put a copy of them there so make could use what it needed. In other words, a complete stab in the dark. But hey I am in my experimental phase.

Nonetheless make wont run and I am getting a few gray hairs.

Keeping a stiff upper lip,

Pete
 
Old 02-15-2007, 02:37 PM   #18
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
/me takes a short timeout to scream and pull out a couple handfulls of hair.

hmm, hmm, hmm. I'm kinda running out of steam, here. Something must have happened to your /lib/modules as a result of the other stuff you did. Let's try this, then. Run this and tell me where the build directory is pointing. It should be pointing at the linux-headers directory that matches uname -r.
Code:
ls -l /lib/modules/`uname -r`
Added:
Tell me where the source directory points, too.

Last edited by Quakeboy02; 02-15-2007 at 02:39 PM.
 
Old 02-15-2007, 04:14 PM   #19
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
OK here is the output of that command:

pete@pete-laptop:~$ ls -l /lib/modules/`uname r`
uname: extra operand `r'
Try `uname --help' for more information.
total 8
drwxr-xr-x 7 root root 4096 2007-02-15 10:34 2.6.15-26-386
drwxr-xr-x 7 root root 4096 2007-02-15 10:30 2.6.15-28-386
pete@pete-laptop:~$ ls -l /lib/modules/`uname -r`
total 1444
lrwxrwxrwx 1 root root 28 2007-02-15 10:30 build -> /usr/src/linux-2.6.15-2 8-386
drwxr-xr-x 2 root root 4096 2007-02-15 09:09 initrd
drwxr-xr-x 10 root root 4096 2007-02-15 09:09 kernel
drwxr-xr-x 2 root root 4096 2007-02-15 09:09 madwifi
drwxr-xr-x 2 root root 4096 2007-02-15 09:09 madwifi-ng
-rw-r--r-- 1 root root 311377 2007-02-15 09:13 modules.alias
-rw-r--r-- 1 root root 69 2007-02-15 09:13 modules.ccwmap
-rw-r--r-- 1 root root 317394 2007-02-15 09:13 modules.dep
-rw-r--r-- 1 root root 813 2007-02-15 09:13 modules.ieee1394map
-rw-r--r-- 1 root root 806 2007-02-15 09:13 modules.inputmap
-rw-r--r-- 1 root root 21795 2007-02-15 09:13 modules.isapnpmap
-rw-r--r-- 1 root root 74 2007-02-15 09:13 modules.ofmap
-rw-r--r-- 1 root root 251714 2007-02-15 09:13 modules.pcimap
-rw-r--r-- 1 root root 1135 2007-02-15 09:13 modules.seriomap
-rw-r--r-- 1 root root 141140 2007-02-15 09:13 modules.symbols
-rw-r--r-- 1 root root 363094 2007-02-15 09:13 modules.usbmap
drwxr-xr-x 2 root root 440 2007-02-15 21:14 volatile
pete@pete-laptop:~$

I want you to notice something in the first line that has a error message. Notice that the command looks correct. But the difference in icredibly small. Originally I had copied your command stright into the command line and BOOM it failed. I then replaced your - stroke with my keyboards - stroke and viola the command worked. They look the same but the machine does not interpret them equally.

It may be nothing but it may be why nothing installed correctly from the beginning. My keyboard is Spanish.

Thanks
 
Old 02-15-2007, 04:34 PM   #20
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
There error when making madwifi is:
Code:
Makefile.inc:113: *** KERNELPATH: /usr/src/linux-2.6.15-26-386 does not exist. Stop.
What you have installed points to a different directory:
Code:
lrwxrwxrwx 1 root root 28 2007-02-15 10:30 build -> /usr/src/linux-2.6.15-2 8-386
(Can I assume that the space in "2 8" is a typing mistake?)

In other words, the madwifi error is correct. It can't find what it thinks should be the correct source (i.e. that from uname -r) because your /lib/modules points to something else. If it were me, I'd just correct it by hand. I'm not quite sure what to tell you to do, though, because I'd hate for you to bork your installation completely by accident.

What to do? I think that an aptitude reinstall of the linux-header package *might* fix it. The thing is that I'm not sure if you have "linux-2.6.15-28-386" installed or "linux-2.6.15-26-386" or what. aptitude has a search feature. Could you use that to see what is actually installed at this point? It might be easier to use the synaptic package manager. I've started using that for loading and unloading packages. The "correct" thing to do depends on what is actually installed that's borking this.

"I then replaced your - stroke with my keyboards - stroke and viola the command worked. They look the same but the machine does not interpret them equally.

It may be nothing but it may be why nothing installed correctly from the beginning. My keyboard is Spanish."

Well, I'll be damned. Thanks for clearing that up. This has been a big mystery to me from the beginning.

I've got to go grocery shopping, so it'll be awhile till I can get back to this, as we've got a bit of a snow problem up here. But, I'm not deserting you.
 
Old 02-15-2007, 05:07 PM   #21
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
---(Can I assume that the space in "2 8" is a typing mistake?)

Yes, this must be from a copy/paste error.

---If it were me, I'd just correct it by hand.

No problem. Lets try it. But how do I do it? If it all goes up in smoke, I dont mind. All part of my break-in with LINUX. Actually years ago I built an IP Tables firewall complete with FreeSwan and as I remember it was not as tough as this. But then again my command line Kung-Fu has waned due to overuse of a different OS.

---Could you use that to see what is actually installed at this point?

I did a search for Kernel on the file system and among other things found were these:

/lib/modules/2.6.15-26-386/kernel
/lib/modules/2.6.15-26-386/kernel/arch/i386/kernel

Also I did a uname -r and it returned:

Code:
pete@pete-laptop:~$ uname -r
2.6.15-28-386
So it would seem there is some conflict.


---I've got to go grocery shopping, so it'll be awhile till I can get back to this, as we've got a bit of a snow problem up here. But, I'm not deserting you.[/QUOTE]

You rock. And dont forget the salt from the sidewalk.

Pete
 
Old 02-15-2007, 07:09 PM   #22
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
"No problem. Lets try it." Said the fly to the spider.

OK, "uname -r" tells you that your kernel is actually 2.6.15-28-386. If I'm understanding what you inadvertently posted above, you have both a 2.6.15-26-386 kernel and a 2.6-15-28-386 kernel. So, grub gives you a choice of two different multi-user kernels. Right? If not, let me know.

So, instead of banging on your /lib/modules, what you really need to do is install the proper linux-headers package. It still boils down to "sudo aptitude install linux-headers-`uname -r`", except that you have to use the proper "-" from your keyboard. Give that a try and see what happens. If necessary, just type in "sudo install linux-headers-2.6.15-28-386".


Wait a minute. Did you accidentally install a new kernel as part of trying to get the linux-headers installed? Is that where the problem lies?


"You rock."

Bah, I'm an surly, argumentative, curmudgeonly old bastard, and everyone knows it. But thanks.
 
Old 02-16-2007, 05:17 AM   #23
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
Quakeboy02,

---If necessary, just type in "sudo install linux-headers-2.6.15-28-386".

I did and it downmoaded some modules. I than ran make and BA BOOM....no problems. It finished. I did a make install and no problems as well. Can I now safely say I have my wifi drivers installed?

I would like to elect Quakeboy02 as King of Newbie Questions and give him the Prince of Patience Award 2006/07. I could not have gotten this done alone.

But one more time I will ask:

Does anyone know of a good book for Linux Newbies who want to really get into the deep end of pool?

I will continue onward with this install and will post my findings:

[HTML]http://www.pauldotcom.com/karmaUbuntu.pdf[/HTML]
 
Old 02-16-2007, 12:54 PM   #24
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
"Can I now safely say I have my wifi drivers installed?"

Did you run "modprobe ath_pci"? If that ran successfully, then madwifi is installed and working.
 
Old 02-16-2007, 07:09 PM   #25
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
---Did you run "modprobe ath_pci"? If that ran successfully, then madwifi is installed and working.---


Yes I did, and it run with no output which I would assume means it ran OK.


I also ran ifconfig and got this for the Wifi Card:

pete@pete-laptop:~$ ifconfig
ath0 Link encap:Ethernet HWaddr 00:20:A6:60:85:F4
inet6 addr: fe80::220:a6ff:fe60:85f4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:62 dropped:0 overruns:0 frame:62
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Memory:d0d20000-d0d30000

I guess I am ready to start with the rest of the documentation and my next project will be to intall Kismet.

Thanks a million again and if you can give me a good book title that would be great. Hopefully in a year or two I will be able to return the favor to someone who is a little wet behind the ears.

Your humble servent,

Pete
 
Old 02-16-2007, 07:24 PM   #26
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
"I guess I am ready to start with the rest of the documentation and my next project will be to intall Kismet."

Kismet? Please don't tell me that I went through all this effort to help someone steal wireless from his neighbors!
 
Old 02-17-2007, 05:49 AM   #27
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
Relax...relax. I have been put in charge of putting together a few demonstrations for my company. There a very few companies in Madrid in the security space. And there is an incredible need because 99% of companies using wireless are using WEP and even some have open access. You could own Madrid pretty easily.

So my boss has an idea to put together a pen-testing package for potential clients. Part of the dog and pony show would be showing them a few exploits to get thier attention. You know kind of like putting the fear of God in them. Karma is one exploit, and seeing it work made me want to yank every piece of wireless equipment we have deployed at client sites.

And on a personal level I needed a challenge. The other operating system was turning me into a click master and I knew if I wanted to get into security LINUX was the only way to go.

So dont worry. You have contributed to a worthy cause and for that, I thank you.

Pete
 
  


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
Madwifi won't make in Etch 1madstork Debian 4 05-18-2006 01:11 PM
Cannot 'make' in madwifi directory Katlyn Linux - Software 11 03-11-2006 04:44 AM
Madwifi make error coderasm Linux - Wireless Networking 1 01-12-2006 09:45 PM
MadWiFi make errors PhilHalf Linux - Newbie 1 07-07-2005 04:24 AM
Madwifi make problem... EduFer Linux - Hardware 7 04-22-2004 08:24 PM


All times are GMT -5. The time now is 09:02 PM.

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