Hi Experts, How to keep AFNI/SUMA profiles and BOOTCAMP files at COMMON location to make available to all system wide users

Hi Experts,

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

  1. root
  2. shiva
  3. 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

========================= summary, please fix: =========================

  • login shell ‘bash’, trusting user to translate code examples from ‘tcsh’
  • please run: cp /usr/local/afni/bin/AFNI.afnirc ~/.afnirc
  • insufficient data for AFNI bootcamp

Again, my Questions is How to set PROFILE and BOOTCAMP at ONE common location which is accessible to all users on the System.

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).

I would suggest something like:

sudo -u shiva cp /usr/local/afni/bin/AFNI.afnirc ~shiva/.afnirc

And maybe apply the user with a variable.

How does that seem?

  • rick

Thank you for your time.

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.

Thank you.

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