Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-22-2003, 07:30 AM   #1
Registered: Apr 2003
Location: UK
Posts: 52

Rep: Reputation: 15
HELP! i am really confused by enviroment setting and other things!

hi, i am trying to get a program running and am finding it very difficult and i think that i need some guidence! firstly to change the shell i am in do i type chsh then type the new shell as i do this, and when i type finger it says the new shell but if i type env, it says the name of the old shell.

secondly, i need to set an enviroment variable, i think i get what this means but i don't know how to do it, why doesn't typing work?:

setenv FREESURFER_HOME /home/andy/freesurfer

where the enviroment (i presume is FREESURFER_HOME) and the /home/andy/freesurfer is where all the stuff for it lives on my hard-drive

also any good online linux for dummies type guides in relation to this would be good!


Old 05-22-2003, 09:42 AM   #2
Registered: Mar 2003
Location: Iowa, US
Distribution: Mint
Posts: 174

Rep: Reputation: 30
I am not sure about how to change shells. I use bash myself and haven't found need to change.

To set an environment variable try the following:
export FREESURFER_HOME=/home/andy/freesurfer

If you want this to be a permanent variable add it to your ~/.bashrc file or equivalent.

This may be different in other shells, but this works for bash. I am not sure about guides for this in particular, but you may want to check out or go googling.

Hope this helps,

Old 05-22-2003, 12:16 PM   #3
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
chsh can change your shell

for set a variable in csh
i think it's
set A=B
export A
you can skip the set with bash and
export A=B


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse: confused on many things, why is installing things so hard? blackflare Linux - Newbie 11 10-16-2007 05:35 AM
Problems with Samba? Confused about a few things. Help!!!!! Pedal2Metal Linux - Newbie 10 10-25-2004 10:42 PM
setting enviroment variables unimaginative Linux - General 5 01-08-2004 02:22 AM
setting the PS1 enviroment variable in xterm qanopus Linux - General 2 04-29-2003 09:41 AM
setting cygwin enviroment variables max2878 Linux - General 1 06-21-2002 04:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration