Re: [newbie] Environment variables, evolution and bonobo
Thanks, Dave. If I wanted to make the new evolution available to all users, though, why wouldn't I edit the /etc/profile rather than my own bash profile? Terry p.s. note the date! My system went down as I was composing this message. Since then the box has traveled across the country to San Francisco and had a new mobo put in. It arrived on the east coast today and I'm getting the system up and running. A few glitches...they added a sound card, the ESS Solo 1 Audiodrive (the old board, an A7M266, had built in sound, the new board, an A7K266 doesn't) 1/23/02 On Sun, 2002-01-06 at 15:21, Dave Sherman wrote: > You would be better off modifying the .bash_profile in your home > directory. Otherwise, you are correct in your understanding of > environment variables, how to set them, and how to export them. > > Dave > > On Sun, 2002-01-06 at 12:21, Terry Smith wrote: > > I think this is a prety basic question, but that's why I'm a newbie:-). > > > > Today's task is upgrading evolution. > > > > Short version: > > I'd like to add an environment variable. I've never done this but have > > RTFM'd. Am I correct in assuming that I could edit the '/etc/profile' > > file, add a new line such as 'ENVVAR=value' and then add the ENVVAR to > > the 'EXPORT' line? > > > > Longer version: > > I found a magazine in the local bookstore - "LinuxFormat" - published in > > the UK. Seems pretty good (and also quite expensive). Anyone have > > experience with the mag? Anyway, when you buy the mag you get a CD with > > lots of software on it, including, in this case, Evolution 1.0 beta 5. > > Now I know I can go to Ximian's site and grab this stuff but I'm trying > > to upgrade my evolution from the CD supplied files. > > > > I unpacked the tarball and ran ./configure. I got an error to the effect > > that configure couldn't locate the oaf-config file. Well I don't know > > what this is but I did a locate and found an /etc/oaf directory with a > > couple of files in it (oat-config.xml and auto-config.xml.example). > > Configure says I should set my environment variable OAF-CONFIG to the > > full path name of oaf-config. > > > > So can I modify my /etc/profile file by adding a line, viz. > > > > OAF-CONFIG=/etc/oaf > > > > and then adding > > > > OAF-CONFIG to the line in the /etc/profile that EXPORTS environmental > > variables? > > > > TIA. > > > > Terry Smith > > Hatchville, MA, USA > > > > > > > > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Environment variables, evolution and bonobo
You would be better off modifying the .bash_profile in your home directory. Otherwise, you are correct in your understanding of environment variables, how to set them, and how to export them. Dave On Sun, 2002-01-06 at 12:21, Terry Smith wrote: > I think this is a prety basic question, but that's why I'm a newbie:-). > > Today's task is upgrading evolution. > > Short version: > I'd like to add an environment variable. I've never done this but have > RTFM'd. Am I correct in assuming that I could edit the '/etc/profile' > file, add a new line such as 'ENVVAR=value' and then add the ENVVAR to > the 'EXPORT' line? > > Longer version: > I found a magazine in the local bookstore - "LinuxFormat" - published in > the UK. Seems pretty good (and also quite expensive). Anyone have > experience with the mag? Anyway, when you buy the mag you get a CD with > lots of software on it, including, in this case, Evolution 1.0 beta 5. > Now I know I can go to Ximian's site and grab this stuff but I'm trying > to upgrade my evolution from the CD supplied files. > > I unpacked the tarball and ran ./configure. I got an error to the effect > that configure couldn't locate the oaf-config file. Well I don't know > what this is but I did a locate and found an /etc/oaf directory with a > couple of files in it (oat-config.xml and auto-config.xml.example). > Configure says I should set my environment variable OAF-CONFIG to the > full path name of oaf-config. > > So can I modify my /etc/profile file by adding a line, viz. > > OAF-CONFIG=/etc/oaf > > and then adding > > OAF-CONFIG to the line in the /etc/profile that EXPORTS environmental > variables? > > TIA. > > Terry Smith > Hatchville, MA, USA > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Do not meddle in the affairs of dragons, for you are crunchy, and good with ketchup. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] environment variables not loading?
thanks to all those who replied. :) as i mentioned in my original post, i did put "export $MYVARIABLE" in the .bash_profile file, but still wasn't working. i will try putting my variables in the .bashrc file... thanks again, and have a great weekend... :) At 15:04 01/12/07 -0500, you wrote: >On Thu, 06 Dec 2001 21:57:30 +0900 >tek1 <[EMAIL PROTECTED]> wrote: > > > i've specified environment variables in both /etc/profile (for all users) > > and home/me/.bash_profile (for myself), but upon boot up and automatically > > logging in to my account, the environment variables haven't been loaded. > > when i do "echo $ENV" (whatever the environment variable is), it is blank > > (not set). > > > > in the profile files, after declaring each env, i also wrote "export $ENV"... > > > > any ideas? > > > > thanks. > > > >hi, > try placing them on $USER/.bashrc. That is where i put my environment > variable declarations. > >HTH > >-- > >"Programming, an artform that fights back." > >=== > >Anuerin G. Diaz >Design Engineer >25/F Equitable-PCI Tower >ADB Ave. cor. Poveda St., >Ortigas Center, Pasig City, >Philippines 1605 > >Tel no: (632) 6383070 loc 75 >=== > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] environment variables not loading?
Have you got the format right? E.G. TERM=vt100 ; export TERM If you don't export the variables they will not be seen outside of the current process. I put my environment definitions in .bashrc JK Anuerin G.Diaz wrote: >On Thu, 06 Dec 2001 21:57:30 +0900 >tek1 <[EMAIL PROTECTED]> wrote: > >>i've specified environment variables in both /etc/profile (for all users) >>and home/me/.bash_profile (for myself), but upon boot up and automatically >>logging in to my account, the environment variables haven't been loaded. >>when i do "echo $ENV" (whatever the environment variable is), it is blank >>(not set). >> >>in the profile files, after declaring each env, i also wrote "export $ENV"... >> >>any ideas? >> >>thanks. >> > >hi, > try placing them on $USER/.bashrc. That is where i put my environment variable >declarations. > >HTH > > > > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] environment variables not loading?
Try typing "env", and see what you get. You can also check for specific path statements with: "echo $PATH" On Thu, 2001-12-06 at 04:57, tek1 wrote: > i've specified environment variables in both /etc/profile (for all users) > and home/me/.bash_profile (for myself), but upon boot up and automatically > logging in to my account, the environment variables haven't been loaded. > when i do "echo $ENV" (whatever the environment variable is), it is blank > (not set). > > in the profile files, after declaring each env, i also wrote "export $ENV"... > > any ideas? > > thanks. > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Ric Tibbetts Linux registration number: 55684 If you want to help advertise Linux - point your friends to http://counter.li.org/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] environment variables not loading?
On Thu, 06 Dec 2001 21:57:30 +0900 tek1 <[EMAIL PROTECTED]> wrote: > i've specified environment variables in both /etc/profile (for all users) > and home/me/.bash_profile (for myself), but upon boot up and automatically > logging in to my account, the environment variables haven't been loaded. > when i do "echo $ENV" (whatever the environment variable is), it is blank > (not set). > > in the profile files, after declaring each env, i also wrote "export $ENV"... > > any ideas? > > thanks. > hi, try placing them on $USER/.bashrc. That is where i put my environment variable declarations. HTH -- "Programming, an artform that fights back." === Anuerin G. Diaz Design Engineer 25/F Equitable-PCI Tower ADB Ave. cor. Poveda St., Ortigas Center, Pasig City, Philippines 1605 Tel no: (632) 6383070 loc 75 === Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] environment variables not loading?
i've specified environment variables in both /etc/profile (for all users) and home/me/.bash_profile (for myself), but upon boot up and automatically logging in to my account, the environment variables haven't been loaded. when i do "echo $ENV" (whatever the environment variable is), it is blank (not set). in the profile files, after declaring each env, i also wrote "export $ENV"... any ideas? thanks. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Environment Variables
Hi Karen, Karen Heiby wrote: > > Hi Peter, > > So are you saying that I have to write the environment variables to the > executable file of the process I want to start? Or do I need to write > it in .bashprofile? Or where? > Settings are never written to the executable (as in DOS) because this would not be multi-user friendly. (In most cases you wouldnt have write permission for doing so) You write the assignment command and the export command to a shell script. eg. TEST=123 export TEST (For other shells than bash the syntax is different) Global Variables go to /etc/profile. Variables local to the current session goto ~/.bash_profile. (In some distributions this is called ~/.profile) If a programm needs special environment vars,then you would write a startup script for this program,wich sets the environment and then starts the program. For example netscape is started this way. Have a look to the script /usr/bin/netscape to have an example. Also look to te first Mandrake CDROM file:/mnt/cdrom/doc/HOWTO/DOS-Win-to-Linux-HOWTO This is a good starting point for formerly DOS and Win$ users. HTH, and greetings, Peter
Re: [newbie] Environment Variables
Hi Peter, So are you saying that I have to write the environment variables to the executable file of the process I want to start? Or do I need to write it in .bashprofile? Or where? Thank you! Karen Peter Heckert wrote: > > Hi Karen, > > each prozess has an "environment", wich is a private memory range. > When you set an environment variable,then you are writing to this memory. > If you "export" an environment variable,then this means,that > each prozess which you will start afterwards, will inherit a copy of > this variable. Variables set in parallel or previous processes > are not affected. So you cannot change the environment of processes, > which are already running. > All environment vars are volatile,so if you need permanent settings > then you will need to write them to a shell script. > You can have later shell scripts overwriting this inherited copy of > the parent environment without affecting previously started prozesses > or parallel prozesses. > > However,I dont know if it is possible to run 2 different Java VM's at the > same time, if this is what you want. (I would doubt this) > > Im a Newbie and never posted to any mailing list before,so this is > my first try. If there are mistakes,then please correct me. > > greetings, > > Peter > > "Karen M. Heiby" wrote:
Re: [newbie] Environment Variables
Hi Karen, each prozess has an "environment", wich is a private memory range. When you set an environment variable,then you are writing to this memory. If you "export" an environment variable,then this means,that each prozess which you will start afterwards, will inherit a copy of this variable. Variables set in parallel or previous processes are not affected. So you cannot change the environment of processes, which are already running. All environment vars are volatile,so if you need permanent settings then you will need to write them to a shell script. You can have later shell scripts overwriting this inherited copy of the parent environment without affecting previously started prozesses or parallel prozesses. However,I dont know if it is possible to run 2 different Java VM's at the same time, if this is what you want. (I would doubt this) Im a Newbie and never posted to any mailing list before,so this is my first try. If there are mistakes,then please correct me. greetings, Peter "Karen M. Heiby" wrote: > > My main concern is java libraries. I downloaded jdk117_v1a and > jdk117_v3 and have those installed, besides a directory that is already > in my /usr/local/bin directory called "java", and whatever java stuff > Netscape puts on here. > > WHen I export a JAVA_HOME, am I appending to a file somewhere for a new > place to include when looking for java files? Or am I overwriting the > path (therefore making my other java homes not work anymore?) If > there's a file I'm writing to, what is it? > > I ask because I have a few programs that call for different java > versions (Netscape seems to come with its own package) and I don't want > one program to screw the other over if possible. For example, I don't > want to overwrite paths that Netscape needs when I install jdk117 for > ICQJava and in doing so, export a JAVA_HOME path to jdk117. But is this > what I am in fact doing? >
Re: [newbie] Environment Variables
On Tue, 09 Nov 1999, you wrote: > WHen I export a JAVA_HOME, am I appending to a file somewhere for a new > place to include when looking for java files? Or am I overwriting the > path (therefore making my other java homes not work anymore?) If > there's a file I'm writing to, what is it? you might try 'man bash' or 'man setenv' >From what i've gleaned by digging through various /etc files and frequent use of export myself, i dont think it necessarily overwrites anything. I think its just treated as a seperate environment variable. If you look in /etc/profile you see that there are several variables defined then all issued via one export command. So i think bash just treats each successive export as just another one. I think that anything exported via CLI only is in effect till logout. . . .. . .this is all probably wrong and im doing alot of guessing assuming and going on what ive seen/done/heard. . .someone correct me please! -- Seth Gibson www.mp3.com/PSM0x2710 members.tripod.com/cybernetic_thunder (Under Construction) Aggression Takes Its Toll.
[newbie] Environment Variables
Hello, I have three Linux books and none of them really explain what it is I'm doing when I set an environment variable. I gather that I'm telling my kernel where to find things, but that's a foggy concept. My main concern is java libraries. I downloaded jdk117_v1a and jdk117_v3 and have those installed, besides a directory that is already in my /usr/local/bin directory called "java", and whatever java stuff Netscape puts on here. WHen I export a JAVA_HOME, am I appending to a file somewhere for a new place to include when looking for java files? Or am I overwriting the path (therefore making my other java homes not work anymore?) If there's a file I'm writing to, what is it? I ask because I have a few programs that call for different java versions (Netscape seems to come with its own package) and I don't want one program to screw the other over if possible. For example, I don't want to overwrite paths that Netscape needs when I install jdk117 for ICQJava and in doing so, export a JAVA_HOME path to jdk117. But is this what I am in fact doing? If someone can explain this to me, or point me to literature that will answer my question, I would appreciate it. Right now I have "Running Linux" by O'Reilly and I have "Redhat Unleashed" and then "The Complete Idiot's Guide to Linux" and they really don't answer my question. I don't see any HOW TO's about this topic, or any docs. Thanks!! Karen