| | 1 | == Getting an account == |
| | 2 | |
| | 3 | First, you need to send an email to Mathieu and request an account. |
| | 4 | |
| | 5 | == ssh configuration == |
| | 6 | |
| | 7 | You can add the following lines to `~/.ssh/config` on your local machine: |
| | 8 | {{{ |
| | 9 | #!sh |
| | 10 | Host ronne ronne.ics.uci.edu |
| | 11 | HostName ronne.ics.uci.edu |
| | 12 | User YOURRONNEUSERNAME |
| | 13 | }}} |
| | 14 | and replace `YOURRONNEUSERNAME ` by your ronne username. |
| | 15 | |
| | 16 | Once this is done, you can ssh ronne by simply doing: |
| | 17 | |
| | 18 | {{{ |
| | 19 | #!sh |
| | 20 | ssh ronne |
| | 21 | }}} |
| | 22 | |
| | 23 | == Password-less ssh == |
| | 24 | |
| | 25 | Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run. |
| | 26 | You 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 |
| | 30 | Generating public/private rsa key pair. |
| | 31 | Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN |
| | 32 | Enter passphrase (empty for no passphrase):RETURN |
| | 33 | Enter same passphrase again:RETURN |
| | 34 | Your identification has been saved in /Users/username/.ssh/id_rsa. |
| | 35 | Your public key has been saved in /Users/username/.ssh/id_rsa.pub. |
| | 36 | }}} |
| | 37 | |
| | 38 | Two 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 | |
| | 45 | Now 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 | |
| | 55 | On ronne, add the following lines to `~/.bashrc`: |
| | 56 | {{{ |
| | 57 | #!sh |
| | 58 | export ISSM_DIR=PATHTOTRUNK |
| | 59 | source $ISSM_DIR/etc/environment.sh |
| | 60 | #MATLAB alias |
| | 61 | alias 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 | |
| | 68 | You can follow the instructions on the website [http://issm.jpl.nasa.gov/download/unix/]. You should not need Python. |
| | 69 | |
| | 70 | Use 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 | }}} |