bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27386: offloading documentation and env


From: Ludovic Courtès
Subject: bug#27386: offloading documentation and env
Date: Fri, 29 Sep 2017 09:49:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello Divan,

Divan Santana <address@hidden> skribis:

> So guixsd.santanas.co.za is my build system VM.
> Laptop, is a guixsd system I want to not compile code, and rather offload.
>
> address@hidden ~# ssh address@hidden env |grep GUILE_
>
> Returns nothing.
>
> However, an interactive session has the correct environment variables.
> So I suppose one could set this via the .zshenv or .bash_profile .

Right.  On GuixSD, the default .bash_profile sources .bashrc, and the
default .bashrc has this:

--8<---------------cut here---------------start------------->8---
if [ -n "$SSH_CLIENT" -a -z "`type -P cat`" ]
then
    # We are being invoked from a non-interactive SSH session
    # (as in "ssh host command") but 'cat' cannot be found
    # in $PATH.  Source /etc/profile so we get $PATH and other
    # essential variables.
    source /etc/profile
fi
--8<---------------cut here---------------end--------------->8---

I suggest you do something similar.

HTH!

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]