svx_script/svxinstall.sh

53 lines
1.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
sudo rm -r svxlink
sudo rm -r /opt/svxlink
sudo apt update
sudo apt upgrade -y
sudo apt install g++ cmake make libsigc++-2.0-dev libgsm1-dev libpopt-dev tcl-dev libgcrypt20-dev -y
sudo apt install libspeex-dev libasound2-dev libopus-dev librtlsdr-dev doxygen groff alsa-utils -y
sudo apt install vorbis-tools curl libcurl4-openssl-dev git rtl-sdr libcurl4-openssl-dev libjsoncpp-dev -y
sudo apt install dialog -y
sudo useradd -rG audio,plugdev,gpio,dialout svxlink
sudo gpasswd -a svxlink gpio
sudo useradd -rG audio,plugdev,dialout svxlink
sudo gpasswd -a svxlink
whiptail --title "SVXLink" --msgbox "Установка будет проходить 30-40 минут\nЗависит от устройства!" 8 45
clear
cd
git clone https://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
wget http://ua6hjq.qrz.ru/files/rus-16k.tgz
sudo tar xvf rus-16k.tgz -C /
cd svxlink
wget http://gitradio.ml/ua1zbe/svx_script/raw/branch/main/svxlink.conf
sudo cp svxlink.conf /etc/svxlink/svxlink.conf
cd svxlink
wget http://gitradio.ml/ua1zbe/svx_script/raw/branch/main/svx.sh
sudo chmod +x svx.sh
sudo cp svx.sh /bin/svx
whiptail --title "SVXLink" --msgbox "Установка завершена!" 8 45
clear
./svx.sh