From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id II1vCxLNdV/gUgAA0tVLHw (envelope-from ) for ; Thu, 01 Oct 2020 12:35:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OBRcBxLNdV/rHQAAbx9fmQ (envelope-from ) for ; Thu, 01 Oct 2020 12:35:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C8E369404CF for ; Thu, 1 Oct 2020 12:35:29 +0000 (UTC) Received: from localhost ([::1]:54896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNxo0-00010o-N9 for larch@yhetil.org; Thu, 01 Oct 2020 08:35:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNxnc-000101-3U for bug-guix@gnu.org; Thu, 01 Oct 2020 08:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNxnb-0000uh-O2 for bug-guix@gnu.org; Thu, 01 Oct 2020 08:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNxnb-0003yf-KW for bug-guix@gnu.org; Thu, 01 Oct 2020 08:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43744: guix-install.sh should do more first-time setup Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 01 Oct 2020 12:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43744 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43744@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.160155568315206 (code B ref -1); Thu, 01 Oct 2020 12:35:03 +0000 Received: (at submit) by debbugs.gnu.org; 1 Oct 2020 12:34:43 +0000 Received: from localhost ([127.0.0.1]:34556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNxnH-0003xC-LZ for submit@debbugs.gnu.org; Thu, 01 Oct 2020 08:34:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:43514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNxnG-0003x4-BG for submit@debbugs.gnu.org; Thu, 01 Oct 2020 08:34:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNxnG-0000v0-4L for bug-guix@gnu.org; Thu, 01 Oct 2020 08:34:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53720) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNxnF-0000tS-RA for bug-guix@gnu.org; Thu, 01 Oct 2020 08:34:41 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38002 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kNxnE-0002h3-AF for bug-guix@gnu.org; Thu, 01 Oct 2020 08:34:40 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 =?UTF-8?Q?Vend=C3=A9miaire?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Oct 2020 14:34:37 +0200 Message-ID: <87362yt99e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: C7lkPJoiGSs5 Hello! One of the things we can do to provide a better first-time experience on a foreign distro is to automatically do some of the things that make Guix readily usable and convenient, even for someone who skips the =E2=80=9CApplication Setup=E2=80=9D section of the manual. Things that com= e to mind: 1. Installing Bash and Zsh completion files globally (actually making them a symlink to /var/guix/profiles/per-user/root/current-guix/etc/=E2=80=A6). There seems to be +/- a cross-distro conventional directory to collect those, for example /etc/bash_completion.d, no? The script could create that symlink, perhaps asking the user to confirm. 2. Adding the following lines to /etc/profile (taken from Guix System): --8<---------------cut here---------------start------------->8--- # Arrange so that ~/.config/guix/current comes first. for profile in "$HOME/.guix-profile" "$HOME/.config/guix/current" do if [ -f "$profile/etc/profile" ] then # Load the user profile's settings. GUIX_PROFILE=3D"$profile" ; \ . "$profile/etc/profile" else # At least define this one so that basic things just work # when the user installs their first package. export PATH=3D"$profile/bin:$PATH" fi done --8<---------------cut here---------------end--------------->8--- The user should be explicitly asked whether they want this change to be made. 3. It could check =E2=80=9Cps aux | grep nscd=E2=80=9D and install nscd u= sing the host distro package manager if needed, or at least suggest doing it. Any takers? :-) Thanks, Ludo=E2=80=99.