Changes between Initial Version and Version 1 of ronne


Ignore:
Timestamp:
01/11/16 09:41:39 (9 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ronne

    v1 v1  
     1== Getting an account ==
     2
     3First, you need to send an email to Mathieu and request an account.
     4
     5== ssh configuration ==
     6
     7You can add the following lines to `~/.ssh/config` on your local machine:
     8{{{
     9#!sh
     10Host ronne ronne.ics.uci.edu
     11   HostName ronne.ics.uci.edu
     12   User YOURRONNEUSERNAME
     13}}}
     14and replace `YOURRONNEUSERNAME ` by your ronne username.
     15
     16Once this is done, you can ssh ronne by simply doing:
     17
     18{{{
     19#!sh
     20ssh ronne
     21}}}
     22
     23== Password-less ssh ==
     24
     25Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run.
     26You need to have a SSH public/private key pair. If you do not, you can create a SSH public/private key pair by typing the following command and following the prompts (no passphrase necessary):
     27{{{
     28#!sh
     29$your_localhost% ssh-keygen -t rsa
     30Generating public/private rsa key pair.
     31Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN
     32Enter passphrase (empty for no passphrase):RETURN
     33Enter same passphrase again:RETURN
     34Your identification has been saved in /Users/username/.ssh/id_rsa.
     35Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
     36}}}
     37
     38Two files were created: your private key `/Users/username/.ssh/id_rsa`, and the public key `/Users/username/.ssh/id_rsa.pub`. The private key is read-only and only for you, it is used to decrypt all correspondence encrypted with the public key. The contents of the public key need to be copied to `~/.ssh/authorized_keys` on your greenplanet account:
     39
     40{{{
     41#!sh
     42$your_localhost%scp ~/.ssh/id_rsa.pub username@your_remosthost:~
     43}}}
     44
     45Now on '''ronne''', copy the content of id_rsa.pub:
     46
     47{{{
     48#!sh
     49$your_remosthost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
     50$your_remosthost%rm ~/id_rsa.pub
     51}}}
     52
     53== Environment ==
     54
     55On ronne, add the following lines to `~/.bashrc`:
     56{{{
     57#!sh
     58export ISSM_DIR=PATHTOTRUNK
     59source $ISSM_DIR/etc/environment.sh
     60#MATLAB alias
     61alias ma='matlab -nodesktop -nosplash -r "addpath $ISSM_DIR/src/m/dev; devpath;"'
     62}}}
     63
     64''Log out and log back in'' to apply this change.
     65
     66== Installing ISSM on Ronne ==
     67
     68You can follow the instructions on the website [http://issm.jpl.nasa.gov/download/unix/]. You should not need Python.
     69
     70Use the following configuration script (adapt to your needs):
     71
     72{{{
     73#!sh
     74./configure \
     75    --prefix=$ISSM_DIR \
     76    --without-kml \
     77    --with-matlab-dir="/usr/local/matlab-8.1/" \
     78    --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
     79    --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
     80    --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
     81    --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
     82    --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpich -lmpl"\
     83    --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
     84    --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
     85    --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/ \
     86    --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
     87    --with-numthreads=32 \
     88    --enable-development \
     89    --enable-debugging
     90}}}