From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kOoINiNsjmM0PQEAbAwnHQ (envelope-from ) for ; Mon, 05 Dec 2022 23:09:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ODX4NSNsjmM8FQAA9RJhRA (envelope-from ) for ; Mon, 05 Dec 2022 23:09:39 +0100 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 91B2F2D6AA for ; Mon, 5 Dec 2022 23:09:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2JeC-0004oy-7U; Mon, 05 Dec 2022 17:09:12 -0500 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 1p2H6e-0000UM-5q for help-guix@gnu.org; Mon, 05 Dec 2022 14:26:24 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2H6c-0008Qe-8L for help-guix@gnu.org; Mon, 05 Dec 2022 14:26:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2F15C240026 for ; Mon, 5 Dec 2022 20:26:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670268379; bh=uzwkCwWqgFZ/V6Gd9j4Qw7zDRnyMtytmsRQqp3SIzbE=; h=From:To:Subject:Date:From; b=nswD//7FCikSGoO/+rxCUVSoxWAwcjcpaq8cwE3fcjp2YcrVdBTl0GnR8yZAMhYc6 JebJmucQrksnIzGPuujVX/v67Vhf2UomwKvC9YxVdsviBGfycoNMBZ7cdVfdfJ12Jq dChGGb7HbW6gD8hBBR5H+RbZ0d0xmfpC3u6tURuRXNWtLRgVf3xJmOWZYpcqBODgwz fM7TluJHmXCn9yF8geTPcXa2QXUGhndR07BdtVsi8wt5Hm9pVdtNxSoQFbX9DDEGRt sFT4qnNA+lPMUm+injMCxYByo3/yTOyOuEEYQPXv4EwYd90VbKII87UMDBvMcDkIR0 foTsK/5iuh/0A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NQtnj41TPz9rxN for ; Mon, 5 Dec 2022 20:26:17 +0100 (CET) From: Elias Kueny To: help-guix@gnu.org Subject: How to make audio devices available with guix shell --container Date: Mon, 05 Dec 2022 17:41:14 +0000 Message-ID: <87o7shsld3.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=185.67.36.65; envelope-from=elias.kueny@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 05 Dec 2022 17:09:08 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670278179; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uzwkCwWqgFZ/V6Gd9j4Qw7zDRnyMtytmsRQqp3SIzbE=; b=FiyPAzvPr7sJYtJpiC0/sd+v5/8tkRAn6jZ1h0Db6naG6y5hywpGHLCzJmn6K6bdBZacX7 VJGpthwt87arai8z0uiimbO+Q+wx5KakIQV/eTQQfmUjmezquTHNLrbYrZNBX0ixUXMU7D YvzFmwQy5qiD0J9gOe6dMIlzN3SVEellBSi4Zl6oyElEC1KVemy3b0N492ElE0orKve05H TTibz7jQCeDHJQr6RwSIeW2iOavuFcwq2qalJxFTI03Rha6MboJ5T1LbrD1yNhOUmbXLP9 wUvN8mPmJTsLkSXv2FzIIlZ7+x0z0ZE1HRHg/p16V4fi2lN9+zzKN0UZHZMRrw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670278179; a=rsa-sha256; cv=none; b=MrU2JNVMNp8NPanbqZD8KH2KITlKNGrEAeqRsESoLl2s99hh9qt+Y13hVfVO5xcDkMDrcf 8jzhszfWGloLXN28iG9d4D7vRHt27/FhjRxHLcD6Hf5GvImzBXMIeS4mSrtWmhDPNZtoZI o3fPPUiWB5y15m2ATpGws/cEzsfpSbVWQP0tvUrX5/MQ1YWAyV3KkjCVi+rLO59MbeqiXw 9p25MT8U02aNhkGAxCxNV/eEUsVfXMwcackKlDKMj+Y4NW6JyvAHXcuADct9It2NKe5YEt 3NnM2aDUQ0kiWtTLWymLu05UeD3O+FUB1sCpdKIPSydmceJnAWvi+b29tKVVRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="nswD//7F"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="nswD//7F"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 91B2F2D6AA X-Spam-Score: -2.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: /emYxOJ6Inhd Hello, I'm trying to run an online videoconferencing tool in chromium in a guix shell with a container, so I expose my system as little as possible. All is well without the --container option, but I'm not sure what to expose to make it work in the container too. I'm on guix system. I'm starting the software with: `guix shell --container -N -P --no-cwd --preserve='^DISPLAY$' --preserve='^XAUTHORITY$' --share=$XAUTHORITY --share=/dev/video0 ungoogled-chromium -- chromium --app="https://meet.jit.si"`. `--preserve='^DISPLAY$' --preserve='^XAUTHORITY$' --share=$XAUTHORITY` lets chromium open an X window and share the scren. `--share=/dev/video0` gives access to the webcam. What is the step to allow the microphone and speakers? I'm not particularly familiar with how audio devices are working. I read they are in /dev/snd, but sharing this or even the whole of /dev/ doesn't make the microphone and speakers available (although the browser is now asking me for the permission to access them, so it seems aware I have them). I also tried adding tinyalsa and pulseaudio to the container in case that's what's missing, but to no avail. I didn't explicitely install anything related to audio (but I have %desktop-services in my operating-system definition), so if it's a software that is missing, I don't know which one. Thank you in advance!