Error with hostapd-mana link

Hi

Im new on Manjaro and others Archlinux based distributions.I want to adapt a kali-linux tool on Manjaro.

So i try to use berate-ap from AUR :

https://aur.archlinux.org/packages/berate_ap-git

I can start it with :

berate_ap -h

I see a lot of settings but i can’t use them.For example when i try this command :

berate_ap --mana-loud -n --redirect-to-localhost --ieee80211n -g 192.168.1.1 wlp3s0 -c 11 Testing

I get this error :

which: no hostapd-mana in (/home/koala/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin)
ERROR: hostapd-mana not found please link to or add hostapd-mana to your path.

I installed hostapd-mana from AUR :

https://aur.archlinux.org/packages/hostapd-mana-git

In the official berate-ap github they say :

This script requires hostapd-mana to be in the path.
This may be done by adding the binary to your path directly:

export PATH="$PATH:/path/to/hostapd-mana"

To make this permanent you may add to your shells .rc file
or you may link hostapd-mana into a directory that is within your path:

cd /usr/bin
sudo ln -s /path/to/hostapd-mana hostapd-mana

When i go to /usr/bin there is no hostapd-mana-git but with pacman -Qm i can see the hostapd-mana-git package is installed on my system and his location is on :

/home/koala/hostapd-mana-git

ls
hostapd-mana                                            pkg       service
hostapd-mana-git-20230803.bd6114d-1-x86_64.pkg.tar.zst  PKGBUILD  src

How i can find and create the path to link berate-ap to hostapd-mana-git ?

I hope this post is sufficiently clear to understand the issue.

Thanks

??
Maybe you mean to use

pacman -Ql hostapd-mana-git

Thanks i didn’t know this command.Here is the output of :

pacman -Ql hostapd-mana-git

hostapd-mana-git /etc/
hostapd-mana-git /etc/hostapd/
hostapd-mana-git /usr/
hostapd-mana-git /usr/bin/hostapd
hostapd-mana-git /usr/bin/hostapd_cli
hostapd-mana-git /usr/lib/
hostapd-mana-git /usr/lib/systemd/
hostapd-mana-git /usr/lib/systemd/system/
hostapd-mana-git /usr/lib/systemd/system/hostapd.service
hostapd-mana-git /usr/share/
hostapd-mana-git /usr/share/doc/
hostapd-mana-git /usr/share/doc/hostapd/
hostapd-mana-git /usr/share/doc/hostapd/hlr_auc_gw.milenage_db
hostapd-mana-git /usr/share/doc/hostapd/hostapd.accept
hostapd-mana-git /usr/share/doc/hostapd/hostapd.android.rc
hostapd-mana-git /usr/share/doc/hostapd/hostapd.conf
hostapd-mana-git /usr/share/doc/hostapd/hostapd.deny
hostapd-mana-git /usr/share/doc/hostapd/hostapd.eap_user
hostapd-mana-git /usr/share/doc/hostapd/hostapd.eap_user_sqlite
hostapd-mana-git /usr/share/doc/hostapd/hostapd.radius_clients
hostapd-mana-git /usr/share/doc/hostapd/hostapd.sim_db
hostapd-mana-git /usr/share/doc/hostapd/hostapd.vlan
hostapd-mana-git /usr/share/doc/hostapd/hostapd.wpa_psk
hostapd-mana-git /usr/share/doc/hostapd/wired.conf
hostapd-mana-git /usr/share/licenses/
hostapd-mana-git /usr/share/licenses/hostapd/
hostapd-mana-git /usr/share/licenses/hostapd/COPYING
hostapd-mana-git /usr/share/man/
hostapd-mana-git /usr/share/man/man1/
hostapd-mana-git /usr/share/man/man1/hostapd_cli.1.gz
hostapd-mana-git /usr/share/man/man8/
hostapd-mana-git /usr/share/man/man8/hostapd.8.gz

I don’t understand how to link the hostapd-mana-git path in /usr/bin if it is already installed on the system.

Because its looking for hostapd-mana when what is provided is hostapd and hostapd_cli.

The berate_ap script has not seen an update in over 4 years. :person_shrugging:

Maybe you can link hostapd or hostapd_cli to hostapd-mana and that will make it happy.

ex:

sudo ln -s /usr/bin/hostapd_cli /usr/bin/hostapd-mana

But I have no idea about this software … it certainly does not appear to be current.

But I have no idea about this software … it certainly does not appear to be current.

Yes it’s an old software but very fun to use :slightly_smiling_face: anyway i solved mi issue by following your suggestion to link hostapd-mana with hostapd.

Thank you ! :wink:

1 Like

Glad it worked out :slight_smile:

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.