Site Tools


Sidebar

software:fedora:fedora_on_raspi4_ap

Steps for installing an Access point on Raspi4/Fedora. Starting experiments with smart plugs, I have to tell these vendors the passphrase of my wlan, so I create a throw-away network just for that, and use the raspi as AP.

https://variwiki.com/index.php?title=Wifi_NetworkManager

dnf -y install hostapd dnsmasq

# We will use a dnsmasq instance controlled by NetworkManager,
# make sure the stand alone service does not interfere
systemctl stop dnsmasq
systemctl disable dnsmasq

nmcli con add type wifi ifname wlan0 mode ap \
  con-name fluxnet-iot-ap ssid 'fluxnet iot'
nmcli con modify fluxnet-iot-ap \
  ipv4.method shared \
  802-11-wireless.band bg \
  802-11-wireless.channel 3 \
  wifi-sec.key-mgmt wpa-psk \
  wifi-sec.psk passphrase \
  ipv4.addr 192.168.5.1/24
nmcli con up fluxnet-iot-ap

# et voila, clients can connect to the network..
cat /var/lib/NetworkManager/dnsmasq-wlan0.leases
software/fedora/fedora_on_raspi4_ap.txt ยท Last modified: 2022/11/13 12:06 by 127.0.0.1