Hacking the GNURadio Module 'gr-satnogs'

From SatNOGS Wiki
Revision as of 15:01, 9 January 2019 by DL4PD (talk | contribs) (Created page with "A few steps on starting with hacking on 'gr-satnogs' on a SatNOGS node: Ensure you have these packages installed: - python-dev - swig $ sudo apt install swig python-dev...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A few steps on starting with hacking on 'gr-satnogs' on a SatNOGS node:

Ensure you have these packages installed:

- python-dev
- swig
$ sudo apt install swig python-dev

Remove the package that has been installed by ansible (if you're using ansible):

$ dpkg -r gr-satnogs


Get the repo from git:

$ git clone git@gitlab.com:librespacefoundation/satnogs/gr-satnogs.git

Follow the instructions in 'README.md', in short:

$ mkdir build
$ cd build
$ cmake ../
$ make [-j4] # -j4 to speedup things ;-)
$ sudo make install
$ sudo ldconfig

See if everything worked:

$ $ python -c "import satnogs"

If no output appears your custom 'gr-satnogs' module has been built and can be used by satnogs-client. If it failed, a message like:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named satnogs

will appear. On the next observation check

$ journalctl -u satnogs-client.service

for errors!

Happy hacking!

DL4PD (talk)