one more regular way is to put a .sh file into /etc/profile.d/
On Thu, Aug 13, 2009 at 6:39 PM, wolf zinke<[log in to unmask]> wrote:
> Hi,
>
> you could modify /etc/profile. This should set everything for all users.
>
> wolf
>
> Chris Martin wrote:
>>
>> Hi,
>>
>> I have just installed FSL onto a Linux (CentOS5) machine that has multiple
>> user accounts. I installed the software into /usr/local, but through a
>> terminal where I was logged in as root.
>> However, to run it from the command line (as an individual user) I need to
>> insert the following (copied from the Linus install instructions page)
>> into
>> the user's .bashrc file:
>>
>> FSLDIR=/usr/local/fsl
>> . ${FSLDIR}/etc/fslconf/fsl.sh
>> PATH=${FSLDIR}/bin:${PATH}
>> export FSLDIR PATH
>>
>> My question is, can I insert this (or similar) into a 'global'
>> configuration/profile file, such that fsl could be run by all users,
>> without
>> having to edit every bashrc script.
>>
>> Many thanks for any help,
>>
>> Chris Martin
>>
>
--
Best Regards
National Key Laboratory of Cognitive Neuroscience and Learning
Beijing Normal University
Beijing, China. 100875
Tel: +86-13810154455
web: http://psychbrain.bnu.edu.cn
==============================================
Welcome to MuDuo JinSheng BBS @ Beijing Normal University
telnet://bbs.mdjs.org
http://bbs.mdjs.org
|