Thursday, February 23, 2012

Viewing hidden files on mac


Most of the system file in mac are hidden. These hidden files and folder in mac can be viewed by following ways:

1. Open terminal application

2. Execute command: 

defaults write com.apple.finder AppleShowAllFiles -bool true

To hide files and folder

1. Execute command: 

defaults write com.apple.finder AppleShowAllFiles -bool false


These will come into effect after logging out and logging in

Wednesday, February 8, 2012

How to install Seismic Unix on mac OS X

Seismic Unix is a open source seismic processing package supported by Central for Wave Phenomena (CWP) at the Colorado School of Mines. Seismic Unix (SU) package (latest 43R1) can be downloaded from  Seismic Unix Home page

Here is step-by-step installation process in mac OS environment.

1. Download tar file in the path-----Users/You/cwpsu. It is better not to download in root

2. Uncompress or Untar the file using

                tar -xvf cwp_su_all_43R1.tar

3. In home folder, check for .bash_profile and set CWPROOT environment after editing it as

                export CWPROOT=Users/You/cwpsu

                PATH=$PATH:/Users/You/cwpsu/bin: .

                export PATH

4. Insert command - source .bash_profile

               You can check environment by
               echo $CWPROOT

5. In cwpsu/src, edit Makefile.config or you can copy from cwpsu/src/configs as

              cp configs/Makefile.config_Darwin_i386    

$CWPROOT/src/Makefile.config

6. Install by entering command - make install

Install 'command line tool' if not installed previously.
Open Xcode, go to preferences, Downloads ---- Install 'Command line tools'


7. Type command - make xtinstall

8. Check by typing command - suplane | suximage &

For help and tutorials see SU Wiki Guide

Enjoy Seismic Unix !!

Note: 
In 'Makefile.config_Darwin_i386' in folder 'Src/Config', spelling should be corrected. 'T' in the -DCWP_LITTLE_ENDIAN is missing.

LINEHDRFLAG =
XDRFLAG = -DSUXDR
ENDIANFLAG = -DCWP_LITTLE_ENDIAN
LARGE_FILE_FLAG =

CWP_FLAGS = $(LARGE_FILE_FLAG) $(ENDIANFLAG) $(XDRFLAG) $(LINEHDRFLAG)