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

Mark Dawson mdawson at jumptrading.com
Wed Nov 2 16:50:54 UTC 2011


There’s a developer here who connects with NoMachine using nx and always has to source his .bashrc when he logs in this way as opposed to when he logs in via ssh.

From: freenx-knx-bounces at kde.org [mailto:freenx-knx-bounces at kde.org] On Behalf Of chris at ccburton.com
Sent: Wednesday, November 02, 2011 10:12 AM
To: User Support for FreeNX Server and kNX Client
Subject: Re: [FreeNX-kNX] FreeNX and user's specific environment files (e.g., .bashrc)


freenx-knx-bounces at kde.org<mailto: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
>

________________________________
Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. Jump Trading, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20111102/70382215/attachment.html>


More information about the FreeNX-kNX mailing list