全新的 RPi Image 設定 在設定之前,請先確保您的 RPi 已經正確連接並且可以進行 SSH 登入。 登入 ssh 後會顯示: Wi-Fi is currently blocked by rfkill. Use raspi-config to set the country before use. 要先修改RPi設定 sudo raspi-config 選 5 Localisation Options Configure language and regional settings 再選 L4 WLAN Country Set legal wireless channels for your country 再選 tw Taiwan 需要安裝以下軟體: 安裝 hostapd 和 dnsmasq: sudo apt update sudo apt upgrade -y sudo apt install hostapd sudo apt install dnsmasq 修改 /boot/config.txt 確認不要禁用 Wi-Fi 功能 sudo nano /boot/config.txt 這行要長這樣,或是不要有這行 # dtoverlay=disable-wifi 設定 dnsmasq 編輯配置文件: sudo nano /etc/dnsmasq.conf 內容加: interface=wlan0 listen-address=192.168.222.1 bind-interfaces server=8.8.8.8 domain-needed bogus-priv dhcp-range=192.168.222.100,192.168.222.110,12h 設定 network interfaces 編輯配置文件: sudo nano /etc/network/interfaces 內容加: auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 192.168.222.1 netmask 255.255.255.0 gateway 19...