WLAN Nachträglich aktivieren

  • Moin...

    Ich hab ein kleines Problem mit dem ich aktuell nicht weiterkomme..

    Ich hab nen Pi3 B (ohne plus) und den zunächst ohne WLAN eingerichtet.

    Der Pi hängt aktuell per LAN Kabel an nem LTE Router. (Da noch nicht produktiv auch noch auf meinem Schreibtisch in WLAN Reichweite)

    Da der LTE Tarif nur 3G / Monat beinhaltet wollte ich die Systemupdates & docker pulls per WLAN mit verbundenem Handy (weil mehr Datenvolumen was wir eh nicht weg gelutscht bekommen) durchführen.

    Ich schaff es aber aktuell nicht eine WLAN Verbindung parallel zum LAN zugriff aufzubauen.

    der Befehl

    sudo iwlist wlan0 scan

    gibt mir brav die Liste der erreichbaren Netzwerke aus.

    in der /etc/wpa_supplicant/wpa_supplicant.conf

    hab ich brav die Netzwerke eingetragen mit denen sich der Pi verbinden darf:

    Aber er baut keine Verbindung auf...

    Was hab ich vergessen?


    LG
    Tiieto

  • $ rfkill list

    0: hci0: Bluetooth

    Soft blocked: no

    Hard blocked: no

    1: phy0: Wireless LAN

    Soft blocked: no

    Hard blocked: no

    Jürgen

    Der Pi soll ja nicht als Accesspoint agieren sondern sowohl im LAN (Verbindung LTE) als auch im WLAN (Verbindung Handy) als Client.

    Die Ganze Geschichte dient ja nur dazu den (online-) Betrieb aufrecht zu erhalten ohne das geringe Datenvolumen durch updates & docker pulls aufzubrauchen.

    LG

    Tiieto

  • ... auch im WLAN (Verbindung Handy) als Client.

    Wie sind z. Zt. die Ausgaben von:

    Code
    ip a
    iwconfig
    ps aux | grep -i [w]pa
    ls -la /etc/wpa_supplicant/wpa_supplicant.conf
    sudo wpa_supplicant -iwlan0 -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf

    ?

  • Diese Ausgaben reiche ich in Kürze nach…

    Und schon isses soweit:

    Code
     $ ps aux | grep -i [w]pa
    root       537  0.0  0.4  12028  4328 ?        Ss   Jul18   0:17 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
    Code
    $ ls -la /etc/wpa_supplicant/wpa_supplicant.conf
    -rw------- 1 root root 441 Jul 19 08:33 /etc/wpa_supplicant/wpa_supplicant.conf

    Edited once, last by Tiieto (July 19, 2023 at 3:15 PM).

  • Und schon isses soweit:

    Code
    ctrl_iface exists and seems to be in use - cannot override it
    Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
    Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
    You may have another wpa_supplicant process already running or the file was
    left by an unclean termination of wpa_supplicant in which case you will need
    to manually remove this file before starting wpa_supplicant again.
    Code
    $ ps aux | grep -i [w]pa
    root       537  0.0  0.4  12028  4328 ?        Ss   Jul18   0:17 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant

    Du musst vorher den aktiven wpa_supplicant-Prozess (PID 537) killen bzw. dafür sorgen, dass er gekillt bleibt und das ctrl-Interface löschen:

    Code
    sudo killall wpa_supplicant
    sudo rm /var/run/wpa_supplicant/wlan0

    Danach kannst es probieren mit:

    Code
    sudo wpa_supplicant -iwlan0 -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf

    Wenn das funktioniert, solltest dir Gedanken machen, wie Du deine wpa_supplicant.conf mit dem jetzigen dbus-gesteuerten/-abhängigen wpa_supplicant, funktionieren könnte.

  • Wenn das funktioniert, solltest dir Gedanken machen, wie Du deine wpa_supplicant.conf mit dem jetzigen dbus-gesteuerten/-abhängigen wpa_supplicant, funktionieren könnte.

    Bahnhof?

    Ich hab in dieser Installation das WLAN interface doch noch nie genutzt... Wie kann denn da jetzt ein dbus-gesteuerter (was heißt das?) wpa_supplicant am start sein? wo kommt der her?

    Wie oben gesagt hab ich den Prozess gekillt & die ctrl Datei gelöscht, anschließend noch ein paar mal abgefragt um zu schauen ob der Prozess wiederkommtund dann den 3. Befehl ausgeführt...

    Jetzt hängt er an dieser stelle: (scheint als bekäme er keine IP Adresse zugewiesen... - die MAC Adresse taucht auch im WLAN-Router auf, jedoch auch ohne IP Adr... Somit steht scheinbar die WLAN Verbindung zum Router erstmal, kann aber noch nicht genutzt werden.…)

    Edited 3 times, last by Tiieto (July 19, 2023 at 10:31 PM).

  • Wie kann denn da jetzt ein dbus-gesteuerter (was heißt das?) wpa_supplicant am start sein? wo kommt der her?

    Tja, ... er ist aktiv:

    Code
    $ ps aux | grep -i [w]pa
    root       537  0.0  0.4  12028  4328 ?        Ss   Jul18   0:17 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant

    ... weil man dem user das Leben so leicht wie möglich, machen will ... ;)

    EDIT:

    BTW: Ich werde zukünftig (wenn ich Debian 12) auf meinen Laptops installiere, nur iwd ( + systemd-networkd) zum herstellen der Wlan-Verbindung benutzen:

    Code
    apt show iwd

    D. h. wpa_supplicant, Networkmanager, netplan, connman und/oder anderes ähnliches Gedöns, wird als erstes deinstalliert.

    Quote

    Note that the package defaults

    to relying on dbus activation to start.

    If you want to use iwd standalone without any manager,

    then you'll need to manually enable the system service.

    Wi-Fi_Signal_Strength  txpower
    iptables chains order scheme iptables-diagram
    nftables-diagram

    Meine PIs

    PI4B/8GB (border device) FreeBSD 15.0R-p4 (arm64): SSH-Server, WireGuard-Server, ircd-hybrid-Server, Mumble-Server

    PI4B/4GB FreeBSD 14.4R-p0 (arm64): SSH-Serv., WireGuard-Serv., ngircd-Serv., Mumble-Serv., ddclient

    PI4B/8GB Bookworm-lite (64bit; modifiziert): SSH-Server, WireGuard-Server, ircd-hybrid-Server, Mumble-Server, botamusique, ample

    Edited 2 times, last by rpi444 (July 19, 2023 at 10:31 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!