all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: znavko <znavko@protonmail.com>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: How to Rescue GuixSD when guile and guix arebroken?
Date: Mon, 24 Sep 2018 17:33:05 +0200	[thread overview]
Message-ID: <87va6uuczy.fsf@gnu.org> (raw)
In-Reply-To: <BoafCF1NsKjFzBx5jBhfHYnMCp5qTE8vILE7PszhQeefcQYSMNOY8OcsA0mnFfvFZQTG7YiXnJDRxprwADv67-4xKqHrXRws2aFQIgtNe2E=@protonmail.com> (znavko's message of "Fri, 21 Sep 2018 17:43:35 +0000")

Hello,

znavko <znavko@protonmail.com> skribis:

> One more question. Often I have troubles that installed by root packages are not visible for root. I think this is because of PATH. So I have added this to /root/.bashrc , as these instructions appeared while I run `guix package -i ATOM` :
>
> # tail -n 6 /root/.bashrc
>
> # my
> export PATH="/root/.guix-profile/bin${PATH:+:}$PATH"
> export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin${PATH:+:}$PATH"
> export PATH="/root/.config/guix/current/bin${PATH:+:}$PATH"
>
> Is it right way?

Environment variable definitions should go to ~/.bash_profile rather
than ~/.bashrc (the former is for “login shells”, the latter isn’t).
Other than that it looks good.

> Does it work, when I run `su`?

‘su’ doesn’t source root’s ~/.bash_profile; you have to run ‘su -’ to do
that.

HTH,
Ludo’.

      reply	other threads:[~2018-09-24 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-21 12:06 How to Rescue GuixSD when guile and guix arebroken? znavko
2018-09-21 13:17 ` Ricardo Wurmus
2018-09-21 14:57   ` znavko
2018-09-21 16:08     ` Ricardo Wurmus
2018-09-21 17:43       ` znavko
2018-09-24 15:33         ` Ludovic Courtès [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87va6uuczy.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=help-guix@gnu.org \
    --cc=znavko@protonmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.