From c0d9ea4ddf094b9478a3912216d4f17af264b546 Mon Sep 17 00:00:00 2001 From: Myles McNamara Date: Thu, 20 Feb 2014 01:19:46 -0500 Subject: [PATCH 1/2] add deps install details --- README.md | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/README.md b/README.md index f288e5f..cca6644 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,72 @@ I like to use a SAW filter between the antenna and receiver to further cut noise and interference. It's certainly not necessary (and likely overkill). The SAW filter I use is built from a PCB I designed. +# Build/Install Dependencies + +> Install crcmod using pip (PyPi) - *Ubuntu/Debian* + +```shell +sudo apt-get install gcc python-dev python-setuptools +sudo easy_install -U pip +sudo pip install crcmod +``` + +> Install crcmod using pip (PyPi) - *CentOS/Fedora/RHEL* + +```shell +sudo yum install gcc openssl-devel python-devel python-setuptools +sudo easy_install -U pip +sudo pip install crcmod +``` + +> Install pybombs *Ubuntu/Debian* (*CentOS/RHEL* is supported by pybombs, just use rpm instead of deb below) + +To handle installing you can use pybombs, which will attempt to download and install by deb/rpm, and if not available will build from source, handling all dependencies along the way. +```shell +cd ~ +git clone git://github.com/pybombs/pybombs +``` + +You will need to configure pybombs before you can install anything. +* **gituser**: username for access to any restricted github or other repos. +* **prefix**: where everything will be installed to, required write permissions set this to `/usr/local` +* **install order**: set the order for preferred install, options available *deb, rpm, src* +* **forcepkgs**: any packages you dont want pybombs to install or update +* **timeout**: how long (in seconds) to wait before retrying download + +If you know how to set library paths you can use anything you want for prefix, but to keep everything simple and using sudo **_Don't forget to set prefix as_** `/usr/local` + +You *will* need to use sudo when running `tpms_rx` below + +```shell +cd pybombs +./pybombs config +``` + +> Install GNU Radio + +```shell +sudo ./pybombs install gnuradio +``` + +> Install FFTW + +```shell +sudo ./pybombs install fftw +``` + +> Install RTL SDR + +```shell +sudo ./pybombs install rtl-sdr +``` + +> Install GrOsmoSDR + +```shell +sudo ./pybombs install gr-osmosdr +``` + # Building Assuming you have the above prerequisites installed, clone this repo and do the From 60579c96af981afd6286e99ebe421c774bd6bcc7 Mon Sep 17 00:00:00 2001 From: Myles McNamara Date: Thu, 20 Feb 2014 01:24:46 -0500 Subject: [PATCH 2/2] add sudo ldconfig --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index cca6644..0759f79 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,12 @@ sudo ./pybombs install rtl-sdr sudo ./pybombs install gr-osmosdr ``` +> **Update Lib Links** (don't forget this!) + +```shell +sudo ldconfig +``` + # Building Assuming you have the above prerequisites installed, clone this repo and do the