From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#27386: offloading documentation and env Date: Tue, 27 Jun 2017 21:38:39 +0200 Message-ID: <87d19p43wg.fsf@gnu.org> References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> <20170615223456.z5w2oaxifbah2ak2@abyayala> <87podq7cae.fsf@gnu.org> <20170626211511.ox5smekycmqz2vc3@abyayala> <87injh5z3h.fsf@gnu.org> <20170627145418.iq54zrhfzbr7vdtn@abyayala> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPwKJ-00019J-Ov for bug-guix@gnu.org; Tue, 27 Jun 2017 15:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPwKE-0004Sm-Q8 for bug-guix@gnu.org; Tue, 27 Jun 2017 15:39:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPwKE-0004Si-NJ for bug-guix@gnu.org; Tue, 27 Jun 2017 15:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPwKE-00079i-HD for bug-guix@gnu.org; Tue, 27 Jun 2017 15:39:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170627145418.iq54zrhfzbr7vdtn@abyayala> (ng0@infotropique.org's message of "Tue, 27 Jun 2017 14:54:18 +0000") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 27386@debbugs.gnu.org ng0 skribis: > Ludovic Court=C3=A8s transcribed 2.8K bytes: [...] >> >> The test is to run something like: >> >>=20 >> >> $ ssh localhost env |grep GUILE_ >> >> GUILE_LOAD_COMPILED_PATH=3D/home/ludo/.guix-profile/lib/guile/2.2/s= ite-ccache:/home/ludo/.guix-profile/share/guile/site/2.2:/run/current-syste= m/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile= /site/2.2 >> >> GUILE_LOAD_PATH=3D/home/ludo/.guix-profile/share/guile/site/2.2:/ru= n/current-system/profile/share/guile/site/2.2 >> >>=20 >> >> and you should see /run/current-system/profile/share/guile/site/2.2. = If >> >> not, you=E2=80=99ll have to add it somehow. >>=20 >> What does the above give for you? >>=20 >> HTH, >> Ludo=E2=80=99. > > This is issued from computer A (abyayala) to computer B (shadownet). > > user@abyayala ~$ ssh shadownet env |grep GUILE_ > GUILE_LOAD_COMPILED_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-pr= ofile/lib/guile/2.2/site-ccache:/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547= -profile/share/guile/site/2.2 > GUILE_LOAD_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/sha= re/guile/site/2.2 The problem here is that /run/current-system/profile/share/guile/site/2.2, which is where the Guix modules are on GuixSD as I wrote above, is missing from the search path. The session started when you run =E2=80=9Cssh shadownet env=E2=80=9D does n= ot spawn a login shell; thus ~/.profile and similar are *not* sourced. I=E2=80=99m us= ing Bash, so on my accounts, I have this in .bashrc (=E2=80=98.bashrc=E2=80=99 = is for non-login shells): --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--- That way, =E2=80=9Cssh HOST COMMAND=E2=80=9D effectively gets the same envi= ronment as a login shell. If you=E2=80=99re using a different shell, then make sure its startup file = does something similar. HTH! Ludo=E2=80=99.