Difference between revisions of "Raspberry Pi"

From SatNOGS Wiki
(Download: Fix the link to the wrong version.)
(Flashing)
 
(21 intermediate revisions by 7 users not shown)
Line 3: Line 3:
 
==Introduction==
 
==Introduction==
  
The Raspberry Pi (version 3 and 4) is the reference platform for SatNOGS (see our [[SatNOGS Client Ansible|Ansible guide]] to install SatNOGS on other Linux machines). You can try using various distributions for this (eg. Debian/Armbian, Arch, Fedora), but the one we suggest is our custom image based on latest Raspbian.
+
The Raspberry Pi (version 3, 4 and 5) is the reference platform for SatNOGS (see our [[SatNOGS Client Ansible|Ansible guide]] to install SatNOGS on other Linux machines).  
  
 
{{Message|This page assumes you have an account and a ground station registered on either network.satnogs.org or network-dev.satnogs.org. Make note of your station ID and API Key.}}
 
{{Message|This page assumes you have an account and a ground station registered on either network.satnogs.org or network-dev.satnogs.org. Make note of your station ID and API Key.}}
==[https://gitlab.com/librespacefoundation/satnogs/satnogs-pi-gen/-/jobs/artifacts/2020030400/download?job=release <span class="glyphicon glyphicon-save"></span> Download]==
 
  
You can download the latest Raspbian SatNOGS image following the links from the [https://gitlab.com/librespacefoundation/satnogs/satnogs-pi-gen/tags latest tag on GitLab]. This image has the SatNOGS setup script installed, the SSH server enabled and all required packages preinstalled. Click on the cloud icon and then click "Download release". You will get an Artifacts.zip file:
+
==Flashing==
 +
{{Warning|IMPORTANT: Some essential features from the previous version are currently unavailable in the newer version. Please review the [[SatNOGS Setup#Missing_features|Missing Features Table]] before flashing. If any of the missing features are critical to your setup, follow the [[Raspberry_Pi_Legacy|Legacy Software Installation Guide]] to install the legacy software.}}Use the '''Raspberry Pi Imager''', as outlined in the [https://www.raspberrypi.com/documentation/computers/getting-started.html#raspberry-pi-imager Raspberry Pi OS flashing guidelines], and follow the steps provided there. Along with the official guide, be sure to take into account the instructions provided in the following subsections.
  
==Artifacts list==
+
===OS selection===
 +
To optimize resource usage and reduce unnecessary running services, choose the Raspberry Pi OS Lite image instead of the full Raspberry Pi OS image. During the OS selection process, navigate to the <code>Raspberry Pi OS (other)</code> submenu and select <code>Raspberry Pi OS Lite (64-bit)</code>.
  
The current artifacts list consists of:
+
===OS customization===
 +
At the very least, you need to:
  
*A Zipped image file
+
*Set username and password
*An Image info file
+
*Set locale settings
*A SHA256 checksums file
+
**Time zone
 +
**Keyboard layout
 +
*Enable SSH
  
===Data integrity verification===
 
  
You should verify the data integrity of the artifacts by checking the SHA256 checksums. On Linux, run <code>sha256sum -c sha256sums</code> in the directory where the artifacts are downloaded and unzipped.
+
If connection to the internet is via Wi-Fi, make sure to '''Configure wireless LAN''' as well.
  
Example:
+
To easily discover the Rapsberry Pi among other Rapsberry Pis in your network, '''set a unique hostname'''.
<pre>
 
$ sha256sum -c sha256sums
 
2017-09-29-Raspbian-SatNOGS-master-lite.info: OK
 
image_2017-09-29-Raspbian-SatNOGS-master-lite.zip: OK
 
</pre>
 
 
 
==Flashing==
 
[https://www.raspberrypi.org/documentation/installation/installing-images/README.md Follow the usual Raspbian flashing instructions], and boot your Raspberry Pi.
 
  
 
==Getting console access==
 
==Getting console access==
Line 36: Line 31:
  
 
===Keyboard and monitor===
 
===Keyboard and monitor===
Once your Raspberry Pi is booted, log in with username "'''pi'''" password "'''raspberry'''".
+
Once your Raspberry Pi is booted, log in with the username and password that you set during the flashing process.
  
===Ethernet===
+
===Network===
If you are using wired Ethernet you should get connectivity right away. You just need to find the IP address of Raspberry Pi (e.g. in your router management interface). Log in with SSH using username "'''pi'''" password "'''raspberry'''", for example:
+
If your network supports [[wikipedia:Zero-configuration_networking|<code>zeroconf</code>]], you can use the hostname of your Raspberry Pi and log in with SSH using the username and password that you set during the flashing process. Example:
$ ssh pi@192.168.1.2
 
If your network supports [[wikipedia:Zero-configuration_networking|<code>zeroconf</code>]], then you can use the hostname of your Pi:
 
 
  $ ssh pi@raspberrypi.local
 
  $ ssh pi@raspberrypi.local
 +
If <code>zeroconf</code> is not supported then you must manually find the IP address of the Raspberry Pi (e.g. in your router management interface).
  
===Pre-boot wireless configuration===
+
==Installation==
If neither keyboard/monitor, nor a wired Ethernet are available, you can set up a WiFi connection before boot by mounting the boot partition of the flashed SD card and editing files directly. Note your OS may mount boot partition in a different location. [https://raspberrypi.stackexchange.com/questions/10251/prepare-sd-card-for-wifi-on-headless-pi#comment98121_57023 Windows users have line ending problems]. Suggested actions:
+
To install the SatNOGS software on the Raspberry Pi OS or any other supported OS you just log, and execute the following command:
 
+
$ curl -sfL https://satno.gs/install | sh -s --
$ $EDITOR /media/Raspbian_SatNOGS-boot/wpa_supplicant.conf
+
This command executes the '''SatNOGS Setup''' tool which will install all the necessary software and then bring up the SatNOGS configuration menu-driven utility.
 
 
contents: (note key_mgmt options include NONE, WPA-PSK, WPA-EAP)
 
 
 
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
 
    update_config=1
 
    country=US
 
   
 
    network={
 
        ssid="NETWORK_NAME"
 
        psk="password"
 
        key_mgmt=WPA-PSK
 
    }
 
 
 
==Configuration==
 
 
 
===Raspberry Pi Setup===
 
Once your Raspberry Pi is booted, log in with username "'''pi'''" password "'''raspberry'''" and run:
 
<pre>
 
$ sudo raspi-config
 
</pre>
 
 
 
You will want to be sure to do the following:
 
 
 
*Set a strong, unique password
 
*Change localization settings:
 
**by default the rpi locale is configured for EN-GB, change as appropriate (ie: to EN_US.UTF-8)
 
**set timezone (we recommend UTC so your logs match the times in Network; UTC is under the 'none of the above' submenu)
 
**set keyboard layout, again this is defaulting to a UK layout
 
**set wifi country
 
**expand filesystem (under the Advanced menu)
 
*Configure network or WiFi (see [https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md this doc for network configuration instructions])
 
*Finish and reboot
 
 
 
===SatNOGS Setup===
 
SSH to the Raspberry Pi with user "'''pi'''" and your new password.
 
  
Follow [[SatNOGS Client Setup]] instructions to configure the system.
+
Follow [[SatNOGS Setup]] instructions to configure the system.
  
 
[[Category:Build]]
 
[[Category:Build]]
 
[[Category:Software]]
 
[[Category:Software]]

Latest revision as of 13:56, 11 January 2025

Libre Space Foundation Raspberry Pi Case
Libre Space Foundation Raspberry Pi Case, on thingiverse

Introduction

The Raspberry Pi (version 3, 4 and 5) is the reference platform for SatNOGS (see our Ansible guide to install SatNOGS on other Linux machines).

Idea.png
This page assumes you have an account and a ground station registered on either network.satnogs.org or network-dev.satnogs.org. Make note of your station ID and API Key.

Flashing

Important.png
IMPORTANT: Some essential features from the previous version are currently unavailable in the newer version. Please review the Missing Features Table before flashing. If any of the missing features are critical to your setup, follow the Legacy Software Installation Guide to install the legacy software.

Use the Raspberry Pi Imager, as outlined in the Raspberry Pi OS flashing guidelines, and follow the steps provided there. Along with the official guide, be sure to take into account the instructions provided in the following subsections.

OS selection

To optimize resource usage and reduce unnecessary running services, choose the Raspberry Pi OS Lite image instead of the full Raspberry Pi OS image. During the OS selection process, navigate to the Raspberry Pi OS (other) submenu and select Raspberry Pi OS Lite (64-bit).

OS customization

At the very least, you need to:

  • Set username and password
  • Set locale settings
    • Time zone
    • Keyboard layout
  • Enable SSH


If connection to the internet is via Wi-Fi, make sure to Configure wireless LAN as well.

To easily discover the Rapsberry Pi among other Rapsberry Pis in your network, set a unique hostname.

Getting console access

You can log in the Raspberry Pi by connecting it to a keyboard and monitor or through network via an SSH connection.

Keyboard and monitor

Once your Raspberry Pi is booted, log in with the username and password that you set during the flashing process.

Network

If your network supports zeroconf, you can use the hostname of your Raspberry Pi and log in with SSH using the username and password that you set during the flashing process. Example:

$ ssh pi@raspberrypi.local

If zeroconf is not supported then you must manually find the IP address of the Raspberry Pi (e.g. in your router management interface).

Installation

To install the SatNOGS software on the Raspberry Pi OS or any other supported OS you just log, and execute the following command:

$ curl -sfL https://satno.gs/install | sh -s --

This command executes the SatNOGS Setup tool which will install all the necessary software and then bring up the SatNOGS configuration menu-driven utility.

Follow SatNOGS Setup instructions to configure the system.