# 小娱
# 配置
# FRP
- 选择指定版本
替换 frpc , frps 的可执行文件,可以使用ssh、ftp或网络共享 (Samba)
路径:\Media\AiCard_01\opt\bin 或者 \opt\bin
在 “在 WAN 上行/下行启动后执行:” 里加下面命令
$ sleep 10 && wget -q --no-check-certificate -P /tmp http://pan.inxiny.cn/Software/%E7%BD%91%E7%BB%9C/frp/frps_0.27.0_linux_mipsle && chmod 777 /tmp/frps_0.27.0_linux_mipsle
$ wget -q -O- --no-check-certificate http://pan.inxiny.cn/Software/%E7%BD%91%E7%BB%9C/frp/frps.ini > /tmp/frps.ini && /tmp/frps_0.27.0_linux_mipsle -c /tmp/frps.ini >/dev/null 2>&1 &
$ rm -rf /opt/bin/frps && wget -q -O /opt/bin/frps --no-check-certificate http://pan.inxiny.cn/Software/%E7%BD%91%E7%BB%9C/frp/frps_0.27.0_linux_mipsle && chmod 777 /opt/bin/frps
# opkg
fdisk -l
mkfs.ext4 /dev/sda1
mount -t ext4 /dev/vdc /home/homework/data/
opkg.sh # 执行opkg.sh 安装 opkg
# mqtt
opkg update
opkg install mosquitto-nossl libmosquitto-nossl
# /opt/etc/mosquitto 配置文件位置,在 mosquitto.conf 开头增加下列配置
allow_anonymous false
password_file /opt/etc/mosquitto/pwfile
# 在/opt/etc/mosquitto下新建文件pwfile并添加用户密码
username:password
# 运行 mqtt
mosquitto -c /opt/etc/mosquitto/mosquitto.conf -d