Setup PATH for X Window (urxvt)

On Tue, 1 May 2007 12:03:23 +0200
csanyipal wrote:

> Hello!
>
> I try to setup PATH permanently for X Window, that is for urxvt, in
> which must to run brlcad.
>
> brlcad is here: /usr/brlcad/bin
>
> Now, if I run mged (editor for brlcad) I must to open urxvt, then
> setup PATH for brlcad and then can run mged.
>
> I want to setup PATH permanently to can run brlcad without setting up
> every time the PATH.
>
> I try to write these:
> PATH=/usr/brlcad/bin:$PATH
> export PATH
>
> in several places:
> mcedit /etc/profile
> mcedit ~/.xsession.d/10auto-start
> mcedit .bash_profile
> mcedit .xsession
> mcedit ~/GNUstep/Library/WindowMaker/autostart
>
> but env shows me that the PATH have not setup to brlcad:
> PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
>
> How can I setup PATH for brlcad permanently?
>

Are you using GDM to log in? It does execute a login shell default. However, you can circumvent that by making .xsession invoke a login shell, i.e., by changing the first line
to

#!/bin/sh --login

Alternatively, you could start X by running 'startx' after logging
in on a virtual console. Then the parent of all X processes will be a
login shell.

Better, though, would be to install the software to /usr/local instead.

--

Liam

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Setup PATH for X Window (urxvt)

On Tue, 1 May 2007 11:51:07 +0100
Liam O'Toole wrote:

> Are you using GDM to log in? It does execute a login shell default.

Just to correct an appalling typo: the above should read "It does not
execute a login shell by default".

--

Liam

--

Setup PATH for X Window (urxvt)

On Tue, May 01, 2007 at 11:51:07AM +0100, Liam O'Toole wrote:
> On Tue, 1 May 2007 12:03:23 +0200
> csanyipal wrote:
>
> > Hello!
> >
> > I try to setup PATH permanently for X Window, that is for urxvt, in
> > which must to run brlcad.
> >
> > brlcad is here: /usr/brlcad/bin
> >
> > Now, if I run mged (editor for brlcad) I must to open urxvt, then
> > setup PATH for brlcad and then can run mged.
> >
> > I want to setup PATH permanently to can run brlcad without setting up
> > every time the PATH.
> >
> > I try to write these:
> > PATH=/usr/brlcad/bin:$PATH
> > export PATH
> >
> > in several places:
>
> > but env shows me that the PATH have not setup to brlcad:
> > PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> >
> > How can I setup PATH for brlcad permanently?

> Better, though, would be to install the software to /usr/local instead.

Or put a symlink in /usr/local/bin to the files in /usr/brlcad/bin
Or a script in /usr/local/bin that calls /usr/brlcad/bin/...

Doug.

--

Setup PATH for X Window (urxvt)

On Tue, 1 May 2007 16:39:39 +0200
csanyipal wrote:

> On Tue, May 01, 2007 at 11:51:07AM +0100, Liam O'Toole wrote:
>
> > Are you using GDM to log in? It does execute a login shell default.
>
> Yes. I edit the /etc/gdm/Init/Default but still not change the PATH.
> I try to edit /etc/gdm/PostLogin/Default too, but with no success.

Then the solution which involves running .xsession in a login shell
should work.

>
> > Better, though, would be to install the software to /usr/local
> > instead.
>
> I agree with this. But the brlcad package can one to download in
> tar.bz2 package or from CVS repository. Which one can one use to
> build the debian package from it?

Usually stable releases are made available as a tarball. So I would try
that first.

--

Liam

--

Setup PATH for X Window (urxvt)

On Tue, May 01, 2007 at 04:39:39PM +0200, csanyipal wrote:
> On Tue, May 01, 2007 at 11:51:07AM +0100, Liam O'Toole wrote:

> > Better, though, would be to install the software to /usr/local instead.
>
> I agree with this. But the brlcad package can one to download in tar.bz2
> package or from CVS repository. Which one can one use to build the debian
> package from it?

Shouldn't pre-compiled tarballs go in /opt?

Doug.

--

Setup PATH for X Window (urxvt)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Douglas Allan Tutty wrote:
> On Tue, May 01, 2007 at 04:39:39PM +0200, csanyipal wrote:
>> On Tue, May 01, 2007 at 11:51:07AM +0100, Liam O'Toole wrote:
>
>>> Better, though, would be to install the software to /usr/local instead.
>> I agree with this. But the brlcad package can one to download in tar.bz2
>> package or from CVS repository. Which one can one use to build the debian
>> package from it?
>
> Shouldn't pre-compiled tarballs go in /opt?

Does it really make a difference? What matters is that it is in a
different place than /bin or /usr/bin so that the system won't clobber
it when it gets upgraded. Perhaps I am wrong. Personally, I have some
things in /opt and some others in /usr/local/bin.

Joe
- --
Registerd Linux user #443289 at http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGN58eiXBCVWpc5J4RAljwAJ0Qc4eUhYKKofLuCBnCTXdQHZQl2gCggqtt
LFhhrmDGGkZZhgFGlctwj/c=
=YMCt
-----END PGP SIGNATURE-----

--

Setup PATH for X Window (urxvt)

On Tue, May 01, 2007 at 10:12:14PM +0200, Joe Hart wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Douglas Allan Tutty wrote:
> > On Tue, May 01, 2007 at 04:39:39PM +0200, csanyipal wrote:
> >> On Tue, May 01, 2007 at 11:51:07AM +0100, Liam O'Toole wrote:
> >
> >>> Better, though, would be to install the software to /usr/local instead.
> >> I agree with this. But the brlcad package can one to download in tar.bz2
> >> package or from CVS repository. Which one can one use to build the debian
> >> package from it?
> >
> > Shouldn't pre-compiled tarballs go in /opt?
>
> Does it really make a difference? What matters is that it is in a
> different place than /bin or /usr/bin so that the system won't clobber
> it when it gets upgraded. Perhaps I am wrong. Personally, I have some
> things in /opt and some others in /usr/local/bin.

I suppose it makes a difference depending on how update tarballs get
handled. If you just get a new tarball, how do you ensure that all the
old stuff is removed? With everything under /opt then you just remove
the directory.

If you're compiling, then a make uninstall (or whatever) handles this.

Doug.

--

Setup PATH for X Window (urxvt)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Douglas Allan Tutty wrote:
> On Tue, May 01, 2007 at 10:12:14PM +0200, Joe Hart wrote:
[snip]
>>> Shouldn't pre-compiled tarballs go in /opt?
>>
>> Does it really make a difference? What matters is that it is in a
>> different place than /bin or /usr/bin so that the system won't clobber
>> it when it gets upgraded. Perhaps I am wrong. Personally, I have some
>> things in /opt and some others in /usr/local/bin.
>
> I suppose it makes a difference depending on how update tarballs get
> handled. If you just get a new tarball, how do you ensure that all the
> old stuff is removed? With everything under /opt then you just remove
> the directory.
>
> If you're compiling, then a make uninstall (or whatever) handles this.

Some people put them in /home/username so that only they have permission
to use them, and others put them in /opt and yet others in /usr/bin.
IMO, it doesn't really matter as long as one knows what is where, but
you are definitely right in saying that if they are in one place it
would be easier to keep track of them.

Joe

- --
Registerd Linux user #443289 at http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOOWViXBCVWpc5J4RAipUAJ4nzijPjBXWoH5ba4XoanW3ggmyGwCgwtY+
Ne8z9sGBVCYlJ9j4YFkZpnE=
=LEks
-----END PGP SIGNATURE-----

--

Syndicate content