Message ID | CAGSLf826Urbr5hJPDi_i5tnCaGUEPV-GM9NnDuWMfXxcK0kfdw@mail.gmail.com |
---|---|
State | New |
Headers |
Received: (qmail 13941 invoked by uid 89); 24 Jun 2016 04:57:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=BAYES_00, FREEMAIL_FROM, HTML_MESSAGE, RP_MATCHES_RCVD, SPF_PASS autolearn=no version=3.3.2 spammy=system's, H*c:alternative, Packages, services X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00, FREEMAIL_FROM, HTML_MESSAGE, RP_MATCHES_RCVD, SPF_PASS autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: * X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 24 Jun 2016 04:57:35 +0000 Received: from localhost ([::1]:40776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guix-devel-bounces+patchwork=sourceware.org@gnu.org>) id 1bGJBN-0002PX-MU for patchwork@sourceware.org; Fri, 24 Jun 2016 00:57:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <yoosty@gmail.com>) id 1bGJ91-0000nb-E3 for guix-devel@gnu.org; Fri, 24 Jun 2016 00:55:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <yoosty@gmail.com>) id 1bGJ90-0000TQ-2H for guix-devel@gnu.org; Fri, 24 Jun 2016 00:55:07 -0400 Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]:34345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <yoosty@gmail.com>) id 1bGJ8w-0000Qc-KS; Fri, 24 Jun 2016 00:55:02 -0400 Received: by mail-io0-x22b.google.com with SMTP id g13so83521838ioj.1; Thu, 23 Jun 2016 21:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E7TdkvW6y0Qge/i2c5fyUAJUpTqtlUiL/yvaM5JS6r0=; b=UvjspQDdRiszgninQu6CMUg/WtYSE12I7ZI2SCCZkil9e4pjy1kNCm+2ziNK0rsfof reVFTQBjAL96KOYEZ/sjjLCFoCTiGN/qzEJzPAdjTEIv/I/z7pZvJMILls1l884Pjtm+ v2VotHt+dK8uJO+LGv23+OzCs39KV+5rU2rKqbwZgfmB9fMorWp1ffHdiU0MEiPBFIZn Vdw/gjeJli2lGFT6jSWtuP0YkaWy6LfWOk803ZfOCMZIs9GaWEh53etnD8p9DHmMMdoO IJup/Sr/wN7f1fQSIpyzVbp2c/OFb5aohvDQ/wU9Hhgrs5H81sqHdQ5SzMjde6cXqYt8 hGPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=E7TdkvW6y0Qge/i2c5fyUAJUpTqtlUiL/yvaM5JS6r0=; b=PPk1pPIzhzQvPY4vOWDkNESRia+GJ0MDCP0wEP0B/oKIzAp8OCb0XtIYZekpqnN3hP AwzD6WOwGeYyxo/dHBUhnAKcSI52VmBLaRZ4n9Jke89WerufFjDbPFnzdZgczlzqugrO 5hwygahv7dGPNRJ8ct1dzmp7fCHlkItMEG/of/Lu/cyfIlYOuMnLbd/gNuIycLwvmuy8 ttS94Y9OiAKhsI7TF39272vmib0ejJk1DEyGWmWc5uuMKClGPV0jbxmNVW1L0S6ObxNU j+5HKG4Q7N9GivXX6uAZ5OrwIzewI5QNqswmwtcHFrtUd9BTajVEPTKfUIk3CNXPRf6h yqdQ== X-Gm-Message-State: ALyK8tJYeA7ViK7G0L5I+mfNK2wcQOpgPxoteTC86eVV7pL8Z/L4jITvWfm03dP4FaXLhAcRfD5vkDrEJAyQ/A== X-Received: by 10.107.182.136 with SMTP id g130mr4222258iof.27.1466744101770; Thu, 23 Jun 2016 21:55:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.133.208 with HTTP; Thu, 23 Jun 2016 21:55:01 -0700 (PDT) In-Reply-To: <87d1nhieyg.fsf@gnu.org> References: <CAGSLf80VTq42L=oop9dZcZRJz3ROGPxc0AwUFcjSCDxGSpYm9Q@mail.gmail.com> <8760tjkft8.fsf@gnu.org> <CAGSLf808YCZh6n48yMdgMfVugBqWV3OgGpmK1PK-Tme5H_UJRQ@mail.gmail.com> <20160611174955.GA9544@jasmine> <CAGSLf81RN_hs10N_RHHMeMHHQcVT5gYdF9zYqQq_dehwEGi4YQ@mail.gmail.com> <87d1nhieyg.fsf@gnu.org> From: yoosty@gmail.com Date: Thu, 23 Jun 2016 21:55:01 -0700 Message-ID: <CAGSLf826Urbr5hJPDi_i5tnCaGUEPV-GM9NnDuWMfXxcK0kfdw@mail.gmail.com> Subject: Re: [PATCH] Quick-start guide To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@gnu.org> Content-Type: multipart/alternative; boundary=001a114f804a2999300535fef9bc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::22b X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+patchwork=sourceware.org@gnu.org> |
Commit Message
yoosty@gmail.com
June 24, 2016, 4:55 a.m. UTC
On Thu, Jun 16, 2016 at 3:51 AM, Ludovic Courtès <ludo@gnu.org> wrote: > Hi, > > yoosty@gmail.com skribis: > > > After reading the feedback here and spending some more time in IRC (which > > really drives home the feedback about translations and colloquialisms, > > thanks John) I would like to do the following: > > - Add a contiguous set of examples to the existing "System Installation" > > section (such that if you follow the examples you will almost certainly > end > > up with a working system, even if you don't read much of anything else) > > You mean OS config examples? Currently there are 3 example > configurations. We could add more, but I wonder if that wouldn’t be too > much for the manual itself (we could still add more to the installation > image, though.) > > > - Add at least one more sub-section to "System Installation" that > > introduces users to extending/customizing the initial system's .scm file > > -- Something like a "Where to go from here? Customizing your > installation." > > -- A chance to tease users in to Scheme programming > > Makes sense. The “Using the Configuration System” section was intended > to achieve this, but maybe it’s 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 :) Can we put some comments in the current example configs to point to existing documentation? e.g.: 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. -- .:Justin:.
Comments
yoosty@gmail.com skribis: > On Thu, Jun 16, 2016 at 3:51 AM, Ludovic Courtès <ludo@gnu.org> wrote: > >> 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 file >> > -- Something like a "Where to go from here? Customizing your >> installation." >> > -- A chance to tease users in to Scheme programming >> >> Makes sense. The “Using the Configuration System” section was intended >> to achieve this, but maybe it’s 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’s even better. :-) > Can we put some comments in the current example configs to point to existing > 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 “read-eval-print loop” (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 = (#<package procps-3.2.8 gnu/packages/linux.scm:457 3830e40> #<package psmisc-22.20 gnu/packages/linux.scm:368 3eeb000> #<package which-2.21 gnu/packages/base.scm:683 37b8600> #<package less-451 gnu/packages/less.scm:27 36f0e40> #<package zile-2.4.11 gnu/packages/zile.scm:33 37b8180> #<package nano-2.4.2 gnu/packages/nano.scm:28 39f13c0> #<package dmd-0.2.01 gnu/packages/admin.scm:65 39d7cc0> #<package guix-0.8.3.5d09263 gnu/packages/package-management.scm:180 37b83c0> #<package lsof-4.88 gnu/packages/lsof.scm:30 37b80c0> #<package pciutils-3.2.0 gnu/packages/pciutils.scm:29 300e000> #<package usbutils-006 gnu/packages/linux.scm:524 3830d80> #<package util-linux-2.25.2 gnu/packages/linux.scm:391 3830f00> #<package inetutils-1.9.4 gnu/packages/admin.scm:168 39d79c0> #<package isc-dhcp-4.3.1 gnu/packages/admin.scm:391 39d7540> #<package iw-3.17 gnu/packages/linux.scm:1137 38300c0> #<package wireless-tools-30.pre9 gnu/packages/linux.scm:1705 3881540> #<package net-tools-1.60 gnu/packages/linux.scm:927 38303c0> #<package man-db-2.7.1 gnu/packages/man.scm:58 36f0c00> #<package sudo-1.8.10p3 gnu/packages/admin.scm:647 39d70c0> #<package kmod-17 gnu/packages/linux.scm:1528 3881780> #<package eudev-2.1.1 gnu/packages/linux.scm:1573 38816c0> #<package e2fsprogs-1.42.13 gnu/packages/linux.scm:548 3830cc0> #<package kbd-2.0.2 gnu/packages/linux.scm:1450 3881900> #<package bash-completion-2.1 gnu/packages/bash.scm:243 3260540> #<package guile-2.0.11 gnu/packages/bootstrap.scm:145 3f8ed80> #<package bash-4.3.39 gnu/packages/bootstrap.scm:145 3f8ef00> #<package coreutils-8.24 gnu/packages/bootstrap.scm:145 3f8e900> #<package findutils-4.4.2 gnu/packages/bootstrap.scm:145 3f919c0> #<package grep-2.21 gnu/packages/bootstrap.scm:145 3f8e780> #<package sed-4.2.2 gnu/packages/bootstrap.scm:145 3f91b40> #<package diffutils-3.3 gnu/packages/bootstrap.scm:145 3f91e40> #<package patch-2.7.5 gnu/packages/bootstrap.scm:145 3f91cc0> #<package gawk-4.1.3 gnu/packages/bootstrap.scm:145 3f91840> #<package tar-1.28 gnu/packages/bootstrap.scm:145 3f8e600> #<package gzip-1.6 gnu/packages/bootstrap.scm:145 3f8e480> #<package bzip2-1.0.6 gnu/packages/bootstrap.scm:145 3f8e300> #<package xz-5.0.4 gnu/packages/bootstrap.scm:145 3f8e180> #<package lzip-1.16 gnu/packages/compression.scm:301 3054000>) --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-packages))' ;;; (("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.10p3" "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" "gzip-1.6" "bzip2-1.0.6" "xz-5.0.4" "lzip-1.16")) --8<---------------cut here---------------end--------------->8--- HTH! Ludo’.
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)) ;; Add services to the baseline: a DHCP client and