Link Search Menu Expand Document

This method requires manual setup for SSH and Wi-Fi.

This method is cross-platform and works with Windows, Linux and MacOS.

We strongly recommend you use a premium SD card from a reputable manufacturer such as Sandisk, Kingston or Samsung, using an “A1” (or better) grade SD card.

Low end cards will often fail quickly when used in this application.

FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED


Preparation

Whilst this guide makes specific use of balenaEtcher it is entirely possible to use any flashing software of your choice and then follow the manual steps to enable SSH / network after.

  • Download the latest MainsailOS release (don’t unpack the zip; you don’t need to).
  • Download and install the latest balenaEtcher.

Flashing MainsailOS

balenaEtcher appearance may vary depending on the host OS.

  • When opening balenaEtcher you will be presented with the following: screenshot-balena-launched

  • Select the ‘Flash from file’ button (‘Select image’ on Windows) and navigate to the downloaded MainsailOS zip. screenshot-balena-select-os

  • Select the ‘Select target’ button and choose the SD card you want to flash. screenshot-balena-select-sd-card screenshot-balena-select-sd-card-choice

  • Return the the main screen, and select ‘Flash’. Accept any warnings to continue. FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED

screenshot-balena-flash

  • balenaEtcher will now decompress (unzip) the MainsailOS archive, write the disc image to the card and verify the flash. screenshot-balena-unzip screenshot-balena-flash screenshot-balena-verify

  • balenaEtcher will confirm the flash is complete. screenshot-balena-finished

Enabling SSH

You may need to safely remove (eject) the SD card and reinsert it for the /boot partition to show.

Before you move on, it is important to check SSH is enabled.

This is done by creating an empty file with no extension named ‘SSH’, or ‘SSH.txt’ in the /boot partition of the SD card. MainsailOS includes this file.

screenshot-balena-boot-partition

If for some reason the file is not present, then on linux it can be created by navigating to the /boot partition and opening a terminal:

sudo touch SSH
sudo touch SSH.txt

RaspberryOS will check if /boot/SSH(.txt) is present at first boot. If the file is present then SSH will be enabled.

Setting up Wi-Fi / Network

SSID’s are case-sensitive!

Don’t forget to set the country!

To setup Wi-Fi for a headless Pi install the network SSID and password must be entered into mainsailos-wpa-supplicant.txt

With the SD card inserted into the computer, navigate to the SD card’s /boot partition and open mainsail-wpa-supplicant.txt.

Locate the relevant section to your network, remove the comment marks (#) and enter the SSID and password. WPA/WPA2 is the most common.

Original:
## WPA/WPA2 secured
#network={
#  ssid="put SSID here"
#  psk="put password here"
#}

Filled out:
## WPA/WPA2 secured
network={
  ssid="CaseSensitive_WIFI"
  psk="SuperSecrets"
}

...

# Uncomment the country your Pi is in to activate Wifi in RaspberryPi 3 B+ and above
# For full list see: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
country=GB # United Kingdom

Save and exit the mainsailos-wpa-supplicant.txt file.

You are now ready to move on to the first boot of MainsailOS.


< tool selection next step >