This is an old revision of the document!
Table of Contents
This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)
Remote maintenance of stations
To access the maintenance interface, access data to space.astro.cz server are necessary. Most of the stations are then accessible and maintainable from the server.
The procedure is as follows:
ssh observatory_name@space.astro.cz
If the authentication with the public key proceeds without problems, you will be connected to space.astro.cz server. There you can view your station data or delete any unnecessary data.
To connect to your station, use the following command:
ssh user_name@station_computer_name.tunnel
This guide anticipates that the station has a turned on and configured reverse ssh tunnel with parameters in the config file /etc/ssh_config on space.astro.cz server.
wget http://space.astro.cz/bolidozor/support/scripts/setup_reverse_tunnel.sh chmod +x ./setup_reverse_tunnel.sh sudo ./setup_reverse_tunnel.sh
Getting an access space.astro.cz
The best option is to use a public key to log in. In such case, the space.astro.cz server will not require any password. The key pair has to be generated on the computer that you will use to get access to space.astro.cz. You can do it using a command line and running the ssh-keygen utility:
ssh-keygen
The utility will ask several questions, leave them empty. Only confirm the choice by pressing enter. Then it generates two files id_rsa.pub and id_rsa. id_rsa.pub file contains a public key, which has to be transferred to space.astro.cz server. That can be done either from the station, by copying the content of the file into the file /~/.ssh/authorized_keys that already exists on space.astro.cz serve (in the home directory of the observatory) or by setting a password. The password can be set during connecting to space.astro.cz (station connects to server automatically, using authentication key). To connect to space.astro.cz from station run:
ssh observatory_name@space.astro.cz
Using a command line on space.astro.cz server, set the password with passwd.
The most common operations on a station
Stopping and starting detection software
cd repos/station-supervisor/ ./stop.sh ./start.sh
Restarting a station
sudo reboot
Turning the station off
sudo poweroff
Loading a test RAW record from the receiver
nc localhost 3701 | sox -t f32 -c 2 -r 96000 - test.wav trim 0 30
This command creates a 30s long WAV record of complex samples from receiver on a running station. For further processing, it is advantageous to copy it on space.astro.cz to the station’s account.
scp test.wav ZVOLENEVES@space.astro.cz:/storage/bolidozor/ZVOLENEVES/.
Services provided by server
- Generating RMOB pictures and their upload on rmob.org.
- Assembling data from Meteor Observer mobile application.
- Running iPython scripts for processing data from data server.