Skip to content
Gunnar edited this page Mar 17, 2021 · 80 revisions

Raspberry Pi

This is a quick instruction on how to install svxlink from source code. An easier way is to use precompiled packageas already available in the latest Raspbian release. InstallBinRaspbian

Link to the old instruction InstallSrcHwRpiOld

Configure some Raspberry stuff (optional)

sudo raspi-config

Load packages (verified for Raspbian Buster 2020-02-05)

sudo apt update
sudo apt install g++ cmake make libsigc++-2.0-dev libgsm1-dev libpopt-dev tcl-dev libgcrypt20-dev libspeex-dev libasound2-dev libopus-dev librtlsdr-dev doxygen groff alsa-utils vorbis-tools curl libcurl4-openssl-dev git rtl-sdr libcurl4-openssl-dev cmake libjsoncpp-dev
sudo useradd -rG audio,plugdev,gpio,dialout svxlink

Download the software from Github and compile

git clone http://github.com/sm0svx/svxlink.git
mkdir svxlink/src/build
cd svxlink/src/build
cmake -DUSE_QT=OFF -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -DLOCAL_STATE_DIR=/var -DWITH_SYSTEMD=ON ..
make -j4
make doc
sudo make install
sudo ldconfig

Download Sounds

Swedish:

cd /usr/share/svxlink/sounds/
sudo curl -LO https://github.com/sm0svx/svxlink-sounds-sv_SE-elin/releases/download/19.09.99.1/svxlink-sounds-sv_SE-elin-16k-19.09.99.1.tar.bz2
sudo tar xvjf svxlink-sounds-sv_SE-elin-16k-19.09.99.1.tar.bz2
sudo ln -s sv_SE-elin-16k sv_SE

English:

cd /usr/share/svxlink/sounds/
sudo curl -LO https://github.com/sm0svx/svxlink-sounds-en_US-heather/releases/download/19.09.99.1/svxlink-sounds-en_US-heather-16k-19.09.99.1.tar.bz2
sudo tar xvjf svxlink-sounds-en_US-heather-16k-19.09.99.1.tar.bz2
sudo ln -s en_US-heather-16k en_US
sudo systemctl enable --now svxlink
sudo systemctl start svxlink
sudo systemctl stop svxlink

Monitor logfile

tail -f /var/log/svxlink

GPIO Configuration

TODO

Clone this wiki locally