Hoffman2:Profile: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
(Created page with "Back to all things Hoffman2 You account has one last thing that needs to be edited before being usable. # [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH i...")
 
No edit summary
Line 1: Line 1:
[[Hoffman2|Back to all things Hoffman2]]
[[Hoffman2|Back to all things Hoffman2]]


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


Line 26: Line 27:
  umask 007
  umask 007
makes it so that any files you create will have a default permission of about 770 so that other people in your group have write permissions.
makes it so that any files you create will have a default permission of about 770 so that other people in your group have write permissions.
==Extras==
You can change the content and color of your command prompt by editing your bash_profile.  There is a great explanation of how to do this [http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html here].
Some of the content you can include in the command prompt:
;Current time
: You can format this however you want.  This helps when looking back through your Terminal to find when you made certain changes to files.
;Current working directory
: So you always know where you are in a filesystem and don't need to constantly retype <code>pwd</code>.
;Username
: Who you are.  Helpful if you are logged into multiple servers under multiple accounts and need help keeping track.
;Host
: The name of the computer you are logged into.  This also helps you know where you are at all times.




Line 32: Line 49:
*[http://linux.die.net/man/2/umask Man for umask]
*[http://linux.die.net/man/2/umask Man for umask]
*[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]

Revision as of 18:47, 20 April 2012

Back to all things Hoffman2

Basics

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

  1. SSH into Hoffman2
  2. Use your favorite text editor to edit the file ~/.bash_profile, e.g.
    $ vim ~/.bash_profile
    or
    $ emacs ~/.bash_profile
  3. Insert these lines at the bottom of the file
    source /u/home/FMRI/apps/etc/profile
    umask 007
  4. Save the file
    With VIM you would type
    ESC + ":wq" + ENTER
    With Emacs you would type
    CTRL+x, CTRL+c
  5. Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.


Curious?

For those that care, what you are doing is asking the computer to execute the file

/u/home/FMRI/apps/etc/profile

every time you login. This file modifies your PATH variable so you have access to the FMRI toolset.

The last line

umask 007

makes it so that any files you create will have a default permission of about 770 so that other people in your group have write permissions.


Extras

You can change the content and color of your command prompt by editing your bash_profile. There is a great explanation of how to do this here.

Some of the content you can include in the command prompt:

Current time
You can format this however you want. This helps when looking back through your Terminal to find when you made certain changes to files.
Current working directory
So you always know where you are in a filesystem and don't need to constantly retype pwd.
Username
Who you are. Helpful if you are logged into multiple servers under multiple accounts and need help keeping track.
Host
The name of the computer you are logged into. This also helps you know where you are at all times.


External Links