Re: Debian's javac vs Sun's new installation of j2sdk
On Fri, Jul 09, 2004 at 12:39:35PM -0400, H. S. wrote:
> Apparently, _Michael B Allen_, on 07/09/04 04:50,typed:
>
> >
> >Note a good way to setup the shell environment in X so you can run java
> >and javac on the commandline is to start the session manager through a
> >login shell by changing:
> >
> > /etc/X11/Xsession.d/99xfree86-common_start
> >
> >to read:
> >
> > exec -l $SHELL -c "$STARTUP"
> >
> >People coming from RedHat will definately want to do this. Otherwise
> >shells don't initialize their environment by sourcing /etc/profile and
> >thus your exports will not be visible.
>
>
> True .My gnome-terminal is able to see /etc/profile becuase I have made
> it to be a login shell. And when I ssh to the machine and open xterm, it
> doesn't know about /etc/ profile.
>
> I will try what you mentioned, but I am also thinking about trying
> making a deb file.
>
What I do personal, is I just put everything I wanted set into
/etc/profile and make /etc/bash.bashrc call /etc/profile.
Its main drawback is that its harder to make changes that would be only
in effect for login shells, but I use login shells so rarely and I have
nothing I would want different that it doesn't matter.
Another option is to put the common part into a third file and source
it from both /etc/profile and /etc/bash.bashrc
> thanks,
> ->HS
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
> +++++++++++++++++++++++++++++++++++++++++++
> This Mail Was Scanned By Mail-seCure System
> at the Tel-Aviv University CC.
>
Reply to: