-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding install and rebuild scripts (based on OP25's)
- Loading branch information
1 parent
a3ad3ff
commit 29bf3d4
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
blacklist dvb_usb_rtl28xxu | ||
blacklist rtl2832 | ||
blacklist rtl2830 | ||
blacklist rtl2838 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
29bf3d4
There was a problem hiding this comment.
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
orsudo systemctl restart systemd-modules-load.service
(from here) insead