Last updated
Last updated
Note: commands from steps 1-3 are run inside the raspberry pi container, steps 4-5 are run on the baremetal instance used for training, and steps 6-10 are run back on the pi.
Syncing the Data:
In order to allow the pi to connect to the chameleon node, we must give it a key pair to enable an ssh connection. Run the following command in the pi container.
Press enter to whatever prompts come up so that the key is saved in the ~/.ssh folder and there is no passphrase needed to use it.
Change the permissions on the private key so that it can be used with ssh
View the public key that was generated and copy the entire key.
Note: be very careful when selecting the key with your cursor. You want to make sure you are not copying any additional whitespace or leaving out any characters.
Back in the terminal of the training node (you may need to ssh cc@<ip address> into it again from your own terminal), open the authorized_keys file.
Paste the key you copied at the bottom of this file.
Make sure that when the key is pasted in, it is all on one line and that there are no missing characters or extraneous whitespace
Back on the pi, test the ssh connection by running the ssh command to connect to the ip address of the training node. This is the same command you would run on your own computer to connect to the training node.
If the last step was successful, type "exit" to leave the ssh connection and return to the pi.
If you have a lot of data, it may be time-efficient to compress the data into a zip file before syncing it.
Then sync them from the pi to the Chameleon Node:
Note: may need to add key before syncing
Wait for the rsync command to finish (could take a few minutes), then, on the Chameleon node, unzip the data:
Note: if the files are not found, it could be due to a wrong saving location and this requires the individual to find their zip file by browsing with UNIX Commands.
Since we cannot train the model on the pi, we have to send all of the data we collect to the instance we are using for training.