15
CPS - Installation

CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

Embed Size (px)

Citation preview

Page 1: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

CPS - Installation

Page 2: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

CD Contents

CDROM has a folder /usr [\usr for WINDOWS]

ls usr dir usr

Page 3: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

cps330cyg.tgz - CPS binaries for CYGWIN

cps330doc.tgz - CPS Documentation in PDF

cps330lnx.tgz - CPS binaries for LINUX

cps330osx.tgz - CPS binaries for OSX

cps330sol.tgz - CPS binaries for Solaris (SPARC)

CPSInstall.doc - CPS Installation guide

CPSInstall.pdf - CPS Installation guide in PDF

Cygwin.dist/ - Complete CYGWIN installation

gmproto.tgz - High frequency ground motion scaling

gs83w32.exe - GhostScript for Windows

gsv46w32.exe- GhostView for Windows

NP330.tgz - Current CPS source distribution

rbhenv.tgz - User environment for CYGWIN

setup.exe - Setup for CYGWIN

tutorial.tgz - IASPEI tutorial data sets

Page 4: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

Installation LINUXCPS installs in folder PROGRAMS.330. If one wishes to

install in /usr/local,

• cd /usr/local

• gunzip -c /mnt/cdrom/usr/NP330.tgz | tar xf -

• cd PROGRAMS.330

• ./Setup LINUX

• ./C

Binaries are in /usr/local/PROGRAMS.330/bin. To access, each user resets the PATH variable:

PATH=:$PATH:/usr/local/PROGRAMS/bin

Page 5: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

• Installation for Solaris, MacOS-X is the same.

Page 6: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

Windows Installation

First install CYGWIN. Can use CD or high speed internet from www.cygwin.com

From Start -> Run and browse to get the program setup.exe from the CDROM, e.g.,

G:\usr\setup.exe

Follow the tutorial.

Page 7: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

CYGWIN

• Provides a UNIX/LINUX environment under windows.

• Free• Has compilers, editors, TeX, groff,

graphics manipulation tools, X11, secure shell.

• Can do modern digital seismology on PC within windows

Page 8: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

Inconveniences• CYGWIN knows little about printers.

However,

• Install GhostScript and GhostView under windows by, Start -> Run -> G:\usr\gs831w32.exe, and,

• Start -> Run -> G:\usr\gsv46w32.exe• Create PostScript under CYGWIN, preview

using ghostview, then switch out to windows to use gsview to print

Page 9: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

Inconveniences

• Works well with US keyboard. Need feedback on how X11 works with non-US keyboards.

Page 10: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

CYGWIN (continued)After CYGWIN is installed, click CYGWIN icon on

desktop. A terminal window appears.

Edit /etc/profile, modify .bash_profile in login directory, and from within login directory,

• gunzip -c /cygdrive/g/usr/rbhenv.tgz | tar xf -

Start up X11 with • xinit&

Page 11: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

CPS330

Select directory for all to access, e.g.,

• cd /cygdrive/c• mkdir usr• gunzip -c /cygdrive/g/usr/NP330.tgz | tar xf -• cd PROGRAMS.330• ./Setup CYGWIN• ./C

Page 12: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

CPS 330 - contents

• bin - 119 executables

• lib - libraries for compilation

• doc - PDF documentation in names folders:

– CALPLOT.pdf/ - Graphics package

– GSAC.pdf/ - SAC clone

– IRIS.pdf/ - IRIS evalresp/rdseed

– OVERVIEW.pdf/ - Synthetic seismograms

– SOURCE.pdf/ - Source mechanism

– STRUCT.pdf/ - Surface-wave dispersion receiver function

Page 13: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr

Note• Some tutorials are old, however in using

the programs, the ‘-h’ flag will provide the syntax for the command:

• [rbh@rudy]$ udtdd -h• Usage: udtdd -GCARC gcarc -EVDP evdp [-h] [-?]• Compute P-wave ray parameter in sec/km• Example: udtdd -GCARC 31.0 -EVDP 170.0• -GCARC gcarc (default 10.0) epicentral dist deg• -EVDP evdp (default 10.0) source depth km• -h this command help• -? this command help

Page 14: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr
Page 15: CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr