You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@
5
5
This folder contains files needed for the client side of the autopower project:
6
6
7
7
-`deploy.sh` A bash script which runs on the Raspberry Pi to setup the environment. This asks interactively for a device name and sets up all respective binaries, the database, firewall, Zabbix client for monitoring, etc
8
-
-`deploy/create_client_cert.sh` A script to generate certificates for the clients. Those need to be signed from a CA trusted by the server to allow encrypted connection.
9
-
-`serverIpConfig.sh` A bash script containing configuration parameters like the domain of the autopower server. Edit this to your needs. Also do the same to `deploy/cnConfig.sh` for the CN in the certificates.
8
+
-`deploy/create_client_cert.sh <CN>` A script to generate certificates for the clients. Those need to be signed from a CA trusted by the server to allow encrypted connection.
9
+
-`serverIpConfig.sh` A bash script containing configuration parameters like the domain of the autopower server. Edit this to your needs.
10
10
-`config/client_config.json.example`: Example config file for the client. This contains setting parameters like the uid of an autopower device.
11
11
-`config/secrets.json.example`: Example config file which contains secrets like the path to certificates for the client.
12
12
@@ -20,7 +20,7 @@ Afterwards compile the autopower client (mmclient) from this repository as descr
20
20
21
21
You can also use the precompiled binaries from [GitHub releases](https://github.com/nsg-ethz/autopower/releases).
22
22
23
-
Now edit the `serverIpConfig.sh` script with the domain and IP of the autopower server and the `deploy/cnConfig.sh` file with the CN (usually the domain) of your server.
23
+
Now edit the `serverIpConfig.sh` script with the domain and IP of the autopower server.
24
24
25
25
### Setting up a Raspberry Pi
26
26
@@ -42,7 +42,7 @@ First of all, flash an OS to the SD card of the Raspberry Pi. This project was t
42
42
43
43
### Deployment on the Pi
44
44
45
-
**Note:** This method uses a USB stick, but you can of course also copy the files via SFTP or SCP if you know the IP.
45
+
**Note:** This method uses a USB stick mounted at `/mnt`, but you can of course also copy the files via SFTP or SCP if you know the IP.
46
46
47
47
**SSH Keys:** To add a SSH key for SSH connection to the Pi (e.g. if you did not use the Raspberry Pi imager), put your SSH Key into a file called `ssh_key.pub` in the `client/deploy/` folder. This will then be added to each Pis' `authorized_keys` file.
0 commit comments