Energy Drive - IoT Device - Loadout
Suggested for Ubuntu Core: https://ubuntu.com/download/raspberry-pi/thank-you?version=20&architecture=core-20-arm64+raspi
Ubuntu Core is Snap container architected. To Run Java and Python, you'll need to install dependancies to support this runtime environment first. I've included buildouts based on this updated support article: https://ubuntu.com/blog/how-to-snap-introducing-classic-confinement
Resource Monitor recomendation by Industry: Node-Exporter https://github.com/prometheus/node_exporter/releases/ "Pay attention to use ARM64" User Guide: https://prometheus.io/docs/guides/node-exporter/
This is a setup script to automate the setup and provisioning of Ubuntu servers. It does the following:
SSH into your server and install git if it is not installed: initial RUN $ pip install -r requirements.txt
sudo snap install classic --devmode --edge
sudo classic
sudo apt-get update
sudo apt-get install git
Clone this repository into your home directory:
cd ~
git clone https://github.com/Opennetworks-com/energrydrive.git
Run the setup script
cd energydrive
bash setup.sh
When the setup script is run, you will be prompted to enter the username and password of the new user account.
Following that, you will then be prompted to add a public ssh key (which should be from your local machine) for the new account. To generate an ssh key from your local machine:
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub
Finally, you will be prompted to specify a timezone for the server. It will be set to 'Africa/Johannesburg' if you do not specify a value.