From: Divan Santana <divan@santanas.co.za>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 27386@debbugs.gnu.org
Subject: bug#27386: offloading documentation and env
Date: Fri, 29 Sep 2017 21:33:46 +0200 [thread overview]
Message-ID: <87o9pte1ut.fsf@santanas.co.za> (raw)
In-Reply-To: <873776vt99.fsf@gnu.org>
> Divan Santana <divan@santanas.co.za> 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.
>>
>> root@laptop ~# ssh admin@guixsd.santanas.co.za 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.
Thanks Ludo.
Though, I do have the default .bashrc and .bash_profile in place and
yet it's not working, by default.
admin@guixsd ~$ diff .bash_profile /etc/skel/.bash_profile
admin@guixsd ~$ diff .bashrc /etc/skel/.bashrc
25a26
> alias grep='grep --color'
admin@guixsd ~$
So I'm assuming this doesn't work by default for all?
Unless it's because I configured the users shell to zsh, I doubt.
Because, when switching it back to bash it still doesn't work. And the
skel files are correctly in place.
It does have your above suggestion in place:
admin@guixsd ~$ cat .bash_profile
# Honor per-interactive-shell startup file
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
admin@guixsd ~$ cat .bashrc
# Bash initialization for interactive non-login shells and
# for remote shells (info "(bash) Bash Startup Files").
# Export 'SHELL' to child processes. Programs such as 'screen'
# honor it and otherwise use /bin/sh.
export SHELL
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
--
Divan
prev parent reply other threads:[~2017-09-29 19:35 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-15 17:05 bug#27386: offloading documentation and env ng0
2017-06-15 21:11 ` ng0
2017-06-15 22:19 ` ng0
2017-06-15 22:34 ` ng0
2017-06-26 19:56 ` Ludovic Courtès
2017-06-26 21:15 ` ng0
2017-06-27 13:39 ` Ludovic Courtès
2017-06-27 14:54 ` ng0
2017-06-27 19:38 ` Ludovic Courtès
2017-06-27 20:31 ` ng0
2017-06-28 8:31 ` Ludovic Courtès
2017-06-28 11:45 ` ng0
2017-06-28 21:46 ` Ludovic Courtès
2017-06-28 22:36 ` ng0
2017-06-29 11:50 ` Ludovic Courtès
2017-07-04 13:51 ` Oleg Pykhalov
2017-07-04 15:43 ` Oleg Pykhalov
2017-07-04 16:02 ` Oleg Pykhalov
2017-07-04 21:36 ` Ludovic Courtès
2017-07-05 17:06 ` Oleg Pykhalov
2017-07-06 7:33 ` Ludovic Courtès
2017-07-06 13:15 ` Oleg Pykhalov
2017-07-07 10:00 ` Ludovic Courtès
[not found] ` <871spsginl.fsf@clover.i-did-not-set--mail-host-address--so-tickle-me>
2017-07-08 16:33 ` bug#27386: [SOLVED] " Ludovic Courtès
2017-09-28 19:40 ` Divan Santana
2017-09-28 19:44 ` Divan Santana
2017-09-29 7:49 ` Ludovic Courtès
2017-09-29 17:02 ` Ricardo Wurmus
2017-09-29 19:35 ` Divan Santana
2017-09-29 19:33 ` Divan Santana [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o9pte1ut.fsf@santanas.co.za \
--to=divan@santanas.co.za \
--cc=27386@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).