Andrzej Szymanski
2009-Jun-08 18:38 UTC
[CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)
Hello, I'm trying to get the LD_LIBRARY_PATH set from .bash_profile (Centos 5.3 fully updated). This is a part of my .bash_profile: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/szyman/omnet/omnetpp-2.3p1/lib export R_HISTSIZE=2000000000 Everything works fine under standard ssh login, but under NX client the LD_LIBRARY_PATH variable is missing (the R_HISTSIZE is exported properly). Any hints? Thanks, Andrzej
Filipe Brandenburger
2009-Jun-08 18:44 UTC
[CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)
Hi, On Mon, Jun 8, 2009 at 14:38, Andrzej Szymanski<szymans at agh.edu.pl> wrote:> Everything works fine under standard ssh login, but under NX client the > LD_LIBRARY_PATH variable is missing (the R_HISTSIZE is exported properly). > > Any hints?This is probably not related to NX, but to the terminal emulator you are using (gnome-terminal, kterm, etc.). Some of them do not open "login" shells (the ones that read .bash_profile) but only "interactive" shells (the ones that read .bashrc). Moving those lines from .bash_profile to .bashrc should work for both cases (as .bash_profile usually sources .bashrc) and solve your problem in both SSH sessions and NX sessions. HTH, Filipe