19 lines
663 B
Bash
19 lines
663 B
Bash
|
#!/bin/bash
|
||
|
sudo apt-get install -y git python3 python3-pip python3-numpy python3-tornado python3-serial python3-pyaudio rtl-sdr
|
||
|
sudo pip3 install pyalsaaudio pam pyrtlsdr
|
||
|
sudo apt-get autoremove -y --purge python3-libhamlib2
|
||
|
sudo apt-get install -y autoconf automake libtool swig
|
||
|
cd ~/
|
||
|
git clone https://github.com/Hamlib/Hamlib.git
|
||
|
cd Hamlib/
|
||
|
./bootstrap
|
||
|
./configure --with-python-binding PYTHON=$(which python3)
|
||
|
make all && sudo make install && cd bindings && make && sudo make install && sudo ldconfig
|
||
|
sudo reboot
|
||
|
|
||
|
# RUN pour test
|
||
|
#PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH ./UHRR
|
||
|
|
||
|
|
||
|
# si bug HamLib sudo apt-get install python3-libhamlib2
|