Re: setting Env variable, and in Debian
Hi,
I still have not figured out why env variables defined
in /etc/profile do not show up.
On top /etc/profile problem, I need to add one more
(related) strange thing on that. I hope some one on
the list can point me the problem. When I run "export
JAVA_HOME=/usr/local/j2sdk1.4.1" on bash shell, it
works (correct directory comes up on echo $JAVA_HOME,
if I run this immediately). But, after some some the
variable vanishes on its own (some program that needs
JAVA_HOME, starts to complain such as tomcat, and echo
$JAVA_HOME, shows nothing too).
Does any one having the problem of such kind in
debian3.0.
Any help would be highly appreciated.
Damar
--- damar thapa <thapadamar@yahoo.com> wrote:
> Hi,
>
> Thanks all for your responses.
>
> Now, I got the situation that the PATH and ENV
> VARIABLE entries in /ete/profile do not show up
> neither in text nor X mode. It is either
> /etc/profile
> is not executed, or those entries were overwritten
> by
> other scripts. As far as overwritten is concern,
> PATH
> is fine (it may have been defined in some other
> scripts , but other varaiables such as JAVA_HOME,
> JAVA_COMPILER are very unlikely candidates!).
>
> As Eric Hanchrow suggested, I may have to study
> Shell
> in terms of how it works. Which manual do I have to
> study for this?
>
> I am using KDE, and use startx to start.
>
> Thanks.
>
> Damar
>
> --- Mark Roach <mrroach@okmaybe.com> wrote:
> > On Wed, 2002-08-21 at 01:51, damar thapa wrote:
> > > Hi,
> > >
> > > I have to set Env variables such as JAVA_HOME,
> and
> > > PATH. Since it has to be for every one, I put
> it
> > in
> > > /etc/profile file. But to my surprise, it works
> > only
> > > if I log into in text mode, not in X window.
> > >
> > > Are there any other files that should work for
> any
> > > environments, X or text.
> > >
> >
> > interesting, it doesn't seem like there is a
> > standard place to set
> > environment variables for X. It looks like it
> might
> > depend on the login
> > manager/window manager. KDM allows you to set some
> > things like PATH and
> > LD_LIBRARY_PREFIX within /etc/kde2/kdm/kdmrc but
> it
> > also seems to set
> > some of its own, GS_LIB, for example in
> > /usr/bin/kde2
> >
> > /etc/profile is for "Bourne compatible shells
> > (bash(1), ksh(1), ash(1),
> > ...)." which doesn't include X :)
> >
> > maybe a little more info about what environment
> you
> > are running under,
> > KDE, GNOME, etc, also are the users using startx
> or
> > [X|K|G]DM?
> >
> > -Mark
> >
> >
> >
>
> > ATTACHMENT part 2 application/pgp-signature
> name=signature.asc
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
>
> --
> To UNSUBSCRIBE, email to
> debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
Reply to: