New fresh install on RPI 3 Stretch full version

This is a rough draft of many hours of searching and experimenting. I have not tested this procedure on another RPI 3 yet, so will probably make several changes in the steps. Use this at your risk, as I will not give detailed help.

To install Satnogs-client on RPI3 and Stretch full.

This install assumes a fresh working RPI 3 with Stretch fully updated.

Some of the commands may not be necessary, but this is what was required to setup my RPI 3 with Stretch full.

sudo easy_install pip

sudo pip install ansible

sudo pip install -r ./requirements.txt

sudo pip install pull --rebase

sudo pip submodule update --init --recursive

echo “127.0.0.1” > ~/ansible_hosts

export ANSIBLE_INVENTORY=~/ansible_hosts

ansible all -m ping --ask-pass

apt-get install sshpass

sudo apt-get install software-properties-common

sudo apt-add-repository ppa:ansible/ansible

sudo apt-get update

sudo apt-get upgrade

sudo reboot

git clone https://gitlab.com/librespacefoundation/satnogs/satnogs-client-ansible.git

cd satnogs-client-ansible

cp -r production.dist production

nano production/inventory/hosts

ssh youruser@yourtargetsystem true

ansible-playbook -i production/inventory -K site.yml

ssh -t youruser@yourtargetsystem sudo satnogs-setup

setup gs information

https://www.raspberrypi.org/forums/viewtopic.php?t=195836

https://docs.ansible.com/ansible/2.5/installation_guide/intro_installation.html

https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#latest-releases-via-apt-debian

https://wiki.satnogs.org/SatNOGS_Client_Ansible

Stuck following your steps, but let me add a bit of info

I believe you must first
cd /usr/share/doc/python-setuptools/

the next line gives me an error:
no such option: --rebase

as does the next line:
ERROR: unknown command "submodule"

So I am not able to move on beyond…

please see this site:

https://docs.ansible.com/ansible/2.5/installation_guide/intro_installation.html

near the bottom of the page, choose the OS , which is probably Debian.

Latest Releases Via Pip

Ansible can be installed via “pip”, the Python package manager. If ‘pip’ isn’t already available in your version of Python, you can get pip by:

$ sudo easy_install pip

Then install Ansible with [1]:

$ sudo pip install ansible

Or if you are looking for the latest development version:

pip install git+https://github.com/ansible/ansible.git@devel

If a step fails, then the next steps will fail also if they are dependent on the first failed step.

thank you - I am on raspbian, but the pi is configured for some other s/w so I’d rather not simply start with the SatNogs image.
When I run the commands, this is what I see:

pi@raspiNineSix : /usr/share $ sudo easy_install pip

Searching for pip

Best match: pip 9.0.1

Adding pip 9.0.1 to easy-install.pth file

Installing pip script to /usr/local/bin

Installing pip2.7 script to /usr/local/bin

Installing pip2 script to /usr/local/bin

Using /usr/lib/python2.7/dist-packages

Processing dependencies for pip

Finished processing dependencies for pip

pi@raspiNineSix : /usr/share $ sudo pip install ansible

Requirement already satisfied: ansible in /usr/lib/python2.7/dist-packages


and then like before:
pi@raspiNineSix : /usr/share $ sudo pip install -r ./requirements.txt

Could not open requirements file: [Errno 2] No such file or directory: ‘./requirements.txt’

so then I cd /usr/share/doc/python-setuptools/

pi@raspiNineSix : /usr/share/doc/python-setuptools $ sudo pip install -r ./requirements.txt

Requirement already satisfied: rst.linker>=1.6.1 in /usr/local/lib/python2.7/dist-packages (from -r ./requirements.txt (line 1))

Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from rst.linker>=1.6.1->-r ./requirements.txt (line 1))

Requirement already satisfied: python-dateutil in /usr/lib/python2.7/dist-packages (from rst.linker>=1.6.1->-r ./requirements.txt (line 1))

and like before:
pi@raspiNineSix : /usr/share/doc/python-setuptools $ sudo pip install pull --rebase

Usage:

pip install [options] <requirement specifier> [package-index-options] …

pip install [options] -r <requirements file> [package-index-options] …

pip install [options] [-e] <vcs project url> …

pip install [options] [-e] <local project path> …

pip install [options] <archive url/path> …

no such option: --rebase


So now are my comments clear? the errors are in your commands above. Are you not in Raspbian ?

pi@raspiNineSix : /usr/share/doc/python-setuptools $ lsb_release -a

No LSB modules are available.

Distributor ID: Raspbian

Description: Raspbian GNU/Linux 9.4 (stretch)

Release: 9.4

Codename: stretch

Hello,

The original post from @bob has many errors. It won’t work as it is. He was trying to install Ansible in the RPi to provision itself. You do not need to do that since the SatNOGS Ansible playbook can be executed on any Linux host with latest Ansible version installed.

Here is how to install Ansible on a Debian host:
https://docs.ansible.com/ansible/2.5/installation_guide/intro_installation.html#latest-releases-via-apt-debian

Also check this wiki page and especially the prerequisites: https://wiki.satnogs.org/SatNOGS_Client_Ansible

1 Like

as stated in the first few lines, there are problably errors. But, it does run on my RPI3 as is.