Bash file

Stroops

Power Member
Alguém me consegue ajudar?

Running

Put the following somewhere in your shell setup file (.bashrc, .profile, .cshrc etc., depending on what shell you use), setting the "/usr/local/fsl" to wherever you have installed FSL:

bash / sh / ksh
FSLDIR=/usr/local/fsl
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH


tcsh / csh
setenv FSLDIR /usr/local/fsl
source ${FSLDIR}/etc/fslconf/fsl.csh
setenv PATH ${FSLDIR}/bin:${PATH}


To run the FSL tools from the command line, you can find the tools in $FSLDIR/bin. In general command-line programs are lower case (e.g. 'bet'). In general the GUI version is capitalised (e.g. 'Bet'), except on Mac, where '_gui' is appended because those file systems can't tell the difference between upper and lower case (e.g. 'Bet_gui').

To bring up a simple GUI which is just a menu of the main individual FSL GUI tools, just type fsl.

Como é que consigo criar este tal ficheiro, Bash? Há alguma maneira de conseguir fazer um atalho no ambiente de trabalho que me faça isto tudo até ao "just type fsl"?
 
Não crias, ele está criado. Abre o Nautilus (File Manager) e vai à tua Home. Carrega ctrl+h para veres os ficheiros hidden. Procura por um ficheiro chamado .bashrc (é bastante provavel que uses o BASH) e acrescentas essas linhas

Código:
FSLDIR=/usr/local/fsl
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH

E já está. Segundo o que diz aí, agora basta ir à consola, e digitar fsl :)
 
Código: FSLDIR=/usr/local/fsl
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
se o meu usr for daniel
e o meu pc for daniel-laptop

supostamente o código ficaria assim?

Código: FSLDIR=/daniel/daniel-laptop/fsl
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
certo?
 
ja consegui, estava no home/daniel!!!! desculpa lá, mas é que sou user do windows e so estou a introduzir o linux por causa deste FSL!!!
 
Back
Topo