Installation Script for OpenEMS
This installation script automates the setup of OpenEMS on a server. It performs the following tasks:
-
Host Configuration: Prompts the user to enter the host name for the server. If no input is provided, it defaults to the current hostname.
-
UI Default Setting: Asks the user if they want to set the OpenEMS UI as the default for the server. If confirmed, it warns that this will override the default Nginx configuration.
-
Package Installation: Updates the package list and installs the required packages, including OpenJDK 17, Nginx, and Wget.
-
OpenEMS Service Setup: Downloads the OpenEMS system service configuration and sets up the necessary directories and files for OpenEMS.
-
Nginx Configuration: Sets up the Nginx server to serve the OpenEMS UI, including downloading the UI files and configuring the Nginx site.
-
Service Management: Reloads the systemd manager configuration, enables, and starts the OpenEMS service, and restarts Nginx to apply the new configuration.
Installation Instructions
You can install OpenEMS by following these steps:
- Download the installation script:
curl -O https://git.mumme-it.de/Mumme-IT/openems-build/src/branch/main/installation/install-openems.sh
- Review the script contents (recommended for security):
less install-openems.sh
- Make the script executable:
chmod +x install-openems.sh
- Run the script with sudo:
sudo ./install-openems.sh