From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 2OV7NPf3S2QvSgAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 18:44:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IF2BM/f3S2TPEQAAG6o9tA (envelope-from ) for ; Fri, 28 Apr 2023 18:44:39 +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 5829A1A553 for ; Fri, 28 Apr 2023 18:44:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psP5D-0007uJ-CY; Fri, 28 Apr 2023 10:28:23 -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 1psP51-0007ca-IY for bug-guix@gnu.org; Fri, 28 Apr 2023 10:28:12 -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 1psP4z-00060n-6Y for bug-guix@gnu.org; Fri, 28 Apr 2023 10:28:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psP4z-0005AQ-2n for bug-guix@gnu.org; Fri, 28 Apr 2023 10:28:09 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63082: [PATCH 16/17] services: mpd: Update basic example. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Apr 2023 14:28:09 +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.168269208819849 (code B ref 63082); Fri, 28 Apr 2023 14:28:09 +0000 Received: (at 63082) by debbugs.gnu.org; 28 Apr 2023 14:28:08 +0000 Received: from localhost ([127.0.0.1]:34178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psP4x-00059r-RV for submit@debbugs.gnu.org; Fri, 28 Apr 2023 10:28:08 -0400 Received: from mail-qv1-f52.google.com ([209.85.219.52]:58420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psP4b-00055r-9u for 63082@debbugs.gnu.org; Fri, 28 Apr 2023 10:27:45 -0400 Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-5ef524eaca1so270386d6.0 for <63082@debbugs.gnu.org>; Fri, 28 Apr 2023 07:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682692060; x=1685284060; 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=FxgC/z6CTX0u687CYrXSDmhKMXFUI/C+8Y9wZO+N/6k=; b=IJWlq6caXr1u926zyNjysC5wS4U3p+JPMTMLRX2MGtFjeyAuTy8MzGJllelwyqci2v aIq5PtQbGcRV0qS0hYJKC6B1s/lFsnfW8FJD46jp3SXlrpIgkwKE1hzfUIz09SHzA3d9 2iToi8BJpOzqVAikMuBBEwl/2QPCFSy6M50jW+H/a2V1N+NifsE/SnFF/qAfZxAufZts 9pHrXtsS/laZtAf0B4NYu3vQ7FslVi+G9M7YZM0nDYwgEPYDAG7JNjDQ/i3d7cmn6O+R EroMzZw5dCX8/bm9O8Xix3zHyCZni90VoKW+v0+m+y4TIzdlgTZtK4d0BYF7PdczLgvr 9Aig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682692060; x=1685284060; 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=FxgC/z6CTX0u687CYrXSDmhKMXFUI/C+8Y9wZO+N/6k=; b=EwSf4T7yiUvxMQjE98ToGTLY6kTwcs/0QCPBm3t4asl7gQwPvuU8bY+aARxLnEwbfP neco7WixzUelWOin6mYKH3YBW1adxH5s2i9l9kaynXupiNunypAGZkf9J3sN6dwkFmcW 4AGRI+FoAO3r0dd2BguVOk2Jo4ARtZWpJcYzW9Rzkp4exMRQ3j8wUfIIPWlvpo/sljZZ Uar5N2a2r1+MLfMxAJyxZ7ghRakYje+jrAcS2s+sL+mN6L+Rols0PxUFQuIV2II44f+o ADYclj5b1qnujVXpd4uh2KG2xpcxdE0L+RNNedlGZVD1+UGPC6KS11xsZVZnPCARwz4j xWgg== X-Gm-Message-State: AC+VfDwLHkRHXS0CqIajeaQMZKEY1ysvEqnNM/1tmZjJ4U+cZGArgynI 2xvOIPWxIp5fl6OEFWfhBS3mInE/KpU= X-Google-Smtp-Source: ACHHUZ53gMviJtaYYPmGjaboaUrjB7kn1PD8vFfMJNyllvH7LyiM5ySxM6CQGcVREy+SYf7x/d+V1w== X-Received: by 2002:a05:6214:2347:b0:615:29ab:e4a8 with SMTP id hu7-20020a056214234700b0061529abe4a8mr8342644qvb.31.1682692059572; Fri, 28 Apr 2023 07:27:39 -0700 (PDT) Received: from localhost.localdomain ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id d8-20020a0cfe88000000b005ff569bca72sm6176940qvs.93.2023.04.28.07.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 07:27:39 -0700 (PDT) From: Maxim Cournoyer Date: Fri, 28 Apr 2023 10:27:09 -0400 Message-Id: <7015c07c1ce928e22e4e2f810408d551d62657be.1682690696.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682700279; a=rsa-sha256; cv=none; b=Ms7SuIqUPIcYmPvZpJRNry3L4Y3Jv6rxOlQqxziJD8qGTNc8E/OnNplHcHIs8febyXplR7 wVdKnaib6fzAmZRedqT8QwNp2F1zxRjDcxHQ7Euv0DHZYG3eX5k8zRkgHMB+ZYGnkPXmLp monbkxPqCuzUzTZEFm+lLphp9+fe8E2poKj+p1Zek/kwOgfdtXj5coahglCfQCSNs4z5d7 ZoQ5t3q9P1tPLYHyrF0FvT4ZtoFFNZGa6AhVC1A0iaYf3Ugtc5WnuK/8/edG/DQz/Jc3HP Wk7UucphZL9q1aqYATtQvdy0qiQzREsUTrcamwiT9jF1OhYr4KDrWSx77HXekw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=IJWlq6ca; 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=1682700279; 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=FxgC/z6CTX0u687CYrXSDmhKMXFUI/C+8Y9wZO+N/6k=; b=r42qTl3xivEcLo0VyOIqy3ThYYzURxyzI5CatFsox5vo0rfNGRFf771AK+LghEa9aDoy5I iVcbux9uL84Dn1gFEqpxlxqck9Nz232ibrUaiLjz1JCdLVlmRJaCdD8k66r89aGtwYQzTV SjW7Gzb+RKT0xn/LatiENX0SH6JTLWZl80bCLh71F88mS7KHioo4wtH69Ihf6wWaEceyK0 dBKwdfhmz40/BpUqbCIuDiWkiOmPVXQMay9iWQKlh1GasjmUQxywivpgDgfTwDzHBOwU3g SOzK/Yw+/QOr6cQfOgnGE1mT3ar9fG8XJEfZuc7WmkSjOnZdqFJQfOK3XX1/xQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=IJWlq6ca; 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-Migadu-Spam-Score: 6.30 X-Spam-Score: 6.30 X-Migadu-Queue-Id: 5829A1A553 X-TUID: yEfjMpf7qcjF 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 9be59f9f02..467870e0c4 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