If you use your Pi for other things or you already have a Linux system that you use for other things then you may be interested in following this simple, quick and easy installation of Cumulus MX on pretty much any popular Linux distribution.
Maybe these instructions are redundant but In reading the Wiki there is too much noise and talk about Raspberry and even the section about running as a service that is totally missing. So I've put together the following quick instructions. This assumes you already have a running Linux system. This will allow you to run Cumulus MX (AutoStart as a service) when the computer boots. You don't even need to login. If you don't have a running Linux system, then fear not. There are many ways and options to get a Linux system running and it really isn't that hard. If you need help start a new thread and ask for hardware/software advice.
TIP: Set your Linux computer to auto power-up on AC in BIOS in case of power failure. This way it will automatically boot when AC power is restored.
How to install Cumulus MX on a Linux system and configure as an auto-starting service
1> Start with the instructions for Mono from their website linked below, but do not follow all of its install instructions. Only do the section for adding the Mono repository to your system (which is just the first section).
Follow the adding Mono repository instructions from the Mono project site:
https://www.mono-project.com/download/s ... wnload-lin
Choose your Linux distro to see the pertinent commands to use to add the Mono repository. For Linux Mint use Ubuntu instructions unless you are running Mint LMDE (then use Debian).
(Raspberry Pi adding of Mono repo instructions are also on the mono-project site)
2>After adding repo commands from #1 (varies by Linux distro)...
Do not continue to follow the install instructions on the mono-project website (as they want you to do a devel install for software development), instead install with the following command:
Code: Select all
sudo apt install mono-complete
sudo apt autoremove
3> Download the CumulusMX install zipfile to the Downloads folder.
Latest release version available here:
https://cumuluswiki.org/a/Software#Current_Release
4> Unzip and then move the unzipped CumulusMX folder to reside in /home/<username>/CumulusMX
The following command only moves the unzipped file. You need to unzip first.
Code: Select all
mv ~/Downloads/CumulusMX ~
Where <username> is the login username that you are using...for example /home/pi/CumulusMX (that is where you copied the unzipped CumulusMX folder in the previous step)
6> Copy the newly edited cumulusmx.service file to /etc/systemd/system/ with the following command:
Code: Select all
sudo cp ~/CumulusMX/MXutils/linux/cumulusmx.service /etc/systemd/system/
Code: Select all
sudo systemctl enable cumulusmx
Code: Select all
sudo systemctl start cumulusmx
http://<ServerIP>:8998 (from any computer on your network, for example http://192.168.1.20:8998)
http://localhost:8998 (on system running Cumulus MX only)
http://<hostname>:8998 (if you know the hostname of the system for example: http://raspberrypi:8998)
* It might be a good idea to create a DHCP IP address reservation on your router if hostname resolution doesn't work on your network
10> Configure Cumulus MX for your station by going to the menu option Settings / Station Settings
11> After making changes to the Station Settings and selecting your station type and selecting your units, restart Cumulus MX service:
Code: Select all
sudo systemctl restart cumulusmx
Useful commands:
sudo systemctl stop cumulusmx
sudo systemctl start cumulusmx
sudo systemctl restart cumulusmx
sudo systemctl disable cumulusmx (to disable auto-start service)
sudo systemctl enable cumulusmx (to enable auto-start service)
systemctl status cumulusmx (see status of the Cumulus MX service)
Upgrading to new version or switching from crontab or init.d to systemd (run as a service)
- To upgrade to newer Cumulus MX version see two posts down from this.
viewtopic.php?p=148851#p148851
- You can change your Cumulus MX from using crontab or init.d over to systemd by first stopping Cumulus and disabling crontab (or init.d) and then following the steps above beginning with step #5
Security Warning: Do not forward port 8998 to the Internet on your router as this will make your entire station configuration accessible to be messed with by anyone on the Internet. If you want to have a public web accessible interface then that requires additional setup.