Individual Install Scripts

March 26, 2023 ยท View on GitHub

All these links, link to the stable branch.

The installation process is broken out into separate scripts that can be run individually.

init.sh: Launches the full installation script, first downloading the EmonScripts repository that contains the rest of the installation scripts. All output sent to screen also stored in the user's home directory ~/init.sh.log.

main.sh: Loads the configuration file and runs the individual installation scripts as applicable. All output sent to screen also stored in the user's home directory ~/main.sh.log.


apache.sh: Apache configuration, mod rewrite and apache logging.

mysql.sh: Removal of test databases, creation of emoncms database and emoncms mysql user.

php.sh: PHP packages installation and configuration

redis.sh: Installs redis and configures the redis configuration file: turning off redis database persistance.

mosquitto.sh: Installation and configuration of mosquitto MQTT server, used for emoncms MQTT interface with emonhub and smart control e.g: demandshaper module.


emoncms_core.sh: Installation of emoncms core, data directories and emoncms core services.

emoncms_modules.sh: Installation of emoncms optional modules listed in config.ini e.g: Graphs, Dashboards, Apps & Backup

emonhub.sh: Emonhub is used in the OpenEnergyMonitor system to read data received over serial from either the EmonPi board or the RFM12/69Pi adapter board then forward the data to emonCMS in a decoded ready-to-use form

firmware.sh: Requirements for firmware upload to directly connected emonPi hardware or rfm69pi adapter board.

emonpilcd.sh: Support for emonPi LCD.

wifiap.sh: RaspberryPi 3B+ WIFI Access Point support.

emonsd.sh: RaspberryPi specific configuration e.g: logging, default SSH password and hostname.