一、树莓派开启热点
https://wiki.archlinux.org/index.php/software_access_point
image.png image.png如果你是老司机、并且想折腾的话:https://www.cnblogs.com/DragonStart/p/8282575.html
新手的话:https://github.com/oblique/create_ap
http://fruitywifi.com/index_eng.html
二、安装node
image.png[http://nodejs.cn/download/](http://nodejs.cn/download/)
wget https://npm.taobao.org/mirrors/node/v12.16.1/node-v12.16.1-linux-armv7l.tar.xz
tar -xvf node-v12.16.1-linux-armv7l.tar.xz
mv node-v12.16.1-linux-armv7l /Data/apps/node
sudo rm -rf /usr/bin/node
sudo ln -s /Data/apps/node/bin/node /usr/bin/node
sudo ln -s /Data/apps/node/bin/npm /usr/bin/npm
npm install -g closurether
sudo /Data/apps/node/bin/closurether
systemctl stop dnsmasq
cd /Data/apps/node/lib/node_modules/closurether
vim /Data/apps/node/lib/node_modules/closurether/asset/inject/extern.js
三、实战
sudo closurether
sudo ./wifiapp -m nat wlan0 eth0 xy215 testtest --dhcp-dns 192.168.199.100
网友评论