LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-22-2003, 06:30 AM   #1
andym
Member
 
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!

thanks

andy
 
Old 05-22-2003, 08:42 AM   #2
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Gentoo!!, Mandrake 9.1
Posts: 170

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 http://www.linuxnewbie.net/ or go googling.

Hope this helps,

PhilD
 
Old 05-22-2003, 11:16 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
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
 
  


Reply


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 04:35 AM
Problems with Samba? Confused about a few things. Help!!!!! Pedal2Metal Linux - Newbie 10 10-25-2004 09:42 PM
setting enviroment variables unimaginative Linux - General 5 01-08-2004 01:22 AM
setting the PS1 enviroment variable in xterm schatoor Linux - General 2 04-29-2003 08:41 AM
setting cygwin enviroment variables max2878 Linux - General 1 06-21-2002 03:20 AM


All times are GMT -5. The time now is 12:56 AM.

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