跑坑無數,終於使用create_ap開啟wifi熱點。
可以使用github上托管的項目,地址https://github.com/oblique/create_ap/
安裝如https://github.com/oblique/create_ap/教程所示,安裝后使用命令sudo create_ap wlan0 lo wifiname password
其中wlan0 為無線網卡名, wifiname password分別為wifi名與密碼
常見坑點:
1 要安裝所由此腳本需要的程序,如dnsmasq
2 要正確設置無線網卡名,可以使用iwconfig命令查看網卡名