树莓派IGATE DIREWOLF安装步骤 by BG4VRG
本文参考Raspberry-Pi-SDR-IGate.pdf、Raspberry-Pi-APRS.pdf、安裝 Dire Wolf.docx by VR2ZDX三篇教程,结合个人操作总结而来,成文时间2016-11-25。
以上文档可在 QQ群 树莓派APRS实验室 290347330 获取。
初始环境:
系统镜像:2013-09-10-wheezy-raspbian.img
电视棒 :144640真实频点 144.6337
树莓派:1b
1.1 sudo raspi-config
如果是真机,无需输入命令,系统第一次引导会自动运行该命令
设置扩展磁盘分区
设置密码 ######
设置时区 Chongqing
Ip自动获取
选择“Enable Boot to Desktop”
1.2 替换清华大学源
sudo nano /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
1.3 系统更新
sudo apt-get update
sudo apt-get dist-upgrade 
sudo rpi-update  #以上三步非常慢,如果没有耐心可以不升级
sudo reboot
1.4 屏蔽集成声卡
sudo apt-get remove --purge pulseaudio 
sudo apt-get autoremove 
rm -rf /home/pi/.pulse
sudo reboot
1.5 安装direwolf
1  | sudo apt-get install libasound2-dev #首先安装libasound  | 
运行状态如下
You should see something like this, because we have not yet configured it for using an audio device.
Dire Wolf version …
Audio device for both receive and transmit: default
Could not open audio device default for input
No such file or directory
Pointless to continue without audio device.
报错,缺少电视棒运行环境,不用管,继续按步骤安装
1.6 安装sdr环境
1  | sudo apt-get install cmake build-essential libusb-1.0-0-dev  | 
1.7 编辑配置文件
Sudo nano sdr.conf 
此文件如果在dw-start.sh里调用的话,aprs.fi看不到图标,不知何故
1  | ADEVICE stdin null  | 
 sudo nano direwolf.conf
1  | ADEVICE stdin null  | 
1.9 启动项
 在系统第一次启动运行raspi-confi时,必须选择“Enable Boot to Desktop”
 修改dw-start.sh 将dwcmd那行“-c sdr.conf”删除,否则图标在apr.fi不显示
	chmod +x dw-start.sh
	crontab –e
1  | * * * * * /home/pi/dw-start.sh >/dev/null 2>&1  | 
	Sudo reboot
1.10 时间校准
 树莓派没有电池,没法保存时间,必须通过网络校时
	sudo nano /etc/ntp.conf
 添加
1  | server ntp.fudan.edu.cn iburst perfer  | 
sudo /etc/init.d/ntp restart #重启服务
sudo ntpd -s –d #强制校准
date #查看当前时间
树莓派IGATE DIREWOLF安装步骤 by BG4VRG

