From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Quick-start guide Date: Fri, 24 Jun 2016 14:36:00 +0200 Message-ID: <87bn2q69xr.fsf@gnu.org> References: <8760tjkft8.fsf@gnu.org> <20160611174955.GA9544@jasmine> <87d1nhieyg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGQL9-0002V5-Ts for guix-devel@gnu.org; Fri, 24 Jun 2016 08:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGQL6-00038c-Nb for guix-devel@gnu.org; Fri, 24 Jun 2016 08:36:07 -0400 In-Reply-To: (yoosty@gmail.com's message of "Thu, 23 Jun 2016 21:55:01 -0700") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: yoosty@gmail.com Cc: guix-devel@gnu.org yoosty@gmail.com skribis: > On Thu, Jun 16, 2016 at 3:51 AM, Ludovic Court=C3=A8s wrot= e: > >> Hi, >> >> yoosty@gmail.com skribis: [...] >> > - Add at least one more sub-section to "System Installation" that >> > introduces users to extending/customizing the initial system's .scm fi= le >> > -- Something like a "Where to go from here? Customizing your >> installation." >> > -- A chance to tease users in to Scheme programming >> >> Makes sense. The =E2=80=9CUsing the Configuration System=E2=80=9D secti= on was intended >> to achieve this, but maybe it=E2=80=99s failing. Do you think it could = be >> improved, or is a new section needed, and if so, how should we >> articulate both? >> > > I might be viewing this from the wrong angle.. Maybe what's needed is not > necessarily different instructions, but more pointers to the existing > instructions :) Maybe! If you have ideas of what pointers to put where, that=E2=80=99s even better. :-) > Can we put some comments in the current example configs to point to exist= ing > documentation? > > e.g.: > > diff --git a/gnu/system/examples/bare-bones.tmpl > b/gnu/system/examples/bare-bones.tmpl > index 87e8d1e..811a6c3 100644 > --- a/gnu/system/examples/bare-bones.tmpl > +++ b/gnu/system/examples/bare-bones.tmpl > @@ -38,6 +38,8 @@ > %base-user-accounts)) > > ;; Globally-installed packages. > + ;; See the "System Configuration"/"Globally-Visible Packages" > + ;; section in the Guix manual for more info > (packages (cons tcpdump %base-packages)) The problem is that these files are included in the manual, so it would seem awkward IMO to give the section name here. Not sure what to do here. > Something else I'm probably just missing.. Is there a way to enumerate > %base-packages from the command line? I've seen you (Ludo) do this a few > times in the videos but I don't recall a mention of instructions for > configuring > this setup. This can be done from a Guile =E2=80=9Cread-eval-print loop=E2=80=9D (REPL): --8<---------------cut here---------------start------------->8--- $ guile GNU Guile 2.0.11.156-c3f95-dirty Copyright (C) 1995-2016 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,use(gnu) scheme@(guile-user)> %base-packages $1 =3D (# # # # # # # # # # # # # # # #<= package wireless-tools-30.pre9 gnu/packages/linux.scm:1705 3881540> # # # # = # # # # # # # # # # # # # # # # # #) --8<---------------cut here---------------end--------------->8--- Or as a one-liner: --8<---------------cut here---------------start------------->8--- $ guile -c '(use-modules (gnu) (guix)) (pk (map package-full-name %base-pac= kages))' ;;; (("procps-3.2.8" "psmisc-22.20" "which-2.21" "less-451" "zile-2.4.11" "= nano-2.4.2" "dmd-0.2.01" "guix-0.8.3.5d09263" "lsof-4.88" "pciutils-3.2.0" = "usbutils-006" "util-linux-2.25.2" "inetutils-1.9.4" "isc-dhcp-4.3.1" "iw-3= .17" "wireless-tools-30.pre9" "net-tools-1.60" "man-db-2.7.1" "sudo-1.8.10p= 3" "kmod-17" "eudev-2.1.1" "e2fsprogs-1.42.13" "kbd-2.0.2" "bash-completion= -2.1" "guile-2.0.11" "bash-4.3.39" "coreutils-8.24" "findutils-4.4.2" "grep= -2.21" "sed-4.2.2" "diffutils-3.3" "patch-2.7.5" "gawk-4.1.3" "tar-1.28" "g= zip-1.6" "bzip2-1.0.6" "xz-5.0.4" "lzip-1.16")) --8<---------------cut here---------------end--------------->8--- HTH! Ludo=E2=80=99.