Raspberry Pi

Aus Vosp.info
Wechseln zu:Navigation, Suche

Einrichtung

# Installation der relevanten Pakete
sudo apt-get install hostapd dnsmasq

#
# /etc/default/hostapd: 
sudo cp /etc/default/hostapd /etc/default/hostapd.original
sudo chmod 777 /etc/default/hostapd
sudo echo "
DAEMON_CONF="/etc/hostapd.conf"   # Verweis auf die Konfigurationsdatei
RUN_DAEMON=yes                    # aktiviert hostapd bei Systemstart
" >> /etc/default/hostapd
sudo chmod go-w /etc/default/hostapd
sudo chmod -x /etc/default/hostapd

#
# /etc/hostapd.conf anlegen
sudo echo "
# Schnittstelle und Treiber
interface=wlan0
driver=nl80211

# WLAN-Konfiguration
ssid=WLAN
channel=1

# ESSID sichtbar
ignore_broadcast_ssid=0
" > /etc/hostapd.conf

Quellen