From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0OfYNyqHOGIsJgEAgWs5BA (envelope-from ) for ; Mon, 21 Mar 2022 15:09:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cLm5MCqHOGJ6+AAAG6o9tA (envelope-from ) for ; Mon, 21 Mar 2022 15:09:46 +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 03CB515E0A for ; Mon, 21 Mar 2022 15:09:46 +0100 (CET) Received: from localhost ([::1]:58132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWIjB-0006Xe-3h for larch@yhetil.org; Mon, 21 Mar 2022 10:09:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWIiw-0006XK-BN for help-guix@gnu.org; Mon, 21 Mar 2022 10:09:31 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:35685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWIit-0001ci-R3 for help-guix@gnu.org; Mon, 21 Mar 2022 10:09:29 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7AD293200F81 for ; Mon, 21 Mar 2022 10:09:24 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Mon, 21 Mar 2022 10:09:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fullmeta.me; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; bh=C Y1+vUsP/EjXL0pv0oX/2lyoqRPjdibp2zS8joW16/0=; b=nF0zTQuMCFC/dt1JD B2LyTXx491+RunRqxst08aeNcl9cmVoSWd5gAew2dCWk1DYu7ScYqLJjYQJcqdi3 CRQeGLWKqs19oxeIQr7BA01veDAYm0xxZP89hAqWph1OcDAUQfUEthn6r2OE5wW/ qQOrqU4iAk9qpSFzx63eqRrqxW9mfnMBc627FHjjDyIDrjTti6pmdeiMO/wZxo5L R/bWcsqQVEUpxvci1KKIIz2R7jaownmbw0cB+nf0Amx1Oipqinf1hNQeL1gvkCC6 ng2zWGZWP5qcQOrNMOYQCAhndWw9IjXhmD4Y5ienQpkeJVEtdyqeyfRq+3bVNiIL ni7cQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=CY1+vUsP/EjXL0pv0oX/2lyoqRPjdibp2zS8joW16 /0=; b=fISD1rMU2Ck4bwm35RZfjmJNelX+/3xSCyxHB0LmVDFWcfG9/41gvzcBt g3ghIqxVCnsn3IMXpRIvM8zC+ZPsprL+Helxp/vspKdlLplmdTuwuJA+Sw+sMqtX cYdUWaxaG68eIsKcKLIcH6gPE5GG4cVa28IUVKgf6DKDKqV8H5cm8ZaL5IVGsjwZ l+q6nXd0sGGWsQFC+ezoO1/9bp026vUIHB/qRsAp/5FyjJPK4j5txdJgTXnXtFT+ FLphRypZLOFP2+dD3pnid8PVptXC2+ByBU8jPJyzsx3urY8S8X3SGmzf34R8LAcM +fqTwNWCTj74vcqE8FjFzQFMJtbhA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegfedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpehtsehfuhhllhhmvghtrgdrmhgvnecuggftrfgrthhtvghrnhep ffdvgfduvdehtedvveeugfeuudelfeeuieeghfegtdfgieetgeekiedtfefgheffnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthesfhhulhhl mhgvthgrrdhmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B85DE24A0074; Mon, 21 Mar 2022 10:09:23 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4907-g25ce6f34a9-fm-20220311.001-g25ce6f34 Mime-Version: 1.0 Message-Id: <0bfaa5f2-558a-4109-a19f-de918eaef637@www.fastmail.com> Date: Mon, 21 Mar 2022 14:09:02 +0000 From: t@fullmeta.me To: help-guix@gnu.org Subject: Guix as remote dev machine Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.25; envelope-from=t@fullmeta.me; helo=wout2-smtp.messagingengine.com 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647871786; 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=CY1+vUsP/EjXL0pv0oX/2lyoqRPjdibp2zS8joW16/0=; b=KmxwJF6w2vlAG5b62pvpmNa6OIZz/fzEffV2XIEAcxOY81Sm6CZZEApg4h+GxhcP/fDnxX qztplr4NPsMnWsbazP2trWbqNQPxH+UEBMnWxkuJwuPoWO7CcDrBYWn3tRl7oYRTPUcm38 yXSkCi9Dyze3wjkjBZpJcDNGOsMv8noVzvDYOaK9DWq+DpY566AafDwGrJfZGaKPd8XdHk KrLvCUGXRRBxOKBUmMcbAYBXqBJJvBu8Yb+DuTHT6/TOILEyxMZuEBez388NZPvGm3cB7O Q+QNPjbzAm7JDndXhng51ewBfiZUIlSymtv6r3ADTZ8KKg43cvTENYBnpNTiOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647871786; a=rsa-sha256; cv=none; b=Uny8tQ3ZFHjU9A2tyV5Kquyk8But4Dsn9Q/sHFT6fxvhSRT4J04IUwImiSr+dqh5MZHHU/ qP4m0/i68gqDH0kfqg5fYi/+6qSFADVOAe5CgFfq+rmN6MRTn1QwWoF/cE5CqODncxUm+F C5XyIebbGTq5o1oZxs0RsIGjgfa83SHvF7qzpai+d2s7jHi46edpmWzvNJdbjjEZoHY6N7 6/fqqWVlOnpw5hiwMUEP6aXdrSSrlhjU/iP2pST9y32On6riMjb6Wr6t7oShKaGzZ76C6/ /5u14aLRRdL2Daw5B8/l/j6oIlaRpxuxD7Bv6OW0RtW1KhlOd8rrBmsWay4ueA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fullmeta.me header.s=fm1 header.b=nF0zTQuM; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=fISD1rMU; dmarc=none; 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: 1.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fullmeta.me header.s=fm1 header.b=nF0zTQuM; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=fISD1rMU; dmarc=none; 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: 03CB515E0A X-Spam-Score: 1.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: BfBNnGatX5se Hi Guix. I'm trying to come up with a reasonable way to use my Guix machine sitting in the attic as my remote development server. This presents several challenges. Locally I would typically follow these steps: 1. Create a project dir with guix.scm describing (possibly empty) package 2. `guix shell` or start a container, with entire system if I need to e.g. run a db 3. start emacs from that shell or container forwarding to my main DISPLAY When attempting to do something similar remotely, you very quickly run into issues. X forwarding to a Linux machine kinda works, but sadly on OSX, which I have to use as a client, XQuartz X server implementation can't deal with hi DPI and the end result is miserable. Then there're potential rendering issues when your remote server doesn't even have a graphics card. We're sadly left with ssh + terminal Emacs. However, just ssh and then follow the above steps won't be enough. When your ssh session goes down, it'll take everything with it. I hear you say `tmux`. I thought so too, but fresh `guix package -i tmux` gives me `Incorrect locale LC_all, LC_CTYPE or LANG` when I try to run it. Weird, seeing how this is attempted on Guix SD. No matter. Lets just go with `screen`, which seems to work. Then follow the above steps. This sort of works and how I would imagine most people attempting this would end up with. It leaves me itchy though. I mean, do I even need that `screen` there when `emacs --daemon=name` exist? Latter will happily detach itself from your tty and persist across ssh sessions. Problem of course is the 2nd step above, which assumes we spawn a shell (possibly run a container, maybe even the entire system). I wonder if there's a way to avoid the intermediate `screen` or `tmux` completely. Way I understand it, `guix shell`, `guix shell -c` and `guix system --container` are Unix processes. Could they be detached or put under some group or smth? I mean, screen works ok, but I wonder. Thanks