-
Notifications
You must be signed in to change notification settings - Fork 4
software
Start on your local computer by installing the Debian operating system on the SD card:
- Download the latest system image of Debian 7.11 (Wheezy), i.e. the
bone-debian-7.11-lxde-4gb-armhf-2016-06-15-4gb.img.xz
image file from the firmware release repository, or using theget_image.sh
bash script found in thesoftware/debian/
folder. - Flash this image onto an empty SD card following steps #0.B to #0.F of official BeagleBone Getting Started Guide or using the
flash_image.sh <image file> <SD card target>
bash script found in the same folder. - Remove the SD card from your computer and insert it into the powered-down RocketLogger. Connect the power supply and network cable to boot your system.
- Once the logger started up, login via ssh as root:
ssh root@<host>
, where<host>
refers to the RocketLogger's IP address or hostname. NOTE: for security reasons, this login will be deactivated by the setup script.
You should now have an SSH session open in your terminal that should now show root@beaglebone:~#
. If not, login as described above. It is important that you perform the following steps inside this SSH session.
- Install
git
andntp
tools first usingapt-get install git ntp
- Clone the RocketLogger repository using
git clone https://gitlab.ethz.ch/tec/public/rocketlogger.git
- Change to the folder
software/debian/
of the cloned repository - Run the setup script to perform the necessary system configuration
./setup_beaglebone.sh
- Once completed (it takes a while) the script asks to reboot. Confirm to reboot the system to complete this one-time system configuration.
After reboot you log into the system with the RocketLogger default configuration listed below. You will need SSH access to compile and install the rocketlogger software as described in the following sections.
After initial system setup you will only be able to login as rocketlogger
user using the default ssh key. The user password is only useful for gaining root privileges once logged in (using sudo
). Password only and root logins are blocked.
The required settings are summarized in the table below.
<host>
refers to the RocketLogger's IP address or hostname.
Setting | RocketLogger config | SSH flag |
---|---|---|
ssh port | 2322 | -p 2322 |
private key | rocketlogger.default_rsa | -i rocketlogger.default_rsa |
key passphrase | show passphrase | prompted for at login |
username | rocketlogger | rocketlogger@<host> |
user password | beaglebone | not used for login |
The full ssh login command for the RocketLogger configuration is:
ssh -p 2322 -i ~/.ssh/rocketlogger.default_rsa rocketlogger@<host>
After successful login an SSH session starting with rocketlogger@beaglebone:~$
should be opened.
We highly recommend that you replace the standard key with an ssh key generated yourself (replace both files in the /home/rocketlogger/.ssh/
folder)!
How to generate your of key is explained in the SSH Help at Gitlab.
Log into an SSH session as described above. Make sure you have a copy of the rocketlogger repository by cloning (or pulling the latest) the repository: git clone https://gitlab.ethz.ch/tec/public/rocketlogger.git
.
- Change to the subfolder
software/device_tree_overlay
- Compile and install device tree overlay:
make
andsudo make install
- Change to the subfolder
software/rocketlogger
- Build and install software:
make
andsudo make install
- Reboot to apply all changes
This component is optional, but highly recommended for convenient device control.
- Change to the subfolder
software/webserver
- Run
sudo ./setup_web.sh
- Create password file using the command
htpasswd -c /home/rocketlogger/.htpasswd "username"
. Remember the set password, you will use it later to login to the web interface.
Now it is time to perform a calibration of the RocketLogger. To do so follow the Calibration Guide. If reinstalling a device with existing calibration, the calibration files can be reused.
Updating the software is also straight forward. Backup any important measurement data before updating!
- Pull the last revision of the repository
- Rebuild and install the RocketLogger binary
- Run the web interface install script to update the web interface (existing password files can be reused)
- Reboot
Updates to the system configuration or the device tree overlay are not necessary unless otherwise noted in the release notes. You might need to set a new default measurement configuration if the configuration file structure was updated. Calibration is hardware specific and recalibration not necessary when updating the software only.