<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Eric wrote something I was reading it and it disappeared I want to know.<br><br>I already know I am in over my head and I ask to many questions.<br><br>Thank you Jeff for caring.<br><br><br><br><div><hr id="stopSpelling">Date: Mon, 21 Apr 2014 21:03:37 -0500<br>From: chapinjeff@gmail.com<br>To: tclug-list@mn-linux.org<br>Subject: Re: [tclug-list] Firefox 28 on Ubuntu 10.04 [UnSolved]<br><br><div dir="ltr">An example of an assignment expression.<br></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Mon, Apr 21, 2014 at 8:18 PM, paul g <span dir="ltr"><<a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Sorry to double write here but what does.<br><br><br>This file is specifically meant for system-wide
environment variable settings. It is not a script file, but rather
consists of assignment expressions, one per line. <span></span><span></span><BR><span></span><span></span><BR><pre><span></span>FOO=bar <----mean?<br><br>Thanks.<br></pre><br><div><hr>From: <a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a><br>
To: <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>Date: Mon, 21 Apr 2014 19:16:55 -0500<br>Subject: Re: [tclug-list] Firefox 28 on Ubuntu 10.04 [Solved]<br><br>
<div dir="ltr">Thanks everyone for helping with this old post. I actually found out that /etc/environment is actually preferred for setting system wide path.<br><br>I attached a bit of reading to anyone interested. <br><br>
<h2>System-wide environment variables</h2>
<span></span>A suitable file for environment variable settings that affect the system as a whole (rather than just a particular user) is <strong>/etc/environment</strong>. An alternative is to create a file for the purpose in the <strong>/etc/profile.d</strong> directory. <span></span><span></span><BR>
<BR><h3>/etc/environment</h3>
<span></span>This file
is specifically meant for system-wide environment variable settings. It
is not a script file, but rather consists of assignment expressions, one
per line. <span></span><span></span><BR><span></span><span></span><BR><pre><span></span>FOO=bar</pre><span></span><span></span><strong>Note:</strong> Variable expansion does not work in <strong>/etc/environment</strong>. <span></span><span></span><BR>
<BR><h3>/etc/profile.d/*.sh</h3>
<span></span>Files with the .sh extension in the <strong>/etc/profile.d</strong>
directory get executed whenever a bash login shell is entered (e.g.
when logging in from the console or over ssh), as well as by the
DisplayManager when the desktop session loads. <span></span><span></span><BR>You can for instance create the file <strong>/etc/profile.d/myenvvars.sh</strong> and set variables like this: <span></span><span></span><BR>
<span></span><span></span><span></span><BR><pre><span></span>export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
<span></span>export PATH=$PATH:$JAVA_HOME/bin</pre><span></span><span></span>
<BR><h3>Other files</h3>
<span></span>While <strong>/etc/profile</strong>
is often suggested for setting environment variables system-wide, it is
a configuration file of the base-files package, so it's not appropriate
to edit that file directly. Use a file in <strong>/etc/profile.d</strong> instead as shown above. (Files in <strong>/etc/profile.d</strong> are sourced by <strong>/etc/profile</strong>.) <span></span><span></span><BR>
<strong>/etc/default/locale</strong> is specifically meant for system-wide <span>locale</span>
environment variable settings. It's written to by the installer and
when you use Language Support to set the language or regional formats
system-wide. On a desktop system there is normally no reason to edit
this file manually. <span></span><span></span><BR>The shell config file <strong>/etc/bash.bashrc</strong>
is sometimes suggested for setting environment variables system-wide.
While this may work on Bash shells for programs started from the shell,
variables set in that file are not available by default to programs
started from the graphical environment in a desktop session. <br><br>Thanks,<br><br>paul<br><br><br><br><div>> From: <a href="mailto:chewie@wookimus.net" target="_blank">chewie@wookimus.net</a><br>> To: <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
> Date: Wed, 26 Mar 2014 23:15:39 -0500<br>> Subject: Re: [tclug-list] Firefox 28 on Ubuntu 10.04 [Solved]<br>> <br>> Mike Miller <<a href="mailto:mbmiller%2Bl@gmail.com" target="_blank">mbmiller+l@gmail.com</a>> wrote:<br>
> > I wonder why. Where does PATH get set? I don't see PATH in<br>> > /etc/bash.bashrc or in /etc/profile, but it is coming from<br>> > somewhere. Anyone know where?<br>> <br>> Default PATH's are generally set in your /etc/login.defs as ENV_PATH for<br>
> users and ENV_SUPATH for super-users. This will set the default paths<br>> regardless of the shell you're using or how that shell was invoked.<br>> <br>> man -s5 login.defs<br>> <br>> Chad<br>> <br>
> _______________________________________________<br>> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>> <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>> <a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
</div> </div>
<br>_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a></div> </div></div>
<br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Chapin<br>President, CedarLug, retired<br>President, UNIPC, "I'll get around to it"<br>President, UNI Scuba Club<br>Senator, NISG, retired
</div>
<br>_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
tclug-list@mn-linux.org
http://mailman.mn-linux.org/mailman/listinfo/tclug-list</div> </div></body>
</html>