#

Customizing Your Environment on Odyssey

When your account is created on Odyssey it is created with some basic default options. It is possible to customize these. Below explains some of the changes that you can make.

Change your information

By default we do not store your GECOS (General Electric Comprehensive Operating System) field in the Odyssey directory server.

You will likely see the following:

[hptc@iliadaccess03 directory]$ finger hptc
Login: hptc Name: hptc
Directory: /n/home/external/hptc Shell: /bin/bash
On since Mon Jan 26 11:56 (EST) on pts/14 from machine.fas.harvard.edu
On since Mon Jan 26 11:55 (EST) on pts/15 from machine.fas.harvard.edu
3 seconds idle
No mail.
No Plan.
[hptc@iliadaccess03 directory]$ chfn
Password:
Enter the new value, or press return for the default
Finger information [hptc]: HPTC User, Science Center, 5-5555, hptc@fas.harvard.edu
changed user hptc' gecos info toHPTC User, Science Center, 5-5555,
hptc@fas.harvard.edu'
[hptc@iliadaccess03 formatnroff]$ finger hptc
Login: hptc Name: HPTC User
Directory: /n/home/external/hptc Shell: /bin/bash
Office: Science Center, 5-5555
Home Phone: hptc@fas.harvard.edu
On since Mon Jan 26 11:56 (EST) on pts/14 from machine.fas.harvard.edu
On since Mon Jan 26 11:55 (EST) on pts/15 from machine.fas.harvard.edu
2 seconds idle
No mail.
No Plan.

Change your shell

By default your shell on Odyssey is set to be bash. To change it, use the chsh command.

[hptc@iliadaccess01 ~]$ chsh
Password:

Enter the new value, or press return for the default

Login Shell [/bin/bash]: /bin/tcsh
changed user hptc' shell to/bin/tcsh'

Your choices are:

  • /bin/sh
  • /bin/bash
  • /bin/tcsh
  • /bin/csh
  • /bin/ksh
  • /bin/zsh

Modules let you access different software packages on Odyssey

Your software environment on Odyssey is managed using modules. This allows us to keep different versions of software that can be used as default by users without causing conflict or confusion. Or you can use commands on the command line to get more detailed information. The built-in module search commands are a little bit lacking, so we made our own - e.g. to search for everything matlab related:

[hptc@iliadaccess03 hptc]$ /n/sw/rc/bin/modulesearch matlab hpc/matlab
: Set up environment for matlab hpc/matlab-R2008b : Set up environment for
matlab math/dynare-4.1.2 : Dynare-4.1.2, Dynare is a pre-processor and a
collection of MATLAB... math/matlab-R2009a : Matlab v.R2009a, MATLAB is a
high-level language and interactive ...

You can list all available modules using the command:

[hptc@iliadaccess03 hptc]$ module avail --- /odyssey/apps/modules-
3.2.6/Modules/modulefiles ------- hpc/GAPipeline-0.3.0 hpc/java-1.6 hpc/IDL-7.0
hpc/mafft hpc/IFrIT-3.2.5 hpc/mathematica ...

You can get module specific help using:

[hptc@iliadaccess03 hptc]$ module help hpc/openmpi --- Module Specific Help
for 'hpc/openmpi' ---- openmpi module
** This module sets up the following
environment variables for openmpi: PATH LD_LIBRARY_PATH MANPATH
Version 3.1.6 **

You may load a module using:

[hptc@iliadaccess03 hptc]$ module load hpc/openmpi openmpi module
** This module sets up the following
environment variables for openmpi: PATH LD_LIBRARY_PATH MANPATH
Version 3.1.6 **

This sets your default MPI compiler for example:

[hptc@iliadaccess03 hptc]$ which mpicc /usr/mpi/gcc/openmpi-1.2.5/bin/mpicc

You can list your currently loaded modules:

[hptc@iliadaccess03 hptc]$ module list Currently Loaded Modulefiles: 1)
hpc/gsl-gnu 3) hpc/gnuplot-4.2.3 5) hpc/openmpi 2) hpc/xemacs-21.4.21 4)
hpc/gv

And unload a specific module:

[hptc@iliadaccess03 hptc]$ module unload hpc/gv Unloading gv module.

If you use a particular module very frequently you can automatically load it by putting the line (for eg.):

module load hpc/openmpi

in the file .bashrc in your home directory.

CC BY-NC 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. Permissions beyond the scope of this license may be available at Attribution.