Git Product home page Git Product logo

hostapd's Introduction

This is a script to compile, patch and pack hostapd deamon from sources. It can be used as a drop-in replacement for Debian and Ubuntu based distributions.

Add/review patches in patch/

sudo apt-get -y install git
cd ~
git clone https://github.com/igorpecovnik/hostapd	
cd hostapd
./go.sh

hostapd's People

Contributors

igorpecovnik avatar trustfarm-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hostapd's Issues

E: Unable to correct problems, you have held broken packages.

hello,

I have an error at the time Downloading dependencies.

root@orangepipc:~/hostapd# ./go.sh
[ o.k. ] Building hostapd
[ o.k. ] Downloading dependencies.
E: Unable to correct problems, you have held broken packages.
Outside chroot
[ o.k. ] Updating sources.
[ o.k. ] Compiling v2.5 for Realteks.
[ o.k. ] Compiling v2.5.
[ err. ] hostapd not built.

Here is my distrib

Armbian_5.26_Orangepipc_Debian_jessie_3.4.113

Realized order

cd /usr/src/linux-headers-3.4.113-sun8i/
make scripts
apt-get update && apt-get upgrade
git clone https://github.com/igorpecovnik/hostapd
chmod +x ./hostapd/go.sh
cd hostapd
root@orangepipc:~/hostapd# ./go.sh
[ o.k. ] Building hostapd
[ o.k. ] Downloading dependencies.
E: Unable to correct problems, you have held broken packages.
Outside chroot
[ o.k. ] Updating sources.
[ o.k. ] Compiling v2.5 for Realteks.
[ o.k. ] Compiling v2.5.
[ err. ] hostapd not built.

do you have an idea ?

do it work on kali linx?

i have the latest version of kali linux with the alfa AWUS036ACH wifi usb adapter.
because of hostapd i think im not sure if i create AP i cannot connect to it but i can create ap with wlan0 the alfa is on wlan1 so if i install this will it work and can i create AP successfully?

Compile Fails

root@alienware:~/hostapd# ./go.sh
[ o.k. ] Building hostapd
[ o.k. ] Downloading dependencies.
[ o.k. ] Updating sources.
[ o.k. ] Compiling v2.5.
dpkg-deb: error: failed to read archive '/var/cache/apt/archives/hostapd*': No such file or directory
./go.sh: line 94: hostapd-custom_1.1_amd64/DEBIAN/control: No such file or directory
cp: target 'hostapd-custom_1.1_amd64/usr/sbin' is not a directory
cp: target 'hostapd-custom_1.1_amd64/etc' is not a directory
./go.sh: line 110: cd: hostapd-custom_1.1_amd64: No such file or directory
./go.sh: line 111: DEBIAN/md5sums: No such file or directory
[ o.k. ] All done. Hostapd is packed into: hostapd-custom_1.1_amd64.deb
[ o.k. ] Compiling v2.5 realtek.
dpkg-deb: error: failed to read archive '/var/cache/apt/archives/hostapd*': No such file or directory
./go.sh: line 94: hostapd-custom-realtek_1.1_amd64/DEBIAN/control: No such file or directory
cp: target 'hostapd-custom-realtek_1.1_amd64/usr/sbin' is not a directory
cp: target 'hostapd-custom-realtek_1.1_amd64/etc' is not a directory
./go.sh: line 110: cd: hostapd-custom-realtek_1.1_amd64: No such file or directory
./go.sh: line 111: DEBIAN/md5sums: No such file or directory
[ o.k. ] All done. Hostapd is packed into: hostapd-custom-realtek_1.1_amd64.deb

ls reveals 0 files from the failed compile

Minor tweaks to compile on my i386

First of all - thanks for your time!
To compile successfully on my i386 system I made the following tweaks to go.sh:
added apt-get install gcc pkg-config
changed arch from arm to i386
And uninstalled stock version of ubuntu hostapd.
After this changes I managed to compile and run latest stable hostapd with noscan patch.
Thanks again!

Dependency Issues

root@base-Rpi3B:~/hostapd # apt-get install build-essential pkg-config libnl-3-dev libssl-dev libnl-genl-3-dev patchutils libnl* -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libnl-cli-3-dev' for glob 'libnl*'
Note, selecting 'libnl-route-3-200' for glob 'libnl*'
Note, selecting 'libnl3-dev' for glob 'libnl*'
Note, selecting 'libnl-route-3-dev' for glob 'libnl*'
Note, selecting 'libnlopt-guile0' for glob 'libnl*'
Note, selecting 'libnl-genl-3-200' for glob 'libnl*'
Note, selecting 'libnl-utils' for glob 'libnl*'
Note, selecting 'libnl-dev' for glob 'libnl*'
Note, selecting 'libnl-doc' for glob 'libnl*'
Note, selecting 'libnl-3-200-dbg' for glob 'libnl*'
Note, selecting 'libnl-idiag-3-200' for glob 'libnl*'
Note, selecting 'libnl-genl-3-dev' for glob 'libnl*'
Note, selecting 'libnlopt-dev' for glob 'libnl*'
Note, selecting 'libnl1' for glob 'libnl*'
Note, selecting 'libnl2' for glob 'libnl*'
Note, selecting 'libnl-nf-3-200' for glob 'libnl*'
Note, selecting 'libnl-idiag-3-dev' for glob 'libnl*'
Note, selecting 'libnlopt0' for glob 'libnl*'
Note, selecting 'libnl-nf-3-dev' for glob 'libnl*'
Note, selecting 'libnl-3-200' for glob 'libnl*'
Note, selecting 'libnl2-dbg' for glob 'libnl*'
Note, selecting 'libnl2-dev' for glob 'libnl*'
Note, selecting 'libnl2-doc' for glob 'libnl*'
Note, selecting 'libnl-3-dev' for glob 'libnl*'
Note, selecting 'libnl-xfrm-3-200' for glob 'libnl*'
Note, selecting 'libnl-cli-3-200' for glob 'libnl*'
Note, selecting 'libnl-xfrm-3-dev' for glob 'libnl*'
build-essential is already the newest version (12.3).
libnl-3-200 is already the newest version (3.2.27-2).
libnl-3-200 set to manually installed.
libnl-genl-3-200 is already the newest version (3.2.27-2).
libnl-genl-3-200 set to manually installed.
libnl-route-3-200 is already the newest version (3.2.27-2).
libnl-route-3-200 set to manually installed.
patchutils is already the newest version (0.3.4-2).
pkg-config is already the newest version (0.29-4).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libnl-3-dev : Conflicts: libnl-dev but 1.1-8 is to be installed
Conflicts: libnl2-dev but 2.0-1 is to be installed
libnl2-dev : Conflicts: libnl-dev but 1.1-8 is to be installed
E: Unable to correct problems, you have held broken packages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.