Setting Up Your Account for IDL/GEOS-Chem

To harness the full power of Geos-Chem and IDL, some changes must be made to your user account on the CTM server. You can ask the System Administrator to make the changes or you can do it yourself by following this process.

First, log into the CTM server using a terminal program (i.e. PuTTy or Secure Shell Client) and then locate the '.cshrc' file located in your university directory. This file controls the account configuration when connecting to servers. By default, all files starting with a '.' are hidden. Use the Linux command 'ls -la' to get a directory listing showing all files.

ctmuser:/home/campus03/ctmuser> ls -la
drwx---rwx 25 ctmuser celerra_du 3072 Sep 21 12:00 . drwxrwxrwx 353 root root 23552 Sep 21 06:10 .. drwx---rwx 17 ctmuser celerra_du 2048 Sep 21 12:39 .adprofile drwx------ 24 ctmuser celerra_du 1024 Jul 1 21:05 Application Data drwx------ 2 ctmuser celerra_du 80 Jul 1 21:05 CDBurnerXP Projects drwx------ 3 ctmuser celerra_du 80 Sep 9 10:38 .config drwx------ 3 ctmuser celerra_du 1024 Aug 31 2009 Course -rwx---rwx 1 ctmuser celerra_du 1114 Sep 15 08:24 .cshrc drwx------ 5 ctmuser celerra_du 1024 Sep 21 12:00 data -rwx------ 1 ctmuser celerra_du 1752 Dec 18 2009 Default.rdp drwx------ 5 ctmuser celerra_du 3072 Sep 21 12:39 Desktop -rwx------ 1 ctmuser celerra_du 78 Jun 16 13:24 desktop.ini drwx------ 3 ctmuser celerra_du 1024 Sep 21 12:23 Downloads -rwx------ 1 ctmuser celerra_du 994 Dec 27 2002 epilogue.ps -rwx------ 1 ctmuser celerra_du 1698 Mar 17 2003 example.ps -rwx---rwx 1 ctmuser celerra_du 13 Aug 16 2009 .exrc -rwx------ 1 ctmuser celerra_du 67 Sep 1 14:54 .flexlmrc drwx------ 2 ctmuser celerra_du 1024 Sep 9 10:37 .fontconfig drwx------ 2 ctmuser celerra_du 80 Sep 21 13:11 .gconf drwx------ 2 ctmuser celerra_du 1024 Sep 21 13:11 .gconfd drwx------ 2 ctmuser celerra_du 80 Sep 9 10:39 .gnome2 -rwx------ 1 ctmuser celerra_du 2515 Sep 22 14:10 .history drwx------ 3 ctmuser celerra_du 80 Sep 1 14:54 .idl drwx------ 5 ctmuser celerra_du 1024 Sep 13 20:15 IDLWorkspace71 -rw------- 1 ctmuser celerra_du 41 Sep 14 08:37 .lesshst -rwx---rwx 1 ctmuser celerra_du 73 Aug 16 2009 .login -rwx---rwx 1 ctmuser celerra_du 75 Aug 16 2009 .logout drwx------ 2 ctmuser celerra_du 80 Sep 16 15:22 MATLAB drwx------ 3 ctmuser celerra_du 80 Sep 9 10:38 .mozilla -rwx------ 1 ctmuser celerra_du 296 Sep 13 19:41 myfiles.txt drwx------ 2 ctmuser celerra_du 1024 Jun 16 13:24 My Music drwx------ 4 ctmuser celerra_du 1024 Sep 6 15:26 My Pictures drwx------ 3 ctmuser celerra_du 1024 Aug 31 14:07 My Videos drwx------ 3 ctmuser celerra_du 1024 Sep 21 11:57 Presentation drwx------ 32 ctmuser celerra_du 2048 Sep 21 11:58 Print drwx------ 9 ctmuser celerra_du 1024 Aug 29 2009 Program Files -rwx------ 1 ctmuser celerra_du 1025 Dec 27 2002 prologue.ps drwx------ 3 ctmuser celerra_du 1024 Aug 27 2009 RECYCLER -rw------- 1 ctmuser celerra_du 60 Sep 6 11:44 .serverauth.25163 -rw------- 1 ctmuser celerra_du 180 Sep 6 12:19 .serverauth.25508 -rwx------ 1 ctmuser celerra_du 74512 Oct 26 2006 SOLVER32.DLL -rwx------ 1 ctmuser celerra_du 215067 Oct 26 2006 SOLVER.XLAM -rwx---rwx 1 ctmuser celerra_du 144 Aug 16 2009 .ttyswrc -rw------- 1 ctmuser celerra_du 353 Sep 21 11:49 .Xauthority

Now, open the file for editing with a text editor, such as nano.

ctmuser:/home/campus03/ctmuser> nano .cshrc

If the file has not been edited before, it will just a few lines in it like this:

if (-f /usr/dept/lib/stdcshrc) then
        source /usr/dept/lib/stdcshrc
endif

Now, edit the file so it looks like this:

if (-f /usr/dept/lib/stdcshrc) then
        source /usr/dept/lib/stdcshrc
endif

# Shortcuts
alias gohome 'cd /local/ctm_homes/' # go to group home directory
alias godata 'cd /local/ctm_data/ctm' # go to CTM met database directory
alias tools 'cd /local/ctm_homes/ctm_tools' # go to ctm_tools directory
alias ll 'ls -la' # show all files
alias h 'history' # show command history
alias pa 'ps -Af' # show all running processes
alias pamine 'ps -u ctmuser' # show just my processes <<< change 'ctmuser' to your userid
alias head 'head -n 50 \!:1' # show the first 50 lines of a text file
alias tail 'tail -n 200 \!:1' # show the last 200 lines of a text file
alias cd1 'cd ../' # go back one directory
alias cd2 'cd ../../' # go back two directories
alias cd3 'cd ../../../' # go back three directories
alias cls clear # clear the screen

# Set C shell variables
set history=100
set savehist=100

# Set startup script for IDL
setenv IDL_STARTUP /local/ctm_homes/ctm_tools/IDL/idl_startup.pro

# Set variables for IDL
source /usr/local/itt/idl71/bin/idl_setup

# Set variables for Intel Fortran compiler version 11.1
# (INSTALLED BUT NOT CURRENTLY USED)
#source /opt/intel/Compiler/11.1/072/bin/ifortvars.csh intel64

# Set variables for Intel Fortran compiler version 10.1
source /opt/intel/fce/10.1.025/bin/ifortvars.csh

# Set DOS-like prompt
set prompt="`id -nu`:%/> "

# Fix segmentation fault issue with ifort
limit stacksize unlimited
setenv KMP_STACKSIZE 100000000

After making the changes, save the file and close the editor. Close the terminal window. Open another terminal window and log in again. Type the commands 'echo $IDL_STARTUP', 'echo $LD_LIBRARY_PATH', and 'alias'. If the response matches that shown below, then your account has been updated.

ctmuser:/home/campus03/ctmuser> echo $IDL_STARTUP
/local/ctm_homes/ctm_tools/IDL/idl_startup.pro

ctmuser:/home/campus03/ctmuser> echo $LD_LIBRARY_PATH
/opt/intel/fce/10.1.025/lib

ctmuser:/home/campus03/ctmuser> alias
cd1     cd ../
cd2     cd ../../
cd3     cd ../../../
cls     clear
godata  cd /local/ctm_data/ctm
gohome  cd /local/ctm_homes/
h       history
head    head -n 50 !:1
idl     /usr/local/itt/idl71/bin/idl
idlde   /usr/local/itt/idl71/bin/idlde
idldemo /usr/local/itt/idl71/bin/idldemo
idlhelp /usr/local/itt/idl71/bin/idlhelp
idlman  /usr/local/itt/idl71/bin/idlman
idlrpc  /usr/local/itt/idl71/bin/idlrpc
ittlicense      /usr/local/itt/idl71/bin/ittlicense
l.      ls -d .* --color=tty
ll      ls -la
ls      ls --color=tty
pa      ps -Af
pamine  ps -u ctmuser
tail    tail -n 200 !:1
tools   cd /local/ctm_homes/ctm_tools
vi      vim