Your Accounts

From DeepSense Docs
Revision as of 13:00, 1 December 2020 by Lyang (talk | contribs)
Jump to: navigation, search

Every DeepSense user has his/her own user account on DeepSense's platform. It is important a user understands his/her account. If a user understands and manages his/her account well, he/she can save a lot of time while working in a HPC environment.

How to manage your profile to make your environment work better

Every user has a profile in his/her home directory. The file's name is '.bashrc'. It is automatically generated for you when your DeepSense account is created. The profile controls the environment variables and other profiles during a user's login session. There is a global profile on the system and a lot of environment variables and profiles have been setup for users such that users do not need to specify them in their own profiles. For example, a user can directly run C and C++ compiler 'gcc' without specifying the path of it. However, users may install software in their own home directories or use some installed software on our system, but the paths are not set in the global profile. In such a case, a user may want to set up some paths in his/her profile to make his/her work on our systems more convenient. To view the contents of your profile, you can use command 'cat ~/.bashrc'. To list the file, you will have to add parameters '-a' to the command 'ls' to see the filenames with a '.' at the beginning. For example:

[username@ds-lg-01 ~]$ ls -a
. ..                                                             anaconda2                                                     anaconda3                                               .bash_history                                                 .bash_logout                                                  index.html .bash_profile                                                 iris_test.csv .bashrc                                                       iris_training.csv

If you would like to modify your profile, you can use command 'vi ~/.bashrc' or other editors to change the contents of the file. For example, if you installed anaconda3 in your home directory and you would like your login session to automatically source the environment of your installed anconda3, you can add the following line to the end of your profile:

Source ~/anaconda3/etc/profild.d/

The above command assumes that anaconda3 is installed under your home directory. You may modify the path above when editing your profile. You can also add more paths to the environment variable PATH to run commands without specifying their absolute paths. For example, you installed a software called 'examplesoftware' and the binaries of the path is '~/examplesoftware/bin'. You can add the following line in your profile:

export PATH=$PATH:~/examplesoftware/bin