From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QDmhHFxLVWTjCgEASxT56A (envelope-from ) for ; Fri, 05 May 2023 20:30:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8B9bHFxLVWQ2jwAAauVa8A (envelope-from ) for ; Fri, 05 May 2023 20:30:52 +0200 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 51F392C95A for ; Fri, 5 May 2023 20:30:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pv0C4-0005Fh-GI; Fri, 05 May 2023 14:30:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pv0C0-0005Di-Tn for bug-guix@gnu.org; Fri, 05 May 2023 14:30:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pv0C0-00063U-Gr for bug-guix@gnu.org; Fri, 05 May 2023 14:30:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pv0C0-0003C2-DD for bug-guix@gnu.org; Fri, 05 May 2023 14:30:08 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63082: [PATCH v3 15/16] services: mpd: Update basic example. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 May 2023 18:30:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63082@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 63082-submit@debbugs.gnu.org id=B63082.168331139412109 (code B ref 63082); Fri, 05 May 2023 18:30:08 +0000 Received: (at 63082) by debbugs.gnu.org; 5 May 2023 18:29:54 +0000 Received: from localhost ([127.0.0.1]:57510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv0Bl-00039E-SX for submit@debbugs.gnu.org; Fri, 05 May 2023 14:29:54 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]:55332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv0Bh-00037c-To for 63082@debbugs.gnu.org; Fri, 05 May 2023 14:29:50 -0400 Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-3ef31b7b868so17138741cf.2 for <63082@debbugs.gnu.org>; Fri, 05 May 2023 11:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683311384; x=1685903384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7ZLzJQueLWII9pEY2I9WFHMclYhMI77moLC5p8rFAAk=; b=hb4+XNmSgJSFkC7WfD9ZBVBZngNBzZhUPmD2TPiG7+wiwr65/GKvJxfw5/lOcT9UgA eKpv/m2TbKdCr9lloR/qiwy5164U1zHte+NDnUIRXh8ef+jHTvnBHCsVgmP9L1HK6raN jDY+ap27PLtHg9mvV3z9HmH3CWgpCVxJ9AqmN9X64wpdGLfDCW7UzVOM/L7nCIuR4FLT ywyS5GhHXOE25yrxVK3doFgIheGGv5yHiDYhCBdvZHHfEdiESjEe0FgdbUC2vG8RztLN B5vK5ORfmkMwIQHpsQs87MePCkfdpToKnH5oIBhmkkQee9zMuREHM3M2n5IQ6Yh16QFR a5+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683311384; x=1685903384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7ZLzJQueLWII9pEY2I9WFHMclYhMI77moLC5p8rFAAk=; b=a0Fs7t01WepK4ax1Z0a6lvpVgji7Y7iRELLrkRs6LMsEoxpkGzDIWsQ6zvETbOPbRJ hiuxAOk5jBX9xs6mJl23+mrGV+LtTEK8ziUNwAX28f+dJgMZdcHcUBFeDfYRuGZ4eIvM Hi5mmPYmEfLh6cOU+yDv3SAYFd4XKH6BuLaHokSJgnWJFCPNwkU8rGHOsX3ILBaQplDR LYZRD16AL6jcpj8tYAdQg6PNx64mjsAY4Tki7ARaG+qBZjUg1yMYmxQwfSBs38Bj1EzC 0oHq0qYzoktmARA5HY4q9cjxYp2sZEU85vs1rH77JM8nBiJJaUgIumcl0mIbNKIafJVU MzJA== X-Gm-Message-State: AC+VfDx3QObBT66juL8YRuZd1i6rZB846biy923+G1P9kL3kG0G6sUrX 2VG9GDY1KG5tEifbkHJhFz7S/I1ELss= X-Google-Smtp-Source: ACHHUZ5rY2uY2OgIyqbRTfKAJbJOduoKXNGN0tC66OEW8aU6Z9kpdkJAp2yqSrg3L7mhPvrZu4L5kg== X-Received: by 2002:ac8:5a05:0:b0:3f1:f38e:a848 with SMTP id n5-20020ac85a05000000b003f1f38ea848mr3976253qta.58.1683311384217; Fri, 05 May 2023 11:29:44 -0700 (PDT) Received: from localhost.localdomain (dsl-205-236-230-162.b2b2c.ca. [205.236.230.162]) by smtp.gmail.com with ESMTPSA id c1-20020ac81e81000000b003e97fe68511sm834399qtm.3.2023.05.05.11.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 11:29:43 -0700 (PDT) From: Maxim Cournoyer Date: Fri, 5 May 2023 14:29:10 -0400 Message-Id: <83a6d2fab0f25d7d469d202940785c8c05e47299.1683299529.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683311452; a=rsa-sha256; cv=none; b=PP7SXZHEC4C+0HzFVqMDRCv1pz/OBiMZS7aoZV9K4UCsgXnThSo7leaZql96yls94+O+cc 2xbYkpLE/Gqc+ZBH5FwlY27AIO5rof+lfCvoPJleiXOq6sLwoUcKd7wvUrAWfhxep3mYxk sbBaU1NkFJtOmudCypOuAYcEN69gnunrUq9irqYTtnlYRKJGVTKGYapRbePZzHokm3lVp7 ynM4WQ1OPWG1BetPklQTSv4tZ58UcNtKz3iMiJGm5MougzvbgRJytqz3qNNFjC7e1+nvTs SwMYMYHM28T3iIfXYb0z85DXHvLQrpPmJYgCn5Ru72teW8DbHgsw+oigxXs67g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=hb4+XNmS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683311452; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7ZLzJQueLWII9pEY2I9WFHMclYhMI77moLC5p8rFAAk=; b=I+9c8BRB/uaNL/h7f1pN99BKPyPjHWsaBSjM+ev7IGhJooujISDi2aZBiHmJmTM74A8ajr ZQ7pyNayN/Kh/meTlIgMKCga7qEHfFLd48AgZk5YbHP8BWXE/jBvjiHXtuklGGPhUWBo6A uRrhlxo6MFIiClyW6o2G31npz2lwMaDeGyeBnMiGFc4Cla1dwp0ilha8Eac773mb3ieWWH BUCpg+36qFAG9V+L5y0xncf+Bfi2Zb+rhyEWGD0hFE/ZcKDg8wI7iDGGF99GGCX0gCK24m CbpgagFjGUzbHyXRO0XcZB9jLEAYy8eWKlP87QiKO/Qk+NacTtMe5hNvMguCVA== X-Migadu-Spam-Score: -1.11 X-Spam-Score: -1.11 X-Migadu-Queue-Id: 51F392C95A X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=hb4+XNmS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: IG/g2dn/A17F Relates to . * doc/guix.texi (Audio Services): Do not use a deprecated user form; keep the default one. Remove port. Specify a music-directory. Mention the importance of permissions on the music directory. --- doc/guix.texi | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 04744498dd..207001c550 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -33565,16 +33565,27 @@ Audio Services being controlled from the local machine or over the network by a variety of clients. -The following example shows how one might run @code{mpd} as user -@code{"bob"} on port @code{6666}. It uses pulseaudio for output. +The following example shows the simplest configuration to locally +expose, via PulseAudio, a music collection kept at @file{/srv/music}, +with @command{mpd} running as the default @samp{mpd} user. This user +will spawn its own PulseAudio daemon, which may compete for the sound +card access with that of your own user. In this configuration, you may +have to stop the playback of your user audio applications to hear MPD's +output and vice-versa. @lisp (service mpd-service-type (mpd-configuration - (user "bob") - (port "6666"))) + (music-directory "/srv/music"))) @end lisp +@quotation Important +The music directory must be readable to the MPD user, by default, +@samp{mpd}. Permission problems will be reported via @samp{Permission +denied} errors in the MPD logs, which appear in @file{/var/log/messages} +by default. +@end quotation + Most MPD clients will trigger a database update upon connecting, but you can also use the @code{update} action do to so: -- 2.39.2