Individual Install Scripts
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.
partition.sh: emonSD image builds only, run before init.sh on a fresh Raspberry Pi OS card. Shrinks the root partition (default 6 GB) and creates the low-write ext2 data partition at /var/opt/emoncms, then installs the emonSD fstab.
prune.sh: emonSD image builds only, run at the start of main.sh (prune_os in config.ini). Removes video and camera software emonSD does not use.
verify.sh: Read only check of a completed build: services, PHP and Python dependencies, database, MQTT, emoncms, repositories and the emonSD version file.
prepare_image.sh: emonSD image builds only. Final step before imaging: removes the build card’s SSH host keys, machine-id, saved WiFi networks, logs and history, then shuts down. See developer notes.
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.
docker.sh: Installs Docker Engine and the compose plugin from Docker’s apt repository. The service is left disabled.
emonsd.sh: RaspberryPi specific configuration e.g: log2ram, logrotate, one-wire, rc.local and the emonSD version file.
network.sh: Runs the emoncms network module installer: NetworkManager configuration, WiFi access point and the wifi-check cron task. Run last.
non_emonsd.sh: Logrotate configuration for installs that are not an emonSD image.