树莓派3B创建WiFi热点
详见GitHub上的一个开源项目:https://github.com/oblique/create_ap在树莓派上具体操作步骤为:1.将代码copy到本地,安装git clone https://github.com/oblique/create_apcd create_apsudo make install2.安装依赖的库sudo apt-get install util-Linux
·
详见GitHub上的一个开源项目:
https://github.com/oblique/create_ap
在树莓派上具体操作步骤为:
1.将代码copy到本地,安装
git clone https://github.com/oblique/create_ap
cd create_ap
sudo make install
2.安装依赖的库
sudo apt-get install util-Linux procps hostapd iproute2 iw haveged dnsmasq
若安装不上,请先执行
sudo apt-get update
3.创建WiFi热点
sudo create_ap wlan0 eth0 热点名 密码
例如:
sudo create_ap wlan0 eth0 yuntai_pi 12345678
4.开机启动
将步骤3中创建WiFi热点的命令添加到/etc/rc.local当中,保存,然后reboot重启
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo create_ap wlan0 eth0 yuntai_pi 12345678
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
exit 0
更多推荐
已为社区贡献1条内容
所有评论(0)