<div dir="ltr">Having locked myself out of an account before by messing with login scripts, my advice is: after you change your login scripts (.profile, etc) DONT logout to test them. Instead, while still logged in, try to establish a second connection into the same account (e.g., via ssh). If that works, great you are all set. If you can't login, not a problem because you are still connected through the first connection and can revert things.</div>
<div class="gmail_extra"><br clear="all"><div><div dir="ltr">--Jeremy</div></div>
<br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 12:25 PM, Williams, Travis <span dir="ltr"><<a href="mailto:trwilliams@mcw.edu" target="_blank">trwilliams@mcw.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
I don't think you wanted to do that with the PATH: directive. You want to add a 'source' to your login scripts.<br>
<br>
So if there is a "/etc/fsl/5.0/fsl.sh" file (check that it is in fact there) then you want to add the following line to the END of your .bashrc file in your home directory:<br>
<br>
source /etc/fsl/5.0/fsl.sh<br>
<br>
Then save, log out and log back in, or just open and close the terminal or type: hash -r and see if you can then see the fsl programs.<br>
<br>
You can also (if you have root access and intend for several users to use the fsl programs) add the 'source /etc/fsl/5.0/fsl.sh' line to the end of the /etc/bash.bashrc file.<br>
<br>
Hope that helps.<br>
<br>
~Travis Williams<br>
IS Manager 1<br>
Neurology Department,<br>
Medical College of Wisconsin<br>
________________________________<br>
From: Neurodebian-users [neurodebian-users-bounces+trwilliams=<a href="mailto:mcw.edu@lists.alioth.debian.org">mcw.edu@lists.alioth.debian.org</a>] on behalf of Dillon Niederhut [<a href="mailto:dillon.niederhut@berkeley.edu">dillon.niederhut@berkeley.edu</a>]<br>

Sent: Thursday, March 13, 2014 10:58 AM<br>
To: Kiyotaka Nemoto<br>
Cc: <a href="mailto:neurodebian-users@lists.alioth.debian.org">neurodebian-users@lists.alioth.debian.org</a><br>
Subject: Re: [Neurodebian-users] Command line issues with FSL<br>
<div class=""><br>
Hi Kiyotaka,<br>
<br>
Thanks for your reply. As I said above, I'm not very familiar with Unix systems. I tried adding ". /etc/fsl/5.0/fsl.sh" to the end of the file. I logged out and logged back in, and still could not access command line functions.<br>

<br>
</div>I looked up how to edit .profile and add paths in the Ubuntu help pages<<a href="http://askubuntu.com/questions/tagged/.profile" target="_blank">http://askubuntu.com/questions/tagged/.profile</a>>, and added the above path for FSL to the end of the .profile file using something like PATH="PATH:$. /etc/fsl/5.0/fsl.sh". I logged out of the system, but now I cannot log back in.<br>

<div class=""><br>
I'll try to edit out the new lines via the command prompt in recovery mode. In the mean time, any help with the correct syntax would be greatly appreciated.<br>
<br>
Thanks,<br>
Dillon<br>
<br>
Dillon Niederhut<br>
Doctoral Candidate<br>
University of California, Berkeley<br>
Department of Anthropology<br>
232 Kroeber Hall<br>
Berkeley, CA 94720<br>
<br>
<br>
</div><div class="">On Thu, Mar 13, 2014 at 12:58 AM, Kiyotaka Nemoto <<a href="mailto:kiyotaka@nemotos.net">kiyotaka@nemotos.net</a><mailto:<a href="mailto:kiyotaka@nemotos.net">kiyotaka@nemotos.net</a>>> wrote:<br>

Dear Dillon,<br>
<br>
The solution is simple and written in the FSL website.<br>
<br>
<a href="http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FslInstallation/Linux" target="_blank">http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FslInstallation/Linux</a><br>
<br>
<br>
Quick start for Debian/Ubuntu users<br>
<br>
As of fsl 5.0 all you need do is add ". /etc/fsl/5.0/fsl.sh" to the end of your .profile file. When you next login you should find the fsl programs are available.<br>
<br>
<br>
Hope this helps,<br>
<br>
Kiyotaka<br>
<br>
<br>
<br>
<br>
<br>
</div>2014-03-13 15:03 GMT+09:00 Dillon Niederhut <<a href="mailto:dillon.niederhut@berkeley.edu">dillon.niederhut@berkeley.edu</a><mailto:<a href="mailto:dillon.niederhut@berkeley.edu">dillon.niederhut@berkeley.edu</a>>>:<br>

<div class="">Hello everyone,<br>
<br>
I have FSL 5.0.6 installed on Ubuntu 12.0.4LTS through the neurodebian repository. The GUI works just fine, but when I try to run commands through the terminal, I consistently get errors saying the command cannot be found. This is true for starting the FSL GUI through the command line, and every command for structural imaging. diffusion imaging, and brain extraction. The only exception is FSLView, which seems to work just fine from the command line.<br>

<br>
I tried uninstalling and reinstalling the FSL core, which hasn't helped. I've dug around a bit through the google search results for this issue, but trying different command names hasn't helped either. I found a few archived email exchanges talking about configuring bash files, but I don't know enough about unix to know what this is. Can anyone help?<br>

<br>
Thanks,<br>
Dillon<br>
<br>
Dillon Niederhut<br>
Doctoral Candidate<br>
University of California, Berkeley<br>
Department of Anthropology<br>
232 Kroeber Hall<br>
Berkeley, CA 94720<br>
<br>
<br>
_______________________________________________<br>
Neurodebian-users mailing list<br>
</div><a href="mailto:Neurodebian-users@lists.alioth.debian.org">Neurodebian-users@lists.alioth.debian.org</a><mailto:<a href="mailto:Neurodebian-users@lists.alioth.debian.org">Neurodebian-users@lists.alioth.debian.org</a>><br>

<div class=""><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/neurodebian-users" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/neurodebian-users</a><br>
<br>
<br>
<br>
--<br>
Kiyotaka Nemoto, M.D., Ph.D.<br>
Assistant Professor<br>
Department of Psychiatry<br>
Division of Clinical Medicine, Faculty of Medicine<br>
University of Tsukuba<br>
1-1-1Tennodai Tsukuba, Ibaraki 305-8575, Japan<br>
</div>E-mail: <a href="mailto:kiyotaka@nemotos.net">kiyotaka@nemotos.net</a><mailto:<a href="mailto:kiyotaka@nemotos.net">kiyotaka@nemotos.net</a>><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Neurodebian-users mailing list<br>
<a href="mailto:Neurodebian-users@lists.alioth.debian.org">Neurodebian-users@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/neurodebian-users" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/neurodebian-users</a><br>
</div></div></blockquote></div><br></div>