Giter Club home page Giter Club logo

Comments (12)

morrownr avatar morrownr commented on June 30, 2024

Hi @Ekiben542

How about we try this:

The Main Menu for this site is:

https://github.com/morrownr/USB-WiFi

Menu item 9 is about AP mode. It has example hostapd.conf files in the main document. Info for your adapter is there.

Debian 12 uses NetworkManager. For AP mode to work, you either have to tell NM to not message with the interface you are using or you need to purge/inactivate NM. There are examples of how to do as much in the document.

Let me know how it goes.

from 88x2bu-20210702.

Ekiben542 avatar Ekiben542 commented on June 30, 2024

How to keep Network Manager from causing problems. section? (I wonder if there is a way to purge/deactivate NM here.)

from 88x2bu-20210702.

morrownr avatar morrownr commented on June 30, 2024

From the guide:

This is the least intrusive way to keep NM from messing with hostapd:

How to keep Network Manager from causing problems.

Option 1:

Tell Network Manager to ignore specific devices.

$ sudo nano /etc/NetworkManager/NetworkManager.conf

add

[keyfile]
unmanaged-devices=interface-name:wlan0

Note: Remember to replace wlan0 with your interface name.


Here is the direct link to the guide: (Main Menu item 9)

https://github.com/morrownr/USB-WiFi/blob/main/home/AP_Mode/Bridged_Wireless_Access_Point.md

If you go to the bottom of the document and work your way up, you will see other options.

from 88x2bu-20210702.

Ekiben542 avatar Ekiben542 commented on June 30, 2024

It's working! Thank you.

from 88x2bu-20210702.

morrownr avatar morrownr commented on June 30, 2024

Glad you got it going.

from 88x2bu-20210702.

Ekiben542 avatar Ekiben542 commented on June 30, 2024

I'm experiencing the same thing again.

from 88x2bu-20210702.

morrownr avatar morrownr commented on June 30, 2024

NM can be a pain in the backside. I've been working on my AP guide more given the new version of RasPiOS, which change a lot of things.

I made the decision to fully disable NM:

sudo systemctl disable NetworkManager

I went with the following:

The networking:

systemd-networkd
systemd-resolved

The AP:

hostapd

That is for a bridged setup but it looks like the capability to do a routed setup are available but it would take some work. I went with systemd-networkd starting a new years ago as it is 24/7/365 dependable and other ways of setting up an AP are not quite that good.

You can see what I did in the current AP Mode guide.

from 88x2bu-20210702.

Ekiben542 avatar Ekiben542 commented on June 30, 2024

I purge NetworkManager (sudo apt purge NetworkManager), is it okay? (Can the above solution work?)

from 88x2bu-20210702.

morrownr avatar morrownr commented on June 30, 2024

@Ekiben542

Let's back up a moment and go over some things.

I was trying to create an access point using hostapd and dnsmasq...

dnsmasq tells me you want a routed AP. Does it need to be routed or can it be bridged? Bridged is easier.

If it can be bridged, I'll recommend you start with a clean sd with Debian 12 or RasPiOS 2023-10-10 and follow my AP guide exactly. It should work if you are able to understand the guide. I realize it is a long detailed guide but it helps you learn. Taking it slow and asking questions is a good idea. Setting up the driver for this adapter is important as well as you may need to stat in USB2 mode. I can go over that with you as well.

Keep in mind that what you are trying to do is somewhat complicated and one thing wrong will cause not to work. Relax, start clean and don't get in a hurry.

@Ekiben542

from 88x2bu-20210702.

Ekiben542 avatar Ekiben542 commented on June 30, 2024

Understood.
And I have a question: I'm currently running the AP with RaspAP, but should I install RaspAP when I do a clean install? Or should I follow your guide?

from 88x2bu-20210702.

morrownr avatar morrownr commented on June 30, 2024

The environment is Bookworm Debian 12 ...

You said the above so I assumed you are running Debian 12. I'm not sure what RaspAP is.

Please do a clean installation of the Raspberry Pi OS 2023-10-10 64 bit if you see that as an option. Once complete, please feel free to follow my guide:

https://github.com/morrownr/USB-WiFi/blob/main/home/AP_Mode/Bridged_Wireless_Access_Point.md

My guide does not cover installation of the Raspberry Pi OS or the installation of the driver in this repo. It does cover some details of driver configuration. You will need to pay attention to the driver options that you set and please send a copy to me so that I can confirm you used the correct options for AP mode.

from 88x2bu-20210702.

Ekiben542 avatar Ekiben542 commented on June 30, 2024

I'ts Working! thanks(If it doesn't work again, I'll open it (issue).)

from 88x2bu-20210702.

Related Issues (20)

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.