树莓派4B 安装 使用SPY Server SDR Server 并完成自启动

1  首先开启树莓派4B SSH并登陆

2  开启root 并使用 root登陆    相关命令如下:

设置root用户密码
sudo passwd root

启用root用户
sudo passwd –unlock root

设置ssh允许登录
sudo sed -i “s/^#PermitRootLogin.*/PermitRootLogin yes/g” /etc/ssh/sshd_config

重启ssh服务
sudo systemctl restart ssh

为root用户应用于当前用户相同的bash配置
sudo cp ~/.bashrc /root/.bashrc
3  更新下系统    相关命令如下:

sudo apt-get update && apt-get upgrade -y
4  安装必要的软件支持 相关命令如下:

dpkg –add-architecture armhf
apt-get update
apt-get install libc6:armhf libstdc++6:armhf
5  遵循github上有关Airspy Host Tools安装的说明 相关命令如下:

sudo apt-get install build-essential cmake libusb-1.0-0-dev pkg-config
wget https://github.com/airspy/airspyone_host/archive/master.zip
unzip master.zip
cd airspyone_host-master
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig
6 下载并运行spyserver 相关命令如下:

wget http://airspy.com/downloads/spyserver-arm32.tgz
tar xzf spyserver-arm32.tgz
./spyserver spyserver.config
正常运行截图

 

 

 

 

 

 

 

================================================================

使用网络连接 spyserver 后的 SDRSharp 软件中  NFW 与WFM  带宽 会被限制 需要修改  SDRSharp客户端目录下  SDRSharp.exe.Config中

<add key=”minReducedNarrowBandwidth” value=”12500″ />
<add key=”minReducedWideBandwidth” value=”150000″ />
==================================================================

 

给 spyserver 添加 自启

进程守护

1  创建 服务名字 根据自己喜好 相关命令如下:

vi /usr/lib/systemd/system/spyserver.service
内容  相关命令如下:        — 路径根据实际修改–

[Unit]
Description=spyserver
Documentation=https://Bi4Qzw.Com

[Service]
WorkingDirectory=/home/spyserver/spyserver-arm32
ExecStart=/home/spyserver/spyserver-arm32/spyserver spyserver.config
Restart=on-abnormal
RestartSec=10s
KillMode=mixed

[Install]
WantedBy=multi-user.target
建议设置权限 0777

2 设置开机自启动 相关命令如下:

# 更新配置
systemctl daemon-reload
# 启动服务
systemctl start spyserver.service
# 设置开机启动
systemctl enable spyserver.service
相关命令

# 启动服务
systemctl start spyserver.service

# 停止服务
systemctl stop spyserver.service

# 重启服务
systemctl restart spyserver.service

# 查看状态
systemctl status spyserver.service

———————————————————————-END —————————————————
————————————————

点击数:65

此条目发表在 HAM, Other, Soft Ware 分类目录。将固定链接加入收藏夹。