Hoffman2:Modules: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
[[Hoffman2|Back to all things Hoffman2]]
[[Hoffman2|Back to all things Hoffman2]]
[Environmental modules https://www.hoffman2.idre.ucla.edu/computing/modules/] is a utility that allows users to dynamically modify their shell environment (e.g., $PATH, $LD_LIBRARY_PATH, etc.) in order to support a number of applications installed on the Hoffman2 Cluster.  CCN supports several modules on Hoffman2 including, AFNI, ANTs, Caret, FreeSurfer, FSL, ITKGray, ITK-SNAP, and MRIcron


# [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH into Hoffman2]]
# [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH into Hoffman2]]
# Use your favorite [[Text Editors|text editor]] to edit the file <code>~/.bash_profile</code>
# Use your favorite [[Text Editors|text editor]] to edit the file <code>~/.bash_profile</code>


==nano==
==vi==
#:* <pre>$ nano ~/.bash_profile</pre>
#:* <pre>$ vim ~/.bash_profile</pre>
# Insert these lines at the '''bottom''' of the file
# Insert these lines at the '''bottom''' of the file
#:* Type <code>G</code> - (capital G) to go to the end of the file
#:* Type <code>A</code> - (capital A) to go to the end of the line and enter insert mode
#:* Type <code>ENTER</code> - to insert a newline
#:* Type or paste in the lines below.
#:* <pre>module use /u/project/CCN/apps/modulefiles&#10;umask 007</pre>
#:* <pre>module use /u/project/CCN/apps/modulefiles&#10;umask 007</pre>
# Save the file by typing
# Save the file by typing
#:* <code>Control + X</code>
#:* <code>ESC + ":wq" + ENTER</code>
#:* <code>Y</code>
#:* <code>ENTER</code>
# Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.
# Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.

Revision as of 18:19, 17 April 2017

Back to all things Hoffman2

[Environmental modules https://www.hoffman2.idre.ucla.edu/computing/modules/] is a utility that allows users to dynamically modify their shell environment (e.g., $PATH, $LD_LIBRARY_PATH, etc.) in order to support a number of applications installed on the Hoffman2 Cluster. CCN supports several modules on Hoffman2 including, AFNI, ANTs, Caret, FreeSurfer, FSL, ITKGray, ITK-SNAP, and MRIcron

  1. SSH into Hoffman2
  2. Use your favorite text editor to edit the file ~/.bash_profile

vi

    • $ vim ~/.bash_profile
  1. Insert these lines at the bottom of the file
    • Type G - (capital G) to go to the end of the file
    • Type A - (capital A) to go to the end of the line and enter insert mode
    • Type ENTER - to insert a newline
    • Type or paste in the lines below.
    • module use /u/project/CCN/apps/modulefiles
      umask 007
  2. Save the file by typing
    • ESC + ":wq" + ENTER
  3. Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.