用树莓派docker玩openwebrx笔记
树莓派映像:https://dietpi.com
安装docker:apt install docker
创建启动脚本:/root/start_openwebrx_docker.sh
#!/bin/bash
name=`basename $0.sh`
case $1 in
s|start)
#docker run --device /dev/bus/usb -p 8073:8073 --tmpfs=/dev/shm/openwebrx -v openwebrx-settings:/var/lib/openwebrx jketterl/openwebrx:stable &
docker run --privileged -p 8073:8073 --tmpfs=/dev/shm/openwebrx -v openwebrx-settings:/var/lib/openwebrx jketterl/openwebrx:stable & 2>&1 >/dev/null
;;
e|end)
docker stop `docker ps | grep openwebrx | awk '{print $1}'`
;;
*)
echo "usage : $name [start|end]"
exit 1
;;
esac
exit 0
name=`basename $0.sh`
case $1 in
s|start)
#docker run --device /dev/bus/usb -p 8073:8073 --tmpfs=/dev/shm/openwebrx -v openwebrx-settings:/var/lib/openwebrx jketterl/openwebrx:stable &
docker run --privileged -p 8073:8073 --tmpfs=/dev/shm/openwebrx -v openwebrx-settings:/var/lib/openwebrx jketterl/openwebrx:stable & 2>&1 >/dev/null
;;
e|end)
docker stop `docker ps | grep openwebrx | awk '{print $1}'`
;;
*)
echo "usage : $name [start|end]"
exit 1
;;
esac
exit 0
创建openwebrx管理员帐号:
参考:https://github.com/jketterl/openwebrx/wiki/User-Management
docker exec -it competent_sutherland python3 /opt/openwebrx/openwebrx.py admin adduser admin
然后会提示输入两次密码
安装RSP1驱动:
SDRplay_RSP_API-ARM32-3.07.2.run
chmod 755 SDRplay_RSP_API-ARM32-3.07.2.run ./SDRplay_RSP_API-ARM32-3.07.2.run
重启树莓派,然后
/root/start_openwebrx_docker.sh start
打开浏览器:http://xxx.xxx.xxx.xxx:8073
进行setting去设置相关的设备和波段