[FreeNX-kNX] FreeNX and user's specific environment files (e.g., .bashrc)

chris at ccburton.com chris at ccburton.com
Wed Nov 2 15:12:17 UTC 2011


freenx-knx-bounces at kde.org wrote on 01/11/2011 18:02:09:

> Simple question – hoping for a simple answer.  How do I get the 
> FreeNX server to source each user’s .bashrc file upon successful login?

Sounds simple, but it's a bit messy.

FreeNX does a ssh to user at localhost
which
does source /etc/profile  etc  then  /etc/bash.bashrc
and then ~/.bashrc for the user,
so
any exported ~/.bashrc variables etc should work their way
through to your user's sessions . . .

unless

they are then overwritten by your /etc/profile ~/.bash_profile (etc.)
which
are ALL sourced again later (ie. not in quite the correct way),
when
the chosen application (xterm, KDE, Gnome) is run.
        (you can switch the late run of /etc/profile off if it is
        messing up)


What exactly is going wrong ???

I can see some user env-variables being re-set back to
/etc/profile defaults

but why do you think it isn't running .bashrc at all ????



You could try setting

        ENABLE_SOURCE_BASH_PROFILE=0

in

         /etc/nxserver/node.conf 

to see if it sorts anything out.

Please let us know either way.



> 
> ===============
> Mark E. Dawson, Jr.
> Jump Trading, LLC
> 600 W. Chicago Ave Ste. 825
> Chicago IL, 60654
> Office: 312.205.8258
> Fax: 312.205.8999
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20111102/b1632601/attachment.html>


More information about the FreeNX-kNX mailing list