Copy-paste following command in SSH console and press Enter key. The script will install and configure acarsdeco2.
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/ad2/master/install-ad2.sh)"
If installing on 64-bit Raspberry Pi OS Befor issueing above bash command, give following additional commands:
sudo dpkg --add-architecture armhf
sudo apt update
sudo apt install libudev-dev:armhf
After script completes installation, it displays following message
INSTALLATION COMPLETED
=======================
PLEASE DO FOLLOWING:
=======================
(1) In your browser, go to web interface at
http://ip-of-pi:8686
(2) To view/edit configuration, open config file by following command:
sudo nano /usr/share/ad2/ad2.conf
(a) Default value of gain is auto
To use another value of gain, add following NEW LINE
(replace xx by desired value of gain)
--gain xx
(b) Default value of frequency correction is 0
To use a different value, add following NEW LINE
(replace xx by desired frequency correction in PPM)
--freq-correction xx
Save (Ctrl+o) and Close (Ctrl+x) the file
then restart ad2 by following command:
sudo systemctl restart ad2
To see status sudo systemctl status ad2
To restart sudo systemctl restart ad2
To stop sudo systemctl stop ad2
The configuration file can be edited by following command:
sudo nano /usr/share/ad2/ad2.conf
Default contents of config file
Default setting are are bare minimum.
You can add extra arguments, one per line starting with --
--freq 131550000
--freq 131725000
--http-port 8686
To see all config parameters
cd /usr/share/ad2
./acarsdeco2 --help
To completely remove configuration and all files, give following 4 commands:
sudo systemctl stop ad2
sudo systemctl disable ad2
sudo rm /lib/systemd/system/ad2.service
sudo rm -rf /usr/share/ad2
sudo rm /usr/bin/acarsdeco2
sudo userdel ad2