Select Page

Basic guide to setting up a new source: http://ru.auckland.ac.nz/setting-up-a-source-in-jamaseis/

Packages accessible from: https://nzseis.phy.auckland.ac.nz/delivery/packages/

Install Base Operating System

  • Boot machine with a USB key holding down option and selecting Mac OS X Mavericks Installer on startup. Current version is called the Mavericksiser.
  • Set language and country options.
  • Select Disk Utility, select the internal hard drive.
  • Under the Partition tab select two partitions and make them equal size.
  • Under Options button select GUID partition table.
  • First partition:Name: Station code. Eg AUCK or NPGH1. Format: Mac OS Extended (Journaled).
  • Second partition:Name: DATA. Format: Mac OS Extended (Journaled).
  • Click Apply. Click Partition, click Agree. Quit Disk Utility.
  • Select Install OS X. Continue, Agree.
  • Select the first (station named) partition.
  • Click Restart.
  • Wait for OS to install.
  • Go through OS setup setting Region, Language and Wifi options.
  • Don’t transfer any information when asked.
  • Don’t sign in with Apple ID. Skip.
  • Agree to terms and conditions
  • Create an account: scienceit as name and user id with usual password. Continue.
  • Don’t Register your mac.
  • Wait for Setting up your Mac.
  • Default desktop should appear after a minute or so.
  • Open the App Store. Go to Updates.
  • Choose Free Upgrade to latest OS.
  • Enter Science Apple ID from Secret Server.
  • Wait for software download. Approx 17 minutes.
  • Follow the install instructions and reboot.

Update to latest Operating System

Optional step. It may be possible to install the latest version of the Operating System directly from the USB device.

Install Standard Software

From App Store install using Science IT apple ID.

  • TextWrangler
  • Pages

Casperise

Enroll the machine to the University Casper service.

  • From the installer USB key copy the package QuickAdd2015.
  • Run the package installer.

Add Users

  • Standard user: seismometeruser
  • Admin user: seismometeradmin
  • Passwords: See Secret Server.
  • Use default user creation options.

Configure Directories

In the terminal do:

cd /Volumes/DATA
mkdir -p livedata/jAmeseisData
mkdir -p data
sudo chown -R seismometeruser:staff ./*

Install Java

Run jrE6 and jAmaseis packages from USB drive.
Check for jAmaseis updates and do these if there are any.

Configure User Settings

  • Log out.
  • Log in as seismometeruser.
  • Configure sleep settings: Machine should never sleep (System Preferences – Energy Saver).
  • Locate jAmaeseis application and get info. Untick App Nap.

Configure Seismometer

  • Clean up the dock so it only contains: jAmaeseis, TextWrangler, Terminal, Safari, Settings, Finder.
  • Plug in seismometer. Mac asked to configure network. Cancel this.
  • Run jAmaeseis.
  • You should see the jAmaeseis config wizard.
  • Click Next.
  • Choose TC1 from the frop down. Next. Should say “Detecting devices”.
  • The TC1 device is listed. Click next.
  • Fill in the station ID. Eg NGHS1
  • Fill in station name: Eg New Plymouth Girls High School
  • Fill in Location.
  • Fill in latitude and longitude and elevation. (you may need to look these up in Google maps). Next.
  • Untick Share Data. Next.
  • Untick Upload screenshots. Next.
  • Do you want to configure another source: No. Next
  • Ignore the remote sources page. Next.
  • Ignore Data import page. Next
  • Congratulations. Finish.
  • Go to: File > Settings.
  • Change screenshot FTP server to: winfiles.fos.auckland.ac.nz. Folder: /SiS. OK.
  • Prevent app nap: http://ru.auckland.ac.nz/how-to-turn-off-the-app-nap/ (Right click on the aplication – get info – tick ‘prevent appnap’
  • Add rollonRolloff app to menubar (double click to start and stop)
  • Add terminal to menubar
  • Add textwrangler to menubar
  • Remove unneded apps from menubar
  • Add jAmeseis to menubar
  • Make sure jAmeseis and safari run full screen
  • Log off and tick restart open apps
  • Log back in and set seismometeruser to autoLogin.
  • Make sure autoupdates are not on.

Setup NoFTP access

  • Run the latest version of the roller + noFTP service ruRollerNoFTP.dmg
    Run NoFTP.dmg installer.
  • Configure NoFTP upload – On the client, if you intend to use the noFTP workaround:
    in a terminal as seismometeruser$ cd ~/outgoing
    $ nano upload.configchange
    username:password
    to the correct strings, e.g.
    STATIONNAME:STATIONPASSWORDthen create the flag used by the script on the Mac
    $ touch noftp

    (so this file would have the absolute path
    /Users/seismometeruser/outgoing/noftp)

    from the script:
    #    are we going to bother?
    #    If the marker is not in
    #    place, then my services
    #    are not needed 🙁

    if [ ! -e “$OUTGOING/noftp” ]
    then
    echo “I will only run if there is a file called noftp in the outgoing folder!”
    exit 0
    fi

Set up server to collect images from the station

Configuration for a station on the server.
ssh to nzseis.phy.auckland.ac.nz (user details in the usual place)

If you intend to use pyjamaseis upload (NoFTP) you need to configure a username and password for each station using htpasswd. See below.
$ cd /var/pyjamaseis/users
$ htpasswd passwords STATIONNAME
New password: TYPEPASSWORD

Re-type new password: TYPEPASSWORD
Adding password for user STATIONNAME
Images are kept in var/www/station so we need to create a new folder for the station in this location/

$ cd /var/www/stations
$ mkdir STATIONNAME

STATIONNAME must match for the systems to line up.

This is enough to get the system to start looking for uploaded images on winfiles.
Stations with working FTP connections will upload an image to winfiles every 10 minutes or so -these are PNG files named
<station>.png

The server goes looking for these based on the name of the folder.
Assuming you are still in /var/www/stations

$ cat stations.txt
shows a list of stations -this is used to generate the map pins on the view you see in the slideshow.

Add the new station to the bottom of the list.
$ nano stations.txt
is probably easiest, but  you could

$ echo <station>,<latitude>,<longitude>,<url to jump to when the station name is clicked on the map> >>stations.txt

The format for the entry is
<station>,<latitude>,<longitude>,<url to jump to when the station name is clicked on the map>
NO SPACES

Once you have added the line,
$ ../last50/update_stations.sh

will generate a new version of /var/www/last50/stations.kml, used to mark the locations of our seismometers on the earthquake map.

Managing collecting images

If the station can use FTP, you’re finished!
If you want to use the noFTP workaround:

$ cd /var/www/stations/mana
$ touch .noftp

This tells the server that it should look for the image upload in the pyjamaseis area.

You can add
$ touch .pynotnow
to stop the pyjamaseis agent grabbing the images.

If you want to tell the server to stop collecting images (temporarily),
$ touch .notnow

To resume collecting images
$ rm .notnow

To stop images from collecting for a station permanently? Move the station folder to ../stations.disabled
Everything in /var is backed up every day around 6am

 

Create web page:

We also create a web page in ru.auckland.ac.nz for each school -basic stuff- and the URL for this post is what you normally add to the stations.txt file.

 

 

Skip to toolbar