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 ms5.migadu.com with LMTPS id SHI2MrsYbWJMDAAAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 13:08:43 +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 qEJrMbsYbWLVhAAAG6o9tA (envelope-from ) for ; Sat, 30 Apr 2022 13:08:43 +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 4392B299BC for ; Sat, 30 Apr 2022 13:08:43 +0200 (CEST) Received: from localhost ([::1]:47824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkkxt-0000Xf-T3 for larch@yhetil.org; Sat, 30 Apr 2022 07:08:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkkx6-00006s-03; Sat, 30 Apr 2022 07:07:53 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]:34460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkkx2-0008TL-Bm; Sat, 30 Apr 2022 07:07:51 -0400 Received: from server0.selfhosted.xyz (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id 0C8832A5DE50; Sat, 30 Apr 2022 13:07:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1651316857; bh=KikgZvbINFOBAtvb3xJMsaMsgm6xvJzn7f8DrtTyJoM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=kWrYDJ1XaE9ll4JadH9XrPk3sfxJcwvNroFO3fLND2rBS74hX46AeRr8RSz3HMcTP XQGPzr0yrG0N6hzNJO+HRFvLCv65TZz6JALbNM3wUWMVklIQVVnho6EVtt1MkVC/KU 0h1QswspZNA3hYlan5qUR3Y/dyC7Cc5CRhyEIrNq2bprgnxm4QpYSfhrxw1ziYohvP lijpUvejR91Z93dX8r0smgUHlXj9NP/ysk22umwE5h1IvKY3WzCu0SQV+DDaotNM5i IUUTV7tgEDzGaPbCkWDSaE7jdutCHmQ5wMW42+2ofNxw142ecLafhZemQBEW4nWm7p 3Vfk0cyhUP1Sw== X-Fuglu-Suspect: 12751d9047264d3683b224641b40432a X-Fuglu-Spamstatus: NO Received: from webmail.selfhosted.xyz (office.selfhosted.xyz [192.168.1.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA; Sat, 30 Apr 2022 13:07:27 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 30 Apr 2022 13:07:27 +0200 From: david larsson To: t@fullmeta.me Subject: Re: Guix as remote dev machine In-Reply-To: <0bfaa5f2-558a-4109-a19f-de918eaef637@www.fastmail.com> References: <0bfaa5f2-558a-4109-a19f-de918eaef637@www.fastmail.com> Message-ID: <1b1626d32d8d594bb8eec5371b4047e2@selfhosted.xyz> X-Sender: david.larsson@selfhosted.xyz Received-SPF: pass client-ip=217.64.149.7; envelope-from=david.larsson@selfhosted.xyz; helo=server0.selfhosted.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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: , Cc: help-guix@gnu.org, Help-Guix 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=1651316923; 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=KikgZvbINFOBAtvb3xJMsaMsgm6xvJzn7f8DrtTyJoM=; b=gR4pbx6KutrtqEd9C7meH4upc3BCvQozKnfoK0+gkRWJf3PyjhCHMa2fDKVg7zXqO9AAdJ sP3sKwj8KLoYYnL9SpQO+MBTgaw93IJedJJY2q+mBnVhpGithHVPExTXlVS7/YdnesMtaf zmbK0De8Zv409oOBuIdO7prqG8Xn1BC+f9CHhQT6ffClt26tJl6z0Bqeu4BGclNuFnfAOX aHSkWaAuyJVLGZxZZCV4zldqUPGD5jmQT46a6C9WxZ8PEzZgx3hy0DCcgK0jTyyqe83Dqk 5OwQlwCvXjUvYi9jF3s+eJ+8vRmdV1/DaKUg7DLQZ9DU8OnAfLXalXuNMLse7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651316923; a=rsa-sha256; cv=none; b=UxdBYJG80ZL2GSwlhe7s2jb43DaQkLtxxNj1vVAmRIaRW3zvab9yr8GHF93FNH3sLvMcog 28ZaLE7C+wKfEdGSsN2J2lBMEdpy/gsPwF2vLwUqRsqrFOdQGC2jtAwyH0Id2UQf2F2qmR TSUnmFudJFXM5TbAH54qUINr7XVSyzQxBujPTr3nsRo/iLf/kSCRyz038KZye1wPsaqKbp JfyonR2aGtlEmr92O7/1z471Men3eFz3B3g0gIBYtyeu/TixO/C4ttV1j3XOhp0jBNlSTo F9JPsT8jKhmy6WuFHz6/VvFcD686dS3dAsdayxsfs/B9SVlwdD5XLQxPt1rmFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=selfhosted.xyz header.s=dkim header.b=kWrYDJ1X; dmarc=pass (policy=none) header.from=selfhosted.xyz; 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: -4.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=selfhosted.xyz header.s=dkim header.b=kWrYDJ1X; dmarc=pass (policy=none) header.from=selfhosted.xyz; 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: 4392B299BC X-Spam-Score: -4.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: pR4ZPcFMdshN On 2022-03-21 15:09, t@fullmeta.me wrote: > 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 Hello Mr t! I suggest checking out: guix search xpra Then the Arch linux wiki has pretty good usage tutorial that could most likely work for forwarding of individual application windows. Im uncertain how it works for full desktop forwarding on Guix. Best regards and good luck, David