Hoffman2:Profile: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
No edit summary
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Hoffman2|Back to all things Hoffman2]]
[[Hoffman2|Back to all things Hoffman2]]


In UNIX systems, there are certain configuration files that get executed every time you login.  If you are using the Bash shell (default), you have a file called <code>.bash_profile</code> which is processed when you log in.  In order to make the FMRI toolset available to you on Hoffman2 and so you can work well with others, we recommend that you follow the instructions in the [[Hoffman2:Profile#Basics|Basics section]].  Read [[Hoffman2:Profile#Extras|Extras]] for some bells and whistles.
<blockquote style="border: solid red 2px; font-weight: bold; padding: 2px; background-color: lightgray;">This page is deprecated. Please see [[Hoffman2:Modules]] for more information about CCN-supported software on Hoffman2.</blockquote>
 
<!-- In UNIX systems, there are certain configuration files that get executed every time you login.  If you are using the Bash shell (default), you have a file called <code>.bash_profile</code> which is processed when you log in.  In order to make the FMRI toolset available to you on Hoffman2 and so you can work well with others, we recommend that you follow the instructions in the [[Hoffman2:Profile#Basics|Basics]] section.  Read [[Hoffman2:Profile#Extras|Extras]] for some bells and whistles.




==Basics==
==Basics==
You account has one last thing that needs to be edited before being usable.
Your account has one last thing that needs to be edited before being usable.


# [[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>
=====vim=====
#: [[Text Editors#Vim (H2) (OSX)|VIM]]
#: [[Text Editors#Vim (H2) (OSX)|VIM]]
#:* <pre>$ vim ~/.bash_profile</pre>
#:* <pre>$ vim ~/.bash_profile</pre>
# 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>source /u/project/FMRI/apps/etc/profile&#10;umask 007</pre>
# Save the file by typing
#:* <code>ESC + ":wq" + ENTER</code>
# Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.
=====emacs=====
#: [[Text Editors#Emacs (H2) (OSX)|Emacs]]
#: [[Text Editors#Emacs (H2) (OSX)|Emacs]]
#:* <pre>$ emacs ~/.bash_profile</pre>
#:* <pre>$ emacs ~/.bash_profile</pre>
#: [[Text Editors#NEdit (H2) (OSX)|NEdit]]
#:* <pre>$ nedit ~/.bash_profile</pre>
# Insert these lines at the '''bottom''' of the file
# Insert these lines at the '''bottom''' of the file
#:* <pre>source /u/home/FMRI/apps/etc/profile&#10;umask 007</pre>
#: [[Text Editors#Vim (H2) (OSX)|VIM]]
#:* 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 specified lines.
#: [[Text Editors#Emacs (H2)(OSX)|Emacs]]
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.
#:* Type or paste in the specified lines.
#:* Type or paste in the specified lines below.
#: [[Text Editors#NEdit (H2)|NEdit]]
#:* <pre>source /u/project/FMRI/apps/etc/profile&#10;umask 007</pre>
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.
# Save the File by typing:
#:* Type or paste in the specified lines.
# Save the file
#: [[Text Editors#Vim (H2) (OSX)|VIM]]
#:* <code>ESC + ":wq" + ENTER</code>
#: [[Text Editors#Emacs (H2) (OSX)|Emacs command line]]
#:* <code>CTRL+x, CTRL+c</code>
#:* <code>CTRL+x, CTRL+c</code>
#: [[Text Editors#Emacs (H2) (OSX)|Emacs GUI]]
# Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.
#:* <code>CTRL+x, CTRL+c, y</code>
 
#:* or use the menu system
=====nedit/gedit=====
#: [[Text Editors#NEdit (H2)|NEdit]]
#: [[Text Editors#NEdit (H2) (OSX)|NEdit]]
#:* Use the menu.
#:* <pre>$ nedit ~/.bash_profile</pre>
# Use the menu and Insert these lines at the '''bottom''' of the file
#:* <pre>source /u/project/FMRI/apps/etc/profile&#10;umask 007</pre>
#: Click the Save menu button.
# 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.


Line 43: Line 46:
===Curious?===
===Curious?===
For those that care, what you are doing is asking the computer to execute the file
For those that care, what you are doing is asking the computer to execute the file
  /u/home/FMRI/apps/etc/profile
  /u/project/FMRI/apps/etc/profile
every time you login.  This file modifies your PATH variable so you have access to the FMRI toolset.
every time you login.  This file modifies your PATH variable so you have access to the FMRI toolset.


Line 59: Line 62:


Adding the line
Adding the line
  fix_perms.sh -q /u/home/[GROUP]/data &
  fix_perms.sh -q /u/project/[GROUP]/data &
to the end of your bash profile will run the permission fixer on your group's common data directory in the background quietly each time you log in. '''Make sure to replace [GROUP] with the name of your Hoffman2 group (e.g. mscohen, sbook, cbearden, laltshul, jfeusner or mgreen).'''
to the end of your bash profile will run the permission fixer on your group's common data directory in the background quietly each time you log in. '''Make sure to replace [GROUP] with the name of your Hoffman2 group (e.g. mscohen, sbook, cbearden, laltshul, jfeusner or mgreen).'''


Line 93: Line 96:


  # Source to use FMRI Apps
  # Source to use FMRI Apps
  source /u/home/FMRI/apps/etc/profile
  source /u/project/FMRI/apps/etc/profile


  # Umask (Revoke Permissions)
  # Umask (Revoke Permissions)
  umask 007
  umask 007


  # Collaborative permissions (Replace collabDirectory with your project Directory)
  # Collaborative permissions (Replace collabDirectory with your project Directory and Uncomment
  fix_perms.sh -q /u/home/sbook/data/collabDirectory &
  #fix_perms.sh -q /u/project/sbook/data/collabDirectory &


  # Happy Colors
  # Happy Colors
Line 109: Line 112:




== Changing Passwords ==
How to change your Hoffman2 password.
: [[Hoffman2:Changing Passwords]].


== Changing Passwords ==
== Password-less Logins ==
Use the command below to change password. It will prompt you for your old password, and then the new password.
Log in to Hoffman2 without typing your password every time.  
$ passwd
: [[Hoffman2:Password-less Logins]].
Changing password for user joebruin.
Please enter your current password:
Please enter your new password:


==External Links==
==External Links==
Line 122: Line 125:
*[http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html Better explanation of umask]
*[http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html Better explanation of umask]
*[http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Coloration]
*[http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Coloration]
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Datetime format]
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Datetime format] -->

Latest revision as of 17:57, 26 June 2017

Back to all things Hoffman2

This page is deprecated. Please see Hoffman2:Modules for more information about CCN-supported software on Hoffman2.