S.A.R.L. AGECODAGIS 16 rue D'Auriac31310 Rieux Volvestre

This document describes the configuration of a linux PC designed to operate on an ... Download http://alomax.free.fr/seisgram/ver50/java/SeisGram2K50.jar.
202KB taille 41 téléchargements 212 vues
Linux PC configuration for Osiris (Rel 0): URL: http://www.agecodagis.com/WebData/Pdf/Docs/OsirisLinuxPcInstall.pdf This document describes the configuration of a linux PC designed to operate on an Osiris network. Before starting the configuration of the PC, refer to the 'OsirisFirstConnection' or 'OsirisDhcpClient' document for the network settings. The reference distribution is Fedora Core 3 (http://fedora.redhat.com/), the reference browser is mozilla, included in almost any linux distribution. 1. Installation of the basic the tools Install the Java virtual machine and the Java pluging: Download the packages: http://dag.wieers.com/packages/j2re/mozilla-j2re-1.4.2-11.1.fc3.rf.i586.rpm http://dag.wieers.com/packages/j2re/j2re-1.4.2-11.1.fc3.rf.i586.rpm

then, as root, run: rpm -Uvh j2re-1.4.2-11.1.fc3.rf.i586.rpm mozilla-j2re-1.4.2-11.1.fc3.rf.i586.rpm Install SeisGram: Download http://alomax.free.fr/seisgram/ver50/java/SeisGram2K50.jar As root copy it to /usr/local/bin: cp SeisGram2K50.jar /usr/local/bin/. Install oclient: Donwload it from the « Osiris network » link from an Osiris station, then uncompress oclient.gz and copy it in /usr/local/bin: gzip -d oclient.gz chmod +x oclient cp oclient /usr/local/bin/. 2. Configuration of the Osiris wrappers for mozilla Start mozilla and connect to an Osiris station (e.g. http://10.37.00.12 for station 370012), ask for all the data in flash (In the « data management » section). Click on the link to « viewtitan script », select « Save to disk » in the dialog box and save it in the « Home » directory. The script expect SeisGram2K50.jar to be in /usr/local/bin, this is already done. As root, copy the script to /usr/local/bin and change the mode to make it executable: chmod +x viewtitan cp viewtitan /usr/local/bin/.

S.A.R.L. AGECODAGIS 16 rue D’Auriac 31310 Rieux Volvestre Tel: (+33)5 61 97 84 52

Fax: (+33)5 61 97 84 51

Select a file in the list, in the « Opening ... » dialog box, check « Open it with » and write /usr/local/bin/viewtitan in the text input. Check « Always perform... » and click OK. SeisGram should be started and display the seismograms. Go back to the main page of the station, select the link to « Signal monitoring » click on the link to « viewsl », save the script in the « Home » directory. As root, copy the script to /usr/local/bin and change the mode to make it executable: chmod +x viewsl cp viewsl /usr/local/bin/. Select the link « SeedLink RT monitor », in the « Opening ... » dialog box, check « Open it with » and write /usr/local/bin/viewsl in the text input. Check « Always perform... » and click OK. SeisGram should be started and display the seismograms. 3. Starting oclient On a computer running nrt, when oclient starts, the list of all the connected Osiris station is printed. To select a station, enter 'connect' followed by the name, the serial number (hostid) or the IP address of the station. Then, the next commands entered will be sent to this station. All the osh commands can be sent with oclient, any command can be followed by « > file», « >> file », or « | filter ». The output will be sent to the given file, or appended to the file, or sent to the filter program, respectively. To send the same command to all the connected stations, use the 'dispatch' prefix. Examples: dispatch gps on starts the GPS on all the stations connect 370004 radio off connect 370005 fschannel@=1000 validate stop the radio on station 370004 and set all the channels to 1000Hz on station 370005. for i in `echo hostidlist | oclient`; do echo paramstore $i | oclient $i; done this script saves the configuration of all stations. The newt script restores the configuration: for i in `echo hostidlist | oclient`; do echo paramload $i | oclient $i; done

S.A.R.L. AGECODAGIS 16 rue D’Auriac 31310 Rieux Volvestre Tel: (+33)5 61 97 84 52

Fax: (+33)5 61 97 84 51

When started with an arguemnt, oclient try to find a station with a corresponding name/serial number/or IP address and connects to the first matching station found. If no station is found, oclient considers the argument as the IP address of the host to connect.

S.A.R.L. AGECODAGIS 16 rue D’Auriac 31310 Rieux Volvestre Tel: (+33)5 61 97 84 52

Fax: (+33)5 61 97 84 51

Revision History Date :20050701 Revision : 0 Description : Initial release Author :S. Judenherc

S.A.R.L. AGECODAGIS 16 rue D’Auriac 31310 Rieux Volvestre Tel: (+33)5 61 97 84 52

Fax: (+33)5 61 97 84 51