From unknown Sun Jun 22 17:17:21 2025 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 02 03:33:20 2020 Received: (at control) by debbugs.gnu.org; 2 Oct 2020 07:33:20 +0000 Received: from localhost ([127.0.0.1]:39266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOFZA-0000DX-2L for submit@debbugs.gnu.org; Fri, 02 Oct 2020 03:33:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOFZ7-0000DI-EL for control@debbugs.gnu.org; Fri, 02 Oct 2020 03:33:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42174) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOFZ2-0003JN-5v for control@debbugs.gnu.org; Fri, 02 Oct 2020 03:33:12 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54386 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOFZ1-0005Jr-Dn for control@debbugs.gnu.org; Fri, 02 Oct 2020 03:33:11 -0400 Date: Fri, 02 Oct 2020 09:33:09 +0200 Message-Id: <87tuvdkrpm.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #43744 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) severity 43744 important quit From unknown Sun Jun 22 17:17:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43744: guix-install.sh should do more first-time setup Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Oct 2020 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43744 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43744@debbugs.gnu.org Received: via spool by 43744-submit@debbugs.gnu.org id=B43744.16016605164884 (code B ref 43744); Fri, 02 Oct 2020 17:42:02 +0000 Received: (at 43744) by debbugs.gnu.org; 2 Oct 2020 17:41:56 +0000 Received: from localhost ([127.0.0.1]:42460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOP48-0001Gi-15 for submit@debbugs.gnu.org; Fri, 02 Oct 2020 13:41:56 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:41095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOP45-0001GU-GQ for 43744@debbugs.gnu.org; Fri, 02 Oct 2020 13:41:54 -0400 Received: by mail-qt1-f173.google.com with SMTP id j22so1930867qtj.8 for <43744@debbugs.gnu.org>; Fri, 02 Oct 2020 10:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IJ/gVwUhLi/U0JCKb5lUJSrMQEg5p7I9kkb+5HSivnE=; b=JhxhOA8cVCYHWPCr5yCwz+cW/z6VUtrjPUbmsX1IE54te2fJFfbrdhBbSMn9itUa5S VP9hq2yeWI0KP0ZGbQyubE0EadHu6inmolIqHo+g/vgE894Klia1Qa7y22L9SOwsLJn4 pa8bZgvKEKg9Ecvcpp/8yVeHOUBlJtIl40GGy8++bBDtY95MyfmwevUkRCG4eJCS8zfB MpQf5Lexo98Jz4FbBXJPdC4jTiELvD0FLCiDBNWyk8NMp8L8E11HJG0u8IED6DBXq+0B 4ft3avBRxPCdrp4AUhiR4s2Imq9qEreQn982zGYSbsutU3ls2v9+seltX1aV6A/gSa+I 33cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IJ/gVwUhLi/U0JCKb5lUJSrMQEg5p7I9kkb+5HSivnE=; b=fYZH22rEYGRdEDgVlGqbFKW9GKnocDyn/Ynr569SFHzQMxa9vUaOuelxGAy2U1LebG ZzjZ5ULe1xf4vj8EFEFHGK2ZdO7OfwHHf9A7SVVYRagBO2onhjghvfLqfrhI8uQb+9GY G2c4/pqIPeNZYN4ar/zJtgSsyjbPNH6zvcY/qkdNHB/GmaKRnB9/0Hhe3GuRuJLewFHM 8Mtpr7LQu00Gj80vBXRau+OsmOI+zIXR86srUz701Rn57BOiCvLAzpa+aOL9u934bBid nUTuisEv+YgsSvf/80LIbn0YnHmGi+X40RH3LGk1lk2UnZ4o3Si6msLCWQHgGZU8boMe b/lA== X-Gm-Message-State: AOAM533IWfYLkawhZ5+q42bDh5UoifH7RDWDKvEnGocMGDrqtCyTDsRG DLV2Not46v/mfFjXfuPmtwJwgcRiGL8vt1yJOTo= X-Google-Smtp-Source: ABdhPJzVmjXf7XNNFSf4uOJFIqAcLbYFpusPmL+wooqbBz6exYfBb9harm8AvrhideLg2dx91nW8TYiT4Ja/PnEaKhw= X-Received: by 2002:aed:2fc5:: with SMTP id m63mr3295790qtd.313.1601660507907; Fri, 02 Oct 2020 10:41:47 -0700 (PDT) MIME-Version: 1.0 References: <87362yt99e.fsf@gnu.org> In-Reply-To: <87362yt99e.fsf@gnu.org> From: zimoun Date: Fri, 2 Oct 2020 19:41:36 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Thu, 1 Oct 2020 at 14:35, Ludovic Court=C3=A8s wrote: > 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. Done in patch 1/2 #43769 [1]. > 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--- Hum? It looks like 'sys_create_init_profile'. I have not checked the current order but maybe that's only that. > The user should be explicitly asked whether they want this change > to be made. Currently, 'sys_create_init_profile' is simply run without asking. > 3. It could check =E2=80=9Cps aux | grep nscd=E2=80=9D and install nscd= using the host > distro package manager if needed, or at least suggest doing it. Done in patch 2/2 #43769 [1]. [1] All the best, simon From unknown Sun Jun 22 17:17:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#43744: closed (Re: bug#43744: guix-install.sh should do more first-time setup) Message-ID: References: <871rhrfppg.fsf@gmail.com> <87362yt99e.fsf@gnu.org> X-Gnu-PR-Message: they-closed 43744 X-Gnu-PR-Package: guix Reply-To: 43744@debbugs.gnu.org Date: Wed, 21 Oct 2020 17:35:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1603301702-7075-1" This is a multi-part message in MIME format... ------------=_1603301702-7075-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #43744: guix-install.sh should do more first-time setup which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 43744@debbugs.gnu.org. --=20 43744: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D43744 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1603301702-7075-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 43744-done) by debbugs.gnu.org; 21 Oct 2020 17:34:29 +0000 Received: from localhost ([127.0.0.1]:50482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVI0K-0001pI-Ni for submit@debbugs.gnu.org; Wed, 21 Oct 2020 13:34:28 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:37252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVI0I-0001p5-Vh for 43744-done@debbugs.gnu.org; Wed, 21 Oct 2020 13:34:27 -0400 Received: by mail-wr1-f43.google.com with SMTP id h7so4046792wre.4 for <43744-done@debbugs.gnu.org>; Wed, 21 Oct 2020 10:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=6SexOL+eGBxOEhLNINAiAbKmcJ/qcqlsoY+zVDpMHJs=; b=fUKM2O8lHX5/ORSirRQjoYM+ngpjqpxOFkbLTTmhZYUUgNUSqCeM/Gp594X8dsMNXW iPSbfqnk0/8tjASdunzmi7XE7wOCdXNtra7X2nM30WjU+o2getvPcaen1E09BPn6z9vB ROYgywe/ggygjvcbKG0SgWdvzA0xhC7UlHzA15U5rLNzXo86uSpClh9te+CCsCF14bRz s2+hTRfh1m9qT0YxX5CEjALzo81cqZzlXmeN+iPeJTRu70PrvM7pRPhaju14ERuLHKTl EArxKnlqsNHkhdMX+pHlEaCURTyZw6cglHspVj/fINOMBdOW8hJ3ycfCxyo4xTnkA9tZ OCoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=6SexOL+eGBxOEhLNINAiAbKmcJ/qcqlsoY+zVDpMHJs=; b=M7++naMzXI07FHTGoTWPsfEpkenZa3aUqql2R1KwvV0fEOZaacLYjDCr75mYfUeo3x hdcGIMBN91tlOR4YRBuU0pZnQgYEY1q4uxolGvd0p1jOKh9ft8bzIC3QwcptDCcnp7lJ WBr9gaoNLzEYVzqadFUf8wuALDiEpKjf9ax1WwkLqTBLP9VFLKJeHwu5ImY14blQtCWp s3fFMdNOgYtLZA4Gv+zPGcZd8Y+hl582GO6Q89tsTRIPfTD7OgyHhVSyVAhynalyFLHo p2pWrnlUauQrfq8wajfc5Ae2Z+m9+JZWTGkMgiWr43UKjntSH0kiFa5sed00A36fVVFm Pa4A== X-Gm-Message-State: AOAM530i17yKyTSj8u9OrT8Pcc4UiLyvD08z63NQCPj33KuDXGSk+zmB 7TeLVdj/2XpiDgTxxV4/uJHbWWH7sjI= X-Google-Smtp-Source: ABdhPJwdOotzSTntfjZheFCTrSU6mLezAs9L278tKbbL/poAO4bCXP4DojAcSluWTfTrJM23aOXTIg== X-Received: by 2002:a5d:654e:: with SMTP id z14mr6074544wrv.361.1603301660920; Wed, 21 Oct 2020 10:34:20 -0700 (PDT) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id x1sm4878286wrl.41.2020.10.21.10.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 10:34:20 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#43744: guix-install.sh should do more first-time setup References: <87362yt99e.fsf@gnu.org> Date: Wed, 21 Oct 2020 19:34:19 +0200 In-Reply-To: <87362yt99e.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 01 Oct 2020 14:34:37 +0200") Message-ID: <871rhrfppg.fsf@gmail.com> 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: 0.0 (/) X-Debbugs-Envelope-To: 43744-done Cc: 43744-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dear, On Thu, 01 Oct 2020 at 14:34, Ludovic Court=C3=A8s wrote: > 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 c= ome 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. Done in b3fba5ef043b161d05a9fdc371a32d89e9b22ea1. > 2. Adding the following lines to /etc/profile (taken from Guix System): > > # 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 > > The user should be explicitly asked whether they want this change > to be made. Nothing to done. > 3. It could check =E2=80=9Cps aux | grep nscd=E2=80=9D and install nscd= using the host > distro package manager if needed, or at least suggest doing it. Done in b2683a2bed424f58722c9c17c9582e3e2e19d9a3. So closing! ------------=_1603301702-7075-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Subject: guix-install.sh should do more first-time setup 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. ------------=_1603301702-7075-1--