From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4LnwJFFuTWTnewAASxT56A (envelope-from ) for ; Sat, 29 Apr 2023 21:21:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YIfuJFFuTWRDUgEA9RJhRA (envelope-from ) for ; Sat, 29 Apr 2023 21:21:53 +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 5D5653AF7C for ; Sat, 29 Apr 2023 21:21:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psoHu-00018K-Ad; Sat, 29 Apr 2023 13:23:10 -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 1psoHs-00017b-PA for bug-guix@gnu.org; Sat, 29 Apr 2023 13:23:08 -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 1psoHs-0003O4-Fd for bug-guix@gnu.org; Sat, 29 Apr 2023 13:23:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psoHs-00008s-AL for bug-guix@gnu.org; Sat, 29 Apr 2023 13:23:08 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63082: [PATCH v2 15/16] services: mpd: Update basic example. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 29 Apr 2023 17:23: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.1682788960371 (code B ref 63082); Sat, 29 Apr 2023 17:23:08 +0000 Received: (at 63082) by debbugs.gnu.org; 29 Apr 2023 17:22:40 +0000 Received: from localhost ([127.0.0.1]:36585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psoHQ-00005o-Er for submit@debbugs.gnu.org; Sat, 29 Apr 2023 13:22:40 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:54694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psoHC-0008Vo-2y for 63082@debbugs.gnu.org; Sat, 29 Apr 2023 13:22:26 -0400 Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-3f1f1a7ecb7so10013511cf.1 for <63082@debbugs.gnu.org>; Sat, 29 Apr 2023 10:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682788940; x=1685380940; 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=MKizpeAvPv9hDeVEEfjBets07omPsniIDPGVowCkjs0=; b=pVGNoApBR5G/KrAp4xl5vDW9JBo5wLsyFA5ClWJxUFf6c8eHNJqrHjPkkWox2eJUQb weXwybnlR/dNEoHZaE3TmG1KSTdDZAiKypoCHLE0TQKKQ7di6+/53EZgHh2Y4NYL7Qbb WTq70LM5qt1OL0y4wOv0rXVazh8U3ebBuJIvSj7863lj2AmJDWanwlJQ24NC6joxu5dh gJaLBzFJ8vWS/q8mX/Ss1ALTCO5Y1D1v89uPYWn9XElVJoM3hJ0s8Dck5hDoxwaqv84J XL0mpFnNBLB84FdpSYdYNZi/bmlNPW2O7Os2+J9fxkercp0NMOgfnUfQlHM9B9UMca47 +Njg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682788940; x=1685380940; 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=MKizpeAvPv9hDeVEEfjBets07omPsniIDPGVowCkjs0=; b=AhRKggKksU8mx+UyAt8eVRJ62oKPndYVHXIkbgxJtaEZSomb1CEkiQws750egeRlS4 i2O3Dgidb63W7iyafIBUj51drg9zQSPSsSjv6/NYj4ZljChCxYuuIM60pjiGBZGUsMEv 914U3yW6r4Q2yWE7kX44V2VnDfAnuns6LYbrtqDJEyrcNyR4EB2aAubFOvBI2Hb38Ksy NgadTB6MjiFW1NB8e5+qOcCsTxQ7BGLuiDIpKDxqiBowUMikwyiDLo+kE+vJpEcS9kTF G1AUx3uIq9fGIA8JIwFJpNqzOJO/6YSV9NkvfxRS+G2lvsct5/gGFy6aSDIxabP5JY6s 2y2Q== X-Gm-Message-State: AC+VfDx/5HAx+SgZf5hpeTYpKDiiADeS5Y2JlwXt0kVJv82dSb5vEF5x 6xfYwuknnFhjfAn6JbGxjdZYpgOy2QA= X-Google-Smtp-Source: ACHHUZ7nrdafRjZqnntw0kv9gOabbaVx7odO1yvV9W3b0ULZO5s25hUIIwaH0pEpUkex9tAf06M3jg== X-Received: by 2002:a05:622a:207:b0:3f0:a426:5f36 with SMTP id b7-20020a05622a020700b003f0a4265f36mr14864528qtx.49.1682788940467; Sat, 29 Apr 2023 10:22:20 -0700 (PDT) Received: from localhost.localdomain (dsl-155-245.b2b2c.ca. [66.158.155.245]) by smtp.gmail.com with ESMTPSA id dm45-20020a05620a1d6d00b0074cf009f443sm7582489qkb.85.2023.04.29.10.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 10:22:20 -0700 (PDT) From: Maxim Cournoyer Date: Sat, 29 Apr 2023 13:21:52 -0400 Message-Id: <79f92734cf4cef16b07609c3fb3043b4cb5569c0.1682788744.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=1682796113; a=rsa-sha256; cv=none; b=tnMTINo82DptJN3Z+nctkgpcdmtu4wiGZHmuApcmubFFbmOZehA9L30FFq6NfXJjxbiDZT LIt0J2AqM95cu4nIzKApCsZqLKOtZMH8zjMdfCKQNdJLY1K4zN+Os1b/z+oTplXM+t0xKq OhWRDzznd6CmElm0ToHtQMtSmzIdj1aVyFordLX1RjuAOPzHcxYgQ/sQ92d8Z4WfChsMWy fRKqRoBUJbZIqc6xuDye/UTm0emDMIxve2LIZwg3ksKg0EKaii8M9AfuUkrnYBD18gJ5Xu uKo7yRWUQXi2T8JFf655X6LjAZT0q/RoN5ryZ5Ch3fKrO7u01flwPiDx+5m1xA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=pVGNoApB; 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=1682796113; 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=MKizpeAvPv9hDeVEEfjBets07omPsniIDPGVowCkjs0=; b=NQPw4QnEhL45XDJfJVmZQJBWdsR8SEJNkaKM47kDqtOkIIcqLgBkR0ZjjmVkqArXcqxwcf HqsPdWu0BkF5btBtjsjHAt/mz9qhnQIPCoCSEs5uFwf+N1wG7AdeWogFrdqiPc7WMduOug mDkaAbOYdFd/QpIx3lSuvVLCDO3FPApqbFCcVztqdQyNUdFo34SzMXIRF2j4Kuzj3rF7/G z5zxyYF4NIf57I+7bF9tvKLq6CRrWVoF12sVSYF3sQsc1K1vU+pCWSJFL8tVzqH+6abQ0b NISor1bcu+IpG0lyoRXDgeFNC7jf34jH6WcUoGvPF9zJSsGnFl7ATHCtRr7vlw== X-Migadu-Spam-Score: -1.40 X-Spam-Score: -1.40 X-Migadu-Queue-Id: 5D5653AF7C 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=pVGNoApB; 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: AxYVPn8/uYal 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 abfbbdb2fc..a26c46ff61 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -33536,16 +33536,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