* bug#42378: Improve guix-install.sh's messages
@ 2020-07-15 19:33 Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-15 20:04 ` bug#42378: [PATCH 1/2] guix-install.sh: Suggest running gpg as root Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-16 10:22 ` bug#42378: Improve guix-install.sh's messages Ludovic Courtès
0 siblings, 2 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-07-15 19:33 UTC (permalink / raw)
To: 42378
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
Guix,
Here are 2 short patches to address 2 tedious recurring questions
in #guix.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#42378: [PATCH 1/2] guix-install.sh: Suggest running gpg as root.
2020-07-15 19:33 bug#42378: Improve guix-install.sh's messages Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-07-15 20:04 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-15 20:04 ` bug#42378: [PATCH 2/2] guix-install.sh: Make sure /etc/profile is sourced Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-16 10:22 ` bug#42378: Improve guix-install.sh's messages Ludovic Courtès
1 sibling, 1 reply; 5+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-07-15 20:04 UTC (permalink / raw)
To: 42378
The original example regularly prevented new users from installing Guix
at all.
* etc/guix-install.scm (chk_gpg_keyring): Suggest ‘sudo -i gpg’.
---
etc/guix-install.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 54bd813efd..efcc3d81d8 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -111,7 +111,7 @@ chk_gpg_keyring()
# systems where gpg has never been used, causing errors and confusion.
gpg --dry-run --list-keys ${OPENPGP_SIGNING_KEY_ID} >/dev/null 2>&1 || (
_err "${ERR}Missing OpenPGP public key. Fetch it with this command:"
- echo " wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | gpg --import -"
+ echo " wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | sudo -i gpg --import -"
exit 1
)
}
--
2.27.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#42378: [PATCH 2/2] guix-install.sh: Make sure /etc/profile is sourced.
2020-07-15 20:04 ` bug#42378: [PATCH 1/2] guix-install.sh: Suggest running gpg as root Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-07-15 20:04 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
0 siblings, 0 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-07-15 20:04 UTC (permalink / raw)
To: 42378
New users regularly report missing newly-installed programmes and icons.
* etc/guix-install.scm (main): Tell users to log out & back in.
---
etc/guix-install.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index efcc3d81d8..72dc3839e8 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -418,6 +418,7 @@ sys_authorize_build_farms()
sys_create_init_profile()
{ # Create /etc/profile.d/guix.sh for better desktop integration
+ # This will not take effect until the next shell or desktop session!
[ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
cat <<"EOF" > /etc/profile.d/guix.sh
# _GUIX_PROFILE: `guix pull` profile
@@ -507,6 +508,9 @@ main()
_msg "${PAS}Guix has successfully been installed!"
_msg "${INF}Run 'info guix' to read the manual."
+
+ # Required to source /etc/profile in desktop environments.
+ _msg "${INF}Please log out and back in to complete the installation."
}
main "$@"
--
2.27.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#42378: Improve guix-install.sh's messages
2020-07-15 19:33 bug#42378: Improve guix-install.sh's messages Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-15 20:04 ` bug#42378: [PATCH 1/2] guix-install.sh: Suggest running gpg as root Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-07-16 10:22 ` Ludovic Courtès
2020-07-16 18:17 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2020-07-16 10:22 UTC (permalink / raw)
To: 42378
Howdy!
Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@gnu.org>
skribis:
> Here are 2 short patches to address 2 tedious recurring questions in
> #guix.
I’m all for it. It’s the kind of “tiny issue” that causes lots of
troubles to newcomers.
Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-07-16 18:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-15 19:33 bug#42378: Improve guix-install.sh's messages Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-15 20:04 ` bug#42378: [PATCH 1/2] guix-install.sh: Suggest running gpg as root Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-15 20:04 ` bug#42378: [PATCH 2/2] guix-install.sh: Make sure /etc/profile is sourced Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-16 10:22 ` bug#42378: Improve guix-install.sh's messages Ludovic Courtès
2020-07-16 18:17 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
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.