LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   air crack (https://www.linuxquestions.org/questions/linux-software-2/air-crack-633215/)

D-NO86 04-05-2008 04:16 AM

air crack
 
hello im using fedora 8 and have been trying to install aircrack im haveing a bit of truble
i know before you can install air crack you need to have patched the driver for injection and before you can do that you need to have installed the Kernel headers and source.
I have allready instaled the kernel headers im haveing a bit of trouble with the source
i have tryed a number of tutorials i seem to be falling at the same herald

1.Prepare a RPM package building environment in your home directory. Run the following command:

rpmdev-setuptree


2.Download the kernel-<version>.src.rpm file. Enable the appropriate source repositories with the --enablerepo switch.

yumdownloader --source kernel

3.Install build dependencies for the kernel source with the yum-builddep command (root is required to install these packages):

su -c 'yum-builddep kernel-<version>.src.rpm'


steps 1 and 2 went fine its step 3 where im having the problem
when i imput command 3 it says no surh folder

any help would be good
thanks :)

b0uncer 04-05-2008 04:51 AM

Quote:

su -c 'yum-builddep kernel-<version>.src.rpm'
You surely replaced the <version> above with the actual version number (that you can get by running uname -r in console)?

EDIT: that means, in short, that you should try to run
Code:

su -c "yum-builddep kernel-`uname -r`.src.rpm"
if I'm not mistaken. Not sure if sudo accepts the "" quotes instead of '' quotes, but have a try..if it does not, just run 'uname -r' and place the version from there into the sudo command manually.

p.s. you could install the kernel source just by downloading the .tar.gz and extracting it somewhere, but of course it's easier to upgrade along the real kernel trough yum if you go trough the steps you mentioned (I encourage doing so).

D-NO86 04-05-2008 05:20 AM

thanks for the reply much appreciated
i tryed what you sead it worked but i got an error look:

[D-NO@localhost ~]$ uname -r
2.6.23.1-42.fc8
[D-NO@localhost ~]$ su -c "yum-builddep kernel-2.6.23.1-42.fc8.src.rpm"
Password:
updates 100% |=========================| 2.3 kB 00:00
Traceback (most recent call last):
File "/usr/bin/yum-builddep", line 139, in <module>
util = YumBuildDep()
File "/usr/bin/yum-builddep", line 41, in __init__
self.main()
File "/usr/bin/yum-builddep", line 66, in main
self.get_build_deps()
File "/usr/bin/yum-builddep", line 109, in get_build_deps
srpms.append(yum.packages.YumLocalPackage(self.ts, arg))
File "/usr/lib/python2.5/site-packages/yum/packages.py", line 777, in __init__
'Could not open local rpm file: %s' % self.localpath
yum.Errors.MiscError: Could not open local rpm file: kernel-2.6.23.1-42.fc8.src.rpm


any ideas?

Junior Hacker 04-05-2008 03:48 PM

In Fedora, normally all I do is install kernel-devel package with yum which will also install all dependencies needed for compiling modules. It's a heck of a lot simpler and cleaner than what you're doing.

BallsOfSteel 04-05-2008 04:24 PM

I'm not completely positive, as I have no use for it, but I think aircrack-ng is available in the repositories. Try the command
Code:

yum -y install aircrack-ng
See what that returns.

Regards

edit: As far as getting a patched driver for your wireless card, you'd have to check that against what the aircrack-ng site says, or go to mad-wifi.org (I think that's the site).


All times are GMT -5. The time now is 03:24 AM.