Skip to content

Commit

Permalink
Adding install and rebuild scripts (based on OP25's)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricTendian committed May 3, 2020
1 parent a3ad3ff commit 29bf3d4
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blacklist-rtl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist rtl2838
31 changes: 31 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#! /bin/sh

set -e

# trunk-recorder install script for debian based systems
# including ubuntu 18.04/20.04 and raspbian

if [ ! -d trunk-recorder/recorders ]; then
echo ====== ERROR: trunk-recorder top level directories not found.
echo ====== You must change to the trunk-recorder top level directory
echo ====== before running this script.
exit
fi

sudo apt-get update
sudo apt-get install gnuradio gnuradio-dev gr-osmosdr libhackrf-dev libuhd-dev libgmp-dev
sudo apt-get install git cmake build-essential libboost-all-dev libusb-1.0-0.dev libssl-dev libcurl4-openssl-dev liborc-0.4-dev

mkdir build
cd build
cmake ../
make
sudo cp -i recorder /usr/local/bin/trunk-recorder

cd ..

if [ ! -f /etc/modprobe.d/blacklist-rtl.conf ]; then
echo ====== Installing blacklist-rtl.conf for selecting the correct RTL-SDR drivers
echo ====== Please reboot before running trunk-recorder.
sudo install -m 0644 ./blacklist-rtl.conf /etc/modprobe.d/
fi
9 changes: 9 additions & 0 deletions rebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
set -e
git pull
mkdir -p build
cd build
rm -rf *
cmake ../
make
sudo cp -i recorder /usr/local/bin/trunk-recorder

1 comment on commit 29bf3d4

@rosecitytransit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really necessary to reboot after blacklisting the module? Propose sudo rmmod dvb_usb_rtl28xxu rtl2832 rtl2830 rtl2838 or sudo systemctl restart systemd-modules-load.service (from here) insead

Please sign in to comment.