How to keep AFNI/SUMA profiles and Bootcamp files at COMMON location for access to all system wide Users.
I have 3 user logins in my CentOS 7 machine
root
shiva
imt
I installed all AFNI using shiva login (as sudo user) under /usr/local/afin/bin
For AFNI/SUMA profile creation, I gave the command sudo cp /usr/local/afni/bin/AFNI.afnirc ~/.afnirc
I also created the BOOTCAMP files under my home directory i.e. /home/shiva/
Now, the problem is:
If I login as root and imt users and do
#afni_system_check.py -check_all
Below sections are showing like:
------------------------------ data checks -------------------------------
data dir : missing AFNI_data6
data dir : missing AFNI_demos
data dir : missing suma_demo
data dir : missing afni_handouts
atlas : found TT_N27+tlrc under /usr/local/afni/bin
That command has a couple of issues. The file will probably be owned by root, and it will end up in the home directory of whomever is running the sudo command (not necessarily the desired user).
What I understand is, basically every user should run that command after their login right…!
And also please explain how point all users to use bootcamp files.
in my situation, I extracted all the bootcamp files at location /usr/local/afni/bin. How can I point all user to use that location. I mean, what command I need to give.
No, if it is the user running the command, then there should be no sudo, as in:
cp /usr/local/afni/bin/AFNI.afnirc ~/.afnirc
By the bootcamp files, do you mean the AFNI binaries? In that case, they should add /usr/local/afni/bin to their PATH variables. That is basically all they need to do. So depending on their login shell, that would be done in their .cshrc, .bash_profile or .bashrc file.
For example, in bash, they might include:
export PATH=${PATH}:/usr/local/afni/bin
rick
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.