树莓派创建WiFi热点

将代码clone到本地

git clone https://github.com/oblique/create_ap
cd create_ap
make install

安装依赖的库

有些源中可能使用util-Linux

apt install util-linux procps hostapd iproute2 iw haveged dnsmasq

创建WiFi热点(GitHub上有多种方式创建,可以查找自己需要的那种)

create_ap 无线网卡名 有线网卡名 热点名 密码

开机启动

一定要在命令后添加&使其后台执行

vim /etc/rc.local
create_ap 无线网卡名 有线网卡名 热点名 密码 &

猜你喜欢

转载自www.cnblogs.com/leviatan/p/9033588.html