* How to make bash sees binaries from /root/.local/bin ?
@ 2020-05-06 11:01 znavko
2020-05-06 11:26 ` Vincent Legoll
2020-05-06 15:04 ` znavko
0 siblings, 2 replies; 3+ messages in thread
From: znavko @ 2020-05-06 11:01 UTC (permalink / raw)
To: help-guix
Hello! Fortunately, I've installed protonvpn client (written in python3) to my system.
But it does not run with 'protonvpn' command, but only with full path '/root/.local/bin/protonvpn'.
As I know, it happens because PATH variable does not contain /root/.local/bin
and bash does not seek there.
Sorry, I want Guix way advice concerning how to add the directory '/root/.local/bin/'
to my $PATH for user 'root' permanently, please?
# echo $SHELL
/gnu/store/n1c9jiv2njnvdfz58v71fvzq0hkgivz1-bash-5.0.7/bin/bash
# echo $PATH
/root/.guix-profile/bin:/root/.guix-profile/bin:/root/.guix-profile/sbin:/run/setuid-programs:/root/.config/guix/current/bin:/root/.guix-profile/bin:/root/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-system/profile/sbin
# cat /root/.bash_profile
# Honor per-interactive-shell startup file
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
GUIX_PROFILE="/root/.guix-profile" . "/run/current-system/profile/etc/profile"
GUIX_PROFILE="/root/.guix-profile" . "$GUIX_PROFILE/etc/profile"
# ls /root/.local/bin
chardetect pip pip3 pip3.7 protonvpn
# protonvpn
-bash: protonvpn: command not found
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to make bash sees binaries from /root/.local/bin ?
2020-05-06 11:01 How to make bash sees binaries from /root/.local/bin ? znavko
@ 2020-05-06 11:26 ` Vincent Legoll
2020-05-06 15:04 ` znavko
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Legoll @ 2020-05-06 11:26 UTC (permalink / raw)
To: znavko; +Cc: help-guix
hello,
have you tried something like the following:
echo 'PATH="${PATH}:/root/.local/bin"' >> /root/.bash_profile
maybe also add 'export PATH' after that if needed
--
Vincent Legoll
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to make bash sees binaries from /root/.local/bin ?
2020-05-06 11:01 How to make bash sees binaries from /root/.local/bin ? znavko
2020-05-06 11:26 ` Vincent Legoll
@ 2020-05-06 15:04 ` znavko
1 sibling, 0 replies; 3+ messages in thread
From: znavko @ 2020-05-06 15:04 UTC (permalink / raw)
To: Vincent Legoll; +Cc: help-guix
Yes, it works! Thank you, Vincent Legoll!
# cat /root/.bash_profile
# Honor per-interactive-shell startup file
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
GUIX_PROFILE="/root/.guix-profile" . "/run/current-system/profile/etc/profile"
GUIX_PROFILE="/root/.guix-profile" . "$GUIX_PROFILE/etc/profile" . "/root/.local/bin"
PATH="${PATH}:/root/.local/bin"
# whereis protonvpn
protonvpn: /root/.local/bin/protonvpn
May 6, 2020 11:27 AM, "Vincent Legoll" <vincent.legoll@gmail.com> wrote:
> hello,
>
> have you tried something like the following:
> echo 'PATH="${PATH}:/root/.local/bin"' >> /root/.bash_profile
>
> maybe also add 'export PATH' after that if needed
>
> --
> Vincent Legoll
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-06 15:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-06 11:01 How to make bash sees binaries from /root/.local/bin ? znavko
2020-05-06 11:26 ` Vincent Legoll
2020-05-06 15:04 ` znavko
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.