Our recommended way to install Mainsail on a Raspberry Pi is to use MainsailOS, as pre-packaged disk image. If you are building a custom configuration, you may need to skip these instructions and install Mainsail manually.
Note: To avoid confusion, the described way is available for Windows, Linux and MacOS because RPI Imager is a Multiplatform Tool!
Note: It is a good idea to use a premium SDcard from a reputable manufacturer such as Sandisk, Kingston or Samsung. Perfomancewise you should consider using a “A1” or better, marked SDCard. Low end cards will often fail quickly when used in this application
PLEASE OBEY THAT THIS WILL DESTROY ALL DATA ON YOUR CARD
- Download the latest mainsailOS Release.
- Download the latest Raspberry Pi Imager, henceforth rpi-imager.
Install and Open rpi-imager. Now you should see a Window like this.
Window Appereance depends on OS, in this case Linux with XFCE was used.
Now click on “CHOOSE OS”, this will open a popup as shown below. Click on “Use Custom”
This will open a Popup Window to browse your local files. Please navigate to your recently downloaded MainsailOS Zip Archive
DO NOT UNPACK THE ZIP FILE!
After you’ve done that, it should look like this
Click on “Storage” and select your desired SDCard.
As an Example…
Now it’s time to setup things like Hostname, Wifi, Language and more. It depends on your needs what you setup, but it has to be WIFI and SSH at least! Grab your keyboard and hit:
This opens up a Setup Page
As the last Step click on “Write”, rpi-imager will give you a Warning. Click “YES” to continue…
Watch the Progressbar and wait until you see:
Hit the “Continue” Button and safely remove your SDCard. ( eg. unmount on Linux )
Insert the SDcard into your Pi, and power on the Pi.
Note: Please give the PI some time, during the first boot MainsailOS (like every PI Image) will expand your “root” filesystem accordingly to your SDCard Size! The greater your SDCard is, it will take longer time! Watch out for the little green LED if it turn off or blink from time to time it has finished the resizing.
Make sure that your MCU(s) is connected to your pi, If you will be using wired networking, also make sure your ethernet cable is connected.
- Find your pi on the network, open up your preferred Browser and type either your IP or Hostname (Depends on your Network configuration)
- If your network supports bonjour, the pi should show up as
mainsailos.localor the given Hostname in the Setup Section.
- If your network automatically assigns DNS hostnames, it may simply show up as
mainsailosor accordingly given Hostname.
- Failing these two options, you may need to check your router’s DHCP server, and find out what IP address has been assigned to the device.
After you’re able to get to the Mainsail Webinterface you should consider updating the System to get the latest features. Mainsail, Klipper and Moonraker got a relatively fast Development Cycle. We can’t provide MainsailOS Image with all the latest and greatest. So we encourage you to Update on first Login
If you decide to update, you should update in following order:
- System Update (Bring latest RaspberryOS Updates to the System)
- Klipper Update ( To get latest Firmware, often flashing the MCU can wear out his memory )
- Moonraker ( Having latest Version, could lead to more Features in Frontend )
Update Mainsail ( The most important! :P )
Important: Include the mainsail.cfg into your printer.cfg This could be done by:
- Enjoy Mainsail!