From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4F4PEQwzqWNtmgAAbAwnHQ (envelope-from ) for ; Mon, 26 Dec 2022 06:37:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WKQbEAwzqWNcZgEAG6o9tA (envelope-from ) for ; Mon, 26 Dec 2022 06:37:16 +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 AE14C9E70 for ; Mon, 26 Dec 2022 06:37:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9gAH-0006mB-4i; Mon, 26 Dec 2022 00:36:45 -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 1p9gAF-0006kT-4a for help-guix@gnu.org; Mon, 26 Dec 2022 00:36:43 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9gAC-0001gP-LE for help-guix@gnu.org; Mon, 26 Dec 2022 00:36:42 -0500 Date: Mon, 26 Dec 2022 05:36:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1672032995; x=1672292195; bh=MZHxogWzzbnKNJnK0Ay/njFZ03Y/DhryWioXxVFdEjI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=iZvxs8dttQ7Y1/v8R1JIRO2uhn4RVDMjasom+2zz44wB4Dra6Grt9Joosaid6XMqH ap07No15U+zN4K3gT1fHbz91VKUr5RGiG1pl9pRQtfEmdiXfeI+YDOR7FvUNH74KPw gW6n0EqZgRjAMZgH2DL8GQKHuQYzo9RvJvX+P7Qo6bB5mNwfaAqpoxeBviyltc67B0 6p2EX7mpKaqvXhFHRoarccFifLacXyMQ9hld/NXCWV2KAAknQCz/pwG5d4Q29g+OZo zT//WEqId1ZdQptwsddaLk2L4z45R302lSjoiOGAKc8juJcWUFNslQ2sWqnY9eu1G9 FP5ndS5qgxdtg== To: Csepp From: John Kehayias Cc: Jim Newsome , guix-devel@gnu.org, help-guix@gnu.org Subject: Re: Drafting a Guix blog post on the FHS container Message-ID: <87sfh2k9po.fsf@protonmail.com> In-Reply-To: <87a63edgch.fsf@riseup.net> References: <44635a7b-f8dc-4bea-935a-15e6a41ffa88@sporksmith.net> <87a63edgch.fsf@riseup.net> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.133; envelope-from=john.kehayias@protonmail.com; helo=mail-40133.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672033036; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MZHxogWzzbnKNJnK0Ay/njFZ03Y/DhryWioXxVFdEjI=; b=jrVupPTPVtdISKVFprvqw5fdeH3OjZ0PxK4pTlfDjzee1qe9srvw7i8u74sk94qgr+nM8d ghFx47PP3Yw7r7W1oLGnOP/Sh341fAgt9EVlTd0uZIsgkqUggS6QyXYriMguwPgRg4B8ne sLbI6oboG1Ev54YlgMjnrzFG2rNhP6JS0l0UAerAViPLH3FphZXcKAf0i3Ea/FZ70QCR3i PNjdHLYal2q/x/ZhvJatbsK5sjgJspLd5/zHwBRf0ecf+qiySyCggX0WloXYAbATECpFAD UhJraEn1/kv2MmzQ6T8H0jzYEe1TJvg1CXt7d2S5fsjEBDi1g9WsKtWE+7OaaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=iZvxs8dt; 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"; dmarc=pass (policy=quarantine) header.from=protonmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672033036; a=rsa-sha256; cv=none; b=S8qW5SBGi8Ad2+ec9uC/kBNWDb01uP1lqcsR4x0211U4FZ6psg03XFZBRd43EjRwihNMMZ 3d7oqe7VG649ZwckZtxFc/gKbtO5UxXFmmglijsMjmBu/SoEhARXsp4SYRTl6gkG0+G83Z dUtN/+L5cUNX1vzq26/AXxyq7HHo9PTL146zRRk5BAWu4PgW5orMlDKeDqcQoYkq0LPZF9 1OY7AHWsDF7V1nTnymXVftIcEq9p08RPbEcKmDjIpInX+VLNYJ0T/JEuLtsKh3eXclwLHt EynbIKgI37bj3EYbRGUjjRBXdeXrk7szgh83PL3mq+5nwO3rYUF70OeWIFptIA== X-Spam-Score: -6.15 X-Migadu-Queue-Id: AE14C9E70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=iZvxs8dt; 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"; dmarc=pass (policy=quarantine) header.from=protonmail.com X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.15 X-TUID: dws0Jb96l29y Hi all, On Fri, Dec 23, 2022 at 03:04 AM, Csepp wrote: > Jim Newsome writes: > >> Sorry for (presumably) breaking threading; I came across this online >> and don't see a way to set my in-reply-to-email header properly. >> >> Anyways just thought I'd mention that I recently learned about this >> feature, and was able to use it to get a downloaded [Tor Browser >> Bundle] running with: >> >> >> ``` >> guix shell \ >> --container \ >> --network \ >> --emulate-fhs \ >> --preserve=3D'^DISPLAY$' >> --share=3D/run/user/$(id -u)/gdm \ >> openssl@1 \ >> libevent \ >> pciutils \ >> dbus-glib \ >> bash \ >> libgccjit \ >> libcxx \ >> gtk+ \ >> coreutils \ >> grep \ >> sed \ >> file \ >> alsa-lib \ >> -- \ >> ./start-tor-browser.desktop -v >> ``` >> >> `--preserve=3D'^DISPLAY$'` and `--share=3D/run/user/$(id -u)/gdm` are to >> get access to the display. I'm not sure the second parameter is >> universally correct; I reverse-engineered it via roughly `ps aux | >> grep -- -auth`. >> Thanks for the example! That's a slight variation of what I've seen/used fo= r display access, as you can see in my previous examples and the current dr= aft of the blog post: >> The `-v` parameter to the browser script keeps it from trying to >> background itself, which otherwise causes the container and browser to >> terminate. >> >> It'd ultimately be nice to package the Tor Browser Bundle properly for >> guix, but it's nice to be able to use it this way in the meantime. >> Yes, that's handy, and some extra isolation via the container too. >> -Jim >> >> [Tor Browser Bundle]: > > Any idea how to use this for running appimages? Or anything that > requires FUSE in general? Please see my previous emails and the current draft, linked above, for exac= tly that. In short, use '--appimage-extract-and-run' instead of letting the= appimage try to mount itself via FUSE. For FUSE, one can't run it directly in the container as it is setuid. You c= an use flatpak-spawn from flatpak-xdg-utils though, to work around that, so= rt of. To be merged as soon as I have a chance (sadly dealing with an unexp= ected crisis at home these past weeks so I haven't committed anything yet):= Unfortunately the container that does this, or actually any created before = the mounting, will not see the mounted appimage. I think this has something= to do with namespaces and how containers are created, but I'm not sure the= details. You can see some discussion of this in the IRC logs, but I can pr= ovide more summary later if you are interested, roughly and has the discussion. John