Installing OS onto a Raspberry Pi: Difference between revisions

From Global Meteor Network
Jump to navigation Jump to search
No edit summary
 
(42 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''WARNING: THIS IS A PAGE IN PROGRESS! DO NOT FOLLOW IT IF YOU ARE LOOKING FOR THE BUILDING OF A CAMERA FROM SCRATCH'''
  Ahoj! In this section, you will flash (or install if you wish) an OS Linux onto your SD card or USB flash key and boot your Raspberry Pi for the first time.
  Ahoj! In this section, you will flash (or install if you wish) an OS Linux onto your SD card or USB flash key and boot your Raspberry Pi for the first time.


= Install the OS by flashing the image =


= OS install =
== Flash the image onto a microSD card or a USB flash drive ==


== Download the image ==
: '''NOTE:''' The process is the same for types of storage; only the target differs.


Pre-built Images are available with the RMS software pre-installed on Raspbian. Raspbian is the operating system typically used on the Raspberry Pi.
1. Download the '''Trixie''' image for '''Raspberry Pi 4 or Pi5''', and save it on your PC in any directory. The '''Trixie RMS''' image is [https://globalmeteornetwork.org/projects/sd_card_images/RMS_RPi5_RPi4_Trixie_20260116.img.xz here].


The current publicly released images of RMS are:
  RMS_RPi5_RPi4_Trixie_20260116.img.xz is 2.5 GiB (2,735,084,084 bytes)
[https://www.dropbox.com/s/sa9csd4m3jr1vqo/RMS_image_20191203.zip?dl=1 RPi3B+ ]
  '''Checksum''': 235281AB4E8E9449BAC2D2AD107B605D
and
[https://www.dropbox.com/s/3pwwenty43dazq4/RMS_RPi4_image_20210626.zip?dl=1 RPi4 ].


== Install Balena Etcher ==
A second image option '''(only for Pi4)''' is Bullseye RMS, but this Operating System (OS) version has been placed on retired status by the Raspberry Pi organization. As a result, there may not be new OS patches or updates. The only reason to choose Bullseye for Pi4 would be that you '''require''' remote access using AnyDesk, RealVNC Server, NoMachine, or TeamViewer. The '''Bullseye RMS''' image is
[https://globalmeteornetwork.org/projects/sd_card_images/RMS_RPi4Bullseye_20260116.img.xz here].


The image is flashed to the microSD card using the Etcher utility for Windows (32 or 64-bit), MacOS or Linux (64-bit), which can be found [https://www.balena.io/etcher/ here]
  RMS_RPi4Bullseye_10260116.img.xz is 3.0 GiB (3,223,859,108 bytes)
  '''Checksum''': BD56C691A2E8EA0081CAD5218BD57D22


== Flash a pre-built image to an microSD card or a USB flash key ==
Both Trixie and Bullseye support '''RustDesk''' remote access with file transfer. Trixie includes '''Raspberry Pi Connect''' for remote access and file transfer but Bullseye is not able to run this software from the Raspberry Pi organization. Both images support VNC connections, providing PC and Pi are on the same local network (LAN). Only Bullseye supports file transfer using VNC.


The process is the same for an microSD card or a USB flash key, just the target will differ.
Trixie and Bullseye RMS images offer '''Samba share''' directories ~/RMS_data and ~/shared. You can map these shares so they appear as local drives on your PC, and use these drive mappings to transfer files.


When you first boot up the Pi make sure you have a keyboard, monitor and mouse attached as you will be taken through a setup process by the RMS software.


Please see the [https://docs.google.com/document/u/1/d/1MTL85YMYH33u8OZ9Tl0JjSZXcLn8mOmNrCOC0I28Drw/edit Quick Start Guide] about how to flash them to an SD card.
: If you encounter problems with any of the images, contact the Technical Support group at https://globalmeteornetwork.groups.io/g/techsupport.  


Notes:


* the pre-installed RMS software images incorporate an auto-updating feature, so that the RMS software is updated to the current release whenever your Raspberry Pi RMS is booted. This way, your station is always running the most recent set of updates.  
2. Download '''Raspberry Pi Imager''' v2.0.6 (or newer) [https://www.raspberrypi.com/software/ here].


* For installations into other Linux or windows environments, executing the command ''git pull'' will update to the most recent RMS release.
3. Start '''Raspberry Pi Imager''' and flash the RMS image
  - Select your Raspberry Pi device
  - Under Choose operating System, Scroll down to Custom Image, and locate the RMS image you downloaded.
  - Select your storage device (the storage media you plan to use on the Pi)


* The code was designed to run on a RPi, but it will also run an some Linux distributions. We have tested it on Linux Mint 18 and Ubuntu 16. For information on installing into other Linux releases, check portions of the section listed below for installing on RPi, and also check installation instructions found on [https://github.com/CroatianMeteorNetwork/RMS GitHub]
'''IMPORTANT:'''
Depending on the image you are flashing, you may be asked if you want to change a few things before continuing. DO NOT change the username and password. These are embedded in the image. You can change wifi options, or change them later after you have booted the Pi.


This page is meant for the people who would like to boot a Raspberry Pi directly from a USB device and would like to avoid using a microSD card due to various reasons e.g. USB 3.X devices are faster, by some considered more reliable or simply some of them are available unused at your disposal. This page deals with and brings the how-to for the Raspberry Pi 4B only.
  - Choose Write image, then Expect to see this warning: "You are about to ERASE all data on: xxxxxxxxx Storage Device USB Device"
In general Raspberry Pi 4B is able to boot from any USB device out of the box. Please see the caveats section for the possible issues you may encounter and how to solve them. As such Raspberry Pi 4B can be booted from a USB flash, USB-attached Solid State Disk (SSD) or USB-attached Hard Disk Drive (HDD) either 2.5” or 3.5”. The list of proven devices that are in use by other members will be provided in each section. The easiest setup with almost no caveats comes with a USB flash drive which is as easy as booting from a microSD card. By using a USB-attached SDD or HDD there are some things you need to consider.
  - Click on the button "I UNDERSTAND, ERASE AND WRITE"
  - The write pass will be followed by a verify pass
  - Finally you should see Write complete!


== USB flash disk ==
4. Eject the USB flash drive, then remove microSD card/USB flash drive.
=== How-to ===


# Download the zipped Image for Raspberry Pi 4B [https://www.dropbox.com/s/3pwwenty43dazq4/RMS_RPi4_image_20210626.zip?dl=1 here] and save it on the PC somewhere.
If you encounter errors during flashing, you can verify the '''checksum (CRC)''' of your download to make sure it was downloaded correctly. If the checksum of the image is good and errors persist when flashing, your target storage media may be bad.
# Download the [https://www.balena.io/etcher/ BalenaEtcher], if you haven’t done it yet.
# Insert a USB flash disk into your PC, and note the letter it was assigned.
# Run BalenaEtcher, and flash the image file onto your USB flash disk: Select Flash from file, find your zip file and select it. As Target select your USB flash disk. Normally the system disks are hidden but verify the name, letter and size of your USB flash disk to be sure you have the correct target. Click Flash, once again verify the target and confirm it. Wait for the process to finish. (In case you will receive an error you may need to run BalenaEtcher as administrator)
# Eject the USB flash disk in windows if necessary and then remove your USB flash disk from your PC and insert it into your Raspberry Pi, which should be connected to a TV or Monitor, and have a keyboard and mouse connected. Power on a Raspberry Pi. Make sure that a microSD card is not inserted.
# Wait for the boot. If the boot takes too long to occur, please have a look at the next section. If it booted successfully, follow the on-screen instructions. You may return to the previous page as you are done with flashing the image onto a USB flash disk.


This is what the selection should look like:
'''Balena Etcher''' and '''Rufus''' are other flashing software options for RMS images. If you have issues flashing an image and have confirmed a good checksum for your download, try using different flashing software. Balena Etcher can sometimes generate false error messages at the end of the flash operation. Raspberry Pi Imager works fine when flashing the same downloaded image.
[[File:BalenaEtcher_selection.png|center]]


This is what the process should look like:
5. Insert the microSD card/USB flash drive into your Raspberry Pi. Raspberry Pi should already be connected to a TV or monitor, a keyboard, and mouse connected.
[[File:BalenaEtcher_process.png|center]]
: If a TV or monitor is not connected, refer to '''[[#Booting without a TV/Monitor|these instructions]]'''.


=== Pre-2021 Raspberry Pi 4 Bootloader update ===
6. Wait for the boot.
If the boot takes too long to begin, refer to the next section. If the Pi booted successfully, follow the on-screen instructions.


If you encountered a problem booting Raspberry Pi 4 from a USB device (common for all USB devices, not only flash disks), the most probable reason is that your Raspberry Pi 4 is from an older batch and its bootloader has to be updated. The procedure is simple and you will need a blank small MicroSD card to continue, the data are around 1MB in size, so any small microSD card will do the job. The process is nicely described in [https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#updating-the-bootloader the raspberry pi official documentation].
== Using RMS Images for Raspberry Pi ==
Click here for information on [[ Using RMS Images for Raspberry Pi ]]


NOTE:
== Pre-2021 Raspberry Pi 4 bootloader update - USB flash drive ONLY ==
* In case you are looking for more extensive USB booting guide click [https://globalmeteornetwork.org/wiki/index.php?title=Booting_from_a_USB_device here]


== [OPTIONAL] Install the software from scratch  ==
If you encountered a problem booting Raspberry Pi 4 from a USB device (common for all USB devices, not only flash disks), the most probable reason is that your Raspberry Pi 4 is from an older batch and you must update its bootloader.


'''Note: if you're setting up a Raspberry Pi you should use the prebuilt image as this comes with all necessary software installed and is ready to use.'''. If you really really '''really''' do want to install on the RPi from scratch, you can follow the instructions below:
The procedure is simple, and you need a small capacity, blank microSD card to store about 1MB of data. The process is nicely described in '''[https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#updating-the-bootloader the raspberry pi official documentation]'''.


=== Install for Raspberry Pi 4 ===
: '''NOTE:''' If you are looking for an extensive USB booting guide, click ''[https://globalmeteornetwork.org/wiki/index.php?title=Booting_from_a_USB_device here]''.


Detailed instructions [https://docs.google.com/document/d/19ImeNqBTD1ml2iisp5y7CjDrRV33wBeF9rtx3mIVjh4/edit?usp=sharing here]
The preinstalled RMS software images incorporate an auto-update feature, which updates the RMS software to the current release whenever you boot Raspberry Pi RMS. Your station always runs the most recent set of updates!


===  Install for Raspberry Pi 3 ===
== The first boot ==


'''We no longer recommend the Pi3, as it doesn't have the performance or memory to handle busy meteor showers. '''
This is how the first boot of the Trixie RMS image should look:
[[File:First_boot_Trixie.png|1500px|center]]


Detailed instructions [https://docs.google.com/document/d/1ChaXx6WkuGfcQ_f5yRbwUOOMxEgIJrjq932UZE6cRjE/edit here].
Now is a good time to send an email to '''denis.vida@gmail.com'''. Include a short introduction that includes your country, then tell him you are building a camera and you need a camera/station code. You use a camera/station code when you set up the RMS software, after your camera is fully installed and positioned.


=== Install for Linux ===
After you have received your Camera/Station ID from GMN, you will need to establish a network connection on your Pi.


Detailed instructions [https://globalmeteornetwork.org/wiki/index.php?title=Installation_for_Linux here]
For typical single camera installs, the camera is connected to the Ethernet port of the Pi, and a '''wifi connection''' is used to connect the Pi to your Local Area Network (LAN). To establish a wifi connection:
- left-click on the network icon located between the Bluetooth icon and speaker icon in the upper righthand part of the task bar.
- find the wifi network you want to use and then provide the wifi network passphrase to validate your wifi connection.


=== Linux GUI and multi-Camera support ===
If successful, the Network icon should change to an active wifi icon.


Detailed instructions [https://docs.google.com/document/d/e/2PACX-1vTh_CtwxKu3_vxB6YpEoctLpsn5-v677qJgWsYi6gEr_QKacrfrfIz4lFM1l-CZO86t1HwFfk3P5Nb6/pub here]


=== Installation for Windows ===
Once you have a '''Camera/Station ID''' from GMN, and know the '''Latitude, Longitude, and Elevation''' of your camera to within about a meter, you are ready to go through the setup steps in the '''RMS_FirstRun''' window on your screen. These steps include:
Data capture does not work under windows. However you can use the other tools on your PC, where its much quicker to run SkyFit2 to calibrate your camera to the sky, or you want to use BatchFFToImage to convert data to jpeg format to share on Social Media.  


Click '''[[Windows_Installation|here]]''' for detailed instructions. The instructions were tested on Windows 10 64-bit, but should work on any Windows version where git and Anaconda are available.  
1. Expanding the file system (if you flashed this SD card yourself).


Aside: If you are a Windows whizz, please feel free to investigate why data capture doesn't work!
2. confirming your Pi is connected to the Internet.


=== Installation for MacOS ===
3. Changing the default password for security reasons.
As with Windows, installation for MacOS is useful if you want to analyse the data offline. If you do want to install it, please follow the instructions '''[[MacOS_Install | here]]'''.


4. Generating a new SSH key.


You are now done with this section and now you are going to focus your camera and put all bits and pieces together for the first test. Exciting, isn't it? [https://globalmeteornetwork.org/wiki/index.php?title=Build_%26_Install_%26_Setup_your_camera_-_The_complete_how-to Back to the signpost page.]
5. Editing the RMS config file to supply your Camera/Station ID, Latitude, Longitude, and Elevation.
 
Once you have successfully completed the steps in RMS_FirstRun, the Terminal window will display information telling you that the system is waiting to begin capturing data for the coming night.
 
'''Remember to send the public SSH key to GMN, as outlined in the RMS_FirstRun instructions you saw earlier.'''
 
'''Welcome to GMN, you are all set to begin collecting meteor data!'''
 
= (Optional) Install the software from scratch =
This installation is '''only''' for knowledgeable users who want to complete more advanced tasks. If you the procedure in the previous section, '''do not continue''' with the sections that follow.
: '''NOTE:''' When you set up a Raspberry Pi, you should use the prebuilt image, which includes all necessary software installed and ready to use. If you decide to install the software on the RPi from scratch, follow the instructions on '''[https://globalmeteornetwork.org/wiki/index.php?title=Advanced_RMS_installations_and_Multi-camera_support this page]'''.
 
Next, you will focus your camera and assemble the bits and pieces for the first test.  
 
'''[https://globalmeteornetwork.org/wiki/index.php?title=Build_%26_Install_%26_Setup_your_camera_-_The_complete_how-to Back to the signpost page.]'''
 
= Boot without a TV or monitor =
If you do not have a TV or monitor connected to the Pi when you set it up, you must use '''VNC''', a remote-access tool.
 
1. After you burn the microSD card, insert it into the Pi and switch on the power.
: You should see the lights on the Pi flicker for a minute or two. If the lights do not flicker, it is possible the microSD card image did not properly burn.
 
2. If the lights flicker as ecpected, wait at least three minutes after the lights stop flickering before you proceed.
: '''NOTE:''' There are several stages to the initial boot, so it will take a while.
 
3. While you wait, download '''[https://www.realvnc.com/en/connect/download/viewer/ VNC Viewer]'''.
: You do not need to create an account or subscribe, so ignore the buttons and links. After a few seconds, the download will start.
 
4. To connect to the Pi using VNC, you must know either its name or its IP address.
: '''NOTE:''' If you did not set the hostname when you burned the microSD card, (this is an option that may available in Raspberry Pi Imager), its name is probably ''raspberrypi''.
: To find its IP address using the manufacturer name, run '''[https://www.advanced-ip-scanner.com/ Advanced IP Scanner]'''. This tool starts with Raspberry Pifind.
 
5. Open '''VNC Viewer''' and enter the name or IP address into the box at the top.
: After a few seconds, you see a login dialog box.
 
6. The default username is '''rms''' and the initial password is '''rmsraspberry'''. Change these credentials as soon as you log in.
 
: Now, you should now see the Pi desktop and the '''RMS_FirstBoot''' window.

Latest revision as of 10:14, 9 February 2026

Ahoj! In this section, you will flash (or install if you wish) an OS Linux onto your SD card or USB flash key and boot your Raspberry Pi for the first time.

Install the OS by flashing the image

Flash the image onto a microSD card or a USB flash drive

NOTE: The process is the same for types of storage; only the target differs.

1. Download the Trixie image for Raspberry Pi 4 or Pi5, and save it on your PC in any directory. The Trixie RMS image is here.

 RMS_RPi5_RPi4_Trixie_20260116.img.xz is 2.5 GiB (2,735,084,084 bytes)
 Checksum: 235281AB4E8E9449BAC2D2AD107B605D

A second image option (only for Pi4) is Bullseye RMS, but this Operating System (OS) version has been placed on retired status by the Raspberry Pi organization. As a result, there may not be new OS patches or updates. The only reason to choose Bullseye for Pi4 would be that you require remote access using AnyDesk, RealVNC Server, NoMachine, or TeamViewer. The Bullseye RMS image is here.

 RMS_RPi4Bullseye_10260116.img.xz is 3.0 GiB (3,223,859,108 bytes)
 Checksum: BD56C691A2E8EA0081CAD5218BD57D22

Both Trixie and Bullseye support RustDesk remote access with file transfer. Trixie includes Raspberry Pi Connect for remote access and file transfer but Bullseye is not able to run this software from the Raspberry Pi organization. Both images support VNC connections, providing PC and Pi are on the same local network (LAN). Only Bullseye supports file transfer using VNC.

Trixie and Bullseye RMS images offer Samba share directories ~/RMS_data and ~/shared. You can map these shares so they appear as local drives on your PC, and use these drive mappings to transfer files.


If you encounter problems with any of the images, contact the Technical Support group at https://globalmeteornetwork.groups.io/g/techsupport.


2. Download Raspberry Pi Imager v2.0.6 (or newer) here.

3. Start Raspberry Pi Imager and flash the RMS image

 - Select your Raspberry Pi device
 - Under Choose operating System, Scroll down to Custom Image, and locate the RMS image you downloaded.
 - Select your storage device (the storage media you plan to use on the Pi)

IMPORTANT: Depending on the image you are flashing, you may be asked if you want to change a few things before continuing. DO NOT change the username and password. These are embedded in the image. You can change wifi options, or change them later after you have booted the Pi.

 - Choose Write image, then Expect to see this warning: "You are about to ERASE all data on: xxxxxxxxx Storage Device USB Device"
 - Click on the button "I UNDERSTAND, ERASE AND WRITE"
 - The write pass will be followed by a verify pass
 - Finally you should see Write complete!

4. Eject the USB flash drive, then remove microSD card/USB flash drive.

If you encounter errors during flashing, you can verify the checksum (CRC) of your download to make sure it was downloaded correctly. If the checksum of the image is good and errors persist when flashing, your target storage media may be bad.

Balena Etcher and Rufus are other flashing software options for RMS images. If you have issues flashing an image and have confirmed a good checksum for your download, try using different flashing software. Balena Etcher can sometimes generate false error messages at the end of the flash operation. Raspberry Pi Imager works fine when flashing the same downloaded image.

5. Insert the microSD card/USB flash drive into your Raspberry Pi. Raspberry Pi should already be connected to a TV or monitor, a keyboard, and mouse connected.

If a TV or monitor is not connected, refer to these instructions.

6. Wait for the boot. If the boot takes too long to begin, refer to the next section. If the Pi booted successfully, follow the on-screen instructions.

Using RMS Images for Raspberry Pi

Click here for information on Using RMS Images for Raspberry Pi

Pre-2021 Raspberry Pi 4 bootloader update - USB flash drive ONLY

If you encountered a problem booting Raspberry Pi 4 from a USB device (common for all USB devices, not only flash disks), the most probable reason is that your Raspberry Pi 4 is from an older batch and you must update its bootloader.

The procedure is simple, and you need a small capacity, blank microSD card to store about 1MB of data. The process is nicely described in the raspberry pi official documentation.

NOTE: If you are looking for an extensive USB booting guide, click here.

The preinstalled RMS software images incorporate an auto-update feature, which updates the RMS software to the current release whenever you boot Raspberry Pi RMS. Your station always runs the most recent set of updates!

The first boot

This is how the first boot of the Trixie RMS image should look:

First boot Trixie.png

Now is a good time to send an email to denis.vida@gmail.com. Include a short introduction that includes your country, then tell him you are building a camera and you need a camera/station code. You use a camera/station code when you set up the RMS software, after your camera is fully installed and positioned.

After you have received your Camera/Station ID from GMN, you will need to establish a network connection on your Pi.

For typical single camera installs, the camera is connected to the Ethernet port of the Pi, and a wifi connection is used to connect the Pi to your Local Area Network (LAN). To establish a wifi connection:

- left-click on the network icon located between the Bluetooth icon and speaker icon in the upper righthand part of the task bar.
- find the wifi network you want to use and then provide the wifi network passphrase to validate your wifi connection.

If successful, the Network icon should change to an active wifi icon.


Once you have a Camera/Station ID from GMN, and know the Latitude, Longitude, and Elevation of your camera to within about a meter, you are ready to go through the setup steps in the RMS_FirstRun window on your screen. These steps include:

1. Expanding the file system (if you flashed this SD card yourself).

2. confirming your Pi is connected to the Internet.

3. Changing the default password for security reasons.

4. Generating a new SSH key.

5. Editing the RMS config file to supply your Camera/Station ID, Latitude, Longitude, and Elevation.

Once you have successfully completed the steps in RMS_FirstRun, the Terminal window will display information telling you that the system is waiting to begin capturing data for the coming night.

Remember to send the public SSH key to GMN, as outlined in the RMS_FirstRun instructions you saw earlier.

Welcome to GMN, you are all set to begin collecting meteor data!

(Optional) Install the software from scratch

This installation is only for knowledgeable users who want to complete more advanced tasks. If you the procedure in the previous section, do not continue with the sections that follow.

NOTE: When you set up a Raspberry Pi, you should use the prebuilt image, which includes all necessary software installed and ready to use. If you decide to install the software on the RPi from scratch, follow the instructions on this page.

Next, you will focus your camera and assemble the bits and pieces for the first test.

Back to the signpost page.

Boot without a TV or monitor

If you do not have a TV or monitor connected to the Pi when you set it up, you must use VNC, a remote-access tool.

1. After you burn the microSD card, insert it into the Pi and switch on the power.

You should see the lights on the Pi flicker for a minute or two. If the lights do not flicker, it is possible the microSD card image did not properly burn.

2. If the lights flicker as ecpected, wait at least three minutes after the lights stop flickering before you proceed.

NOTE: There are several stages to the initial boot, so it will take a while.

3. While you wait, download VNC Viewer.

You do not need to create an account or subscribe, so ignore the buttons and links. After a few seconds, the download will start.

4. To connect to the Pi using VNC, you must know either its name or its IP address.

NOTE: If you did not set the hostname when you burned the microSD card, (this is an option that may available in Raspberry Pi Imager), its name is probably raspberrypi.
To find its IP address using the manufacturer name, run Advanced IP Scanner. This tool starts with Raspberry Pifind.

5. Open VNC Viewer and enter the name or IP address into the box at the top.

After a few seconds, you see a login dialog box.

6. The default username is rms and the initial password is rmsraspberry. Change these credentials as soon as you log in.

Now, you should now see the Pi desktop and the RMS_FirstBoot window.