Raspberry pi Hotspot

发布时间 2023-08-22 05:12:30作者: 陈夏松

Raspberry pi Hotspot

  1. Clone the code and install。

git clone https://github.com/oblique/create_ap 
cd create_ap 
make install
  1. Install the dependency library

apt install util-linux procps hostapd iproute2 iw haveged dnsmasq 
  1. create WIFI hotspot

sudo create_ap wlan0 eth1 piwifi hj123456
  1. Power boot

sudo nano /etc/create_ap.conf

Modify SSID=piwifi, PASSPHRASE=hj123456.

Make sure wlan0 and eth1.

sudo nano /usr/lib/systemd/system/create_ap.service

Make sure there is the below line in the file.

ExecStart=/usr/bim/create_ap --config /etc/create_ap.conf

  5. Then

sudo systemctl enable create_ap

  6. Done!