From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 cNbcGMqjOGJbQwAAgWs5BA (envelope-from ) for ; Mon, 21 Mar 2022 17:11:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uFpUFsqjOGIUcAAA9RJhRA (envelope-from ) for ; Mon, 21 Mar 2022 17:11:54 +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 D57F931D51 for ; Mon, 21 Mar 2022 17:11:53 +0100 (CET) Received: from localhost ([::1]:49510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWKdM-0001hL-N6 for larch@yhetil.org; Mon, 21 Mar 2022 12:11:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWKag-0000WK-C4 for help-guix@gnu.org; Mon, 21 Mar 2022 12:09:08 -0400 Received: from mail.inskydata.com ([66.112.184.16]:38906 helo=server.inskydata.com) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWKad-00078N-Vz for help-guix@gnu.org; Mon, 21 Mar 2022 12:09:05 -0400 Received: from smtpclient.apple (unknown [192.168.34.179]) by server.inskydata.com (Postfix) with ESMTPSA id 7631D8DA9E1A; Mon, 21 Mar 2022 10:10:17 -0600 (MDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Guix as remote dev machine From: Brian Woodcox In-Reply-To: <0bfaa5f2-558a-4109-a19f-de918eaef637@www.fastmail.com> Date: Mon, 21 Mar 2022 10:08:20 -0600 Message-Id: References: <0bfaa5f2-558a-4109-a19f-de918eaef637@www.fastmail.com> To: t@fullmeta.me X-Mailer: iPad Mail (18H107) Received-SPF: none client-ip=66.112.184.16; envelope-from=bw@inskydata.com; helo=server.inskydata.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.187, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 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=1647879113; 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; bh=8RFpGY0hRjp349MOmOCINXmJ/4e1Pi+THc7As/6UEh0=; b=Qu3cbW3myB9tp3IRS4r6E8N6JOJwVQPjkMyDjDfMQwtRuvL8lHru51ucDsqDOjGyxKLquS XCCvEXeAipZymXeaI/xdmzU/41cryGiE8Eco1TJR+3dfHFLR5NiDDwyCf9UPaQDGKoTTro 2ZnvXksgyxF/NNVmdJw75X7qcy7B+AREcccorhrow1NzpbcIKoSUjPh/yn+06KrEcGrY1L reDJN+5gU1EParBYp0hRjHL/c3/mgVXCM8dMeaO5kTMpi1A9w91hJ1DGa9GatogMTFPuB1 LHNkCcfll3hFwKzPlaV1z2xi+HsI52UC6RPd8jmKKriHbyxiKDprwlx97uvf0A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647879113; a=rsa-sha256; cv=none; b=CZM97448VNVD8joPwbOmoLllKpJmH4vyxAx4HPWEJsI6GNMfzSM9W00IL2DJPulZfsSQYG 1+NuAGDc6dbBq7eQxd0NXezX7FXe4rcLipyFkYTIap6YEWSXyzz7LFwzQzA48tqdEVD0IM BAsBOGiSMym/iqGk0/4+ntOP9JXfwG6xUIGoIo8QcIRo7CI8At2JCEtigFC2OM5n1ybSOY TbB3uWuOdtn5k2OAzYR6EZIYVTptkOUJT3yb0l4bSlIaVP1+BBnRTnA6w6022z22bbNj8z W421jO3hgsMUaNw56loZWK9uzWpQMtuzsrN5KVfxArfKPPDnX3GHa+cgJZBOQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: D57F931D51 X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: dLdy4vRzzLXK I=E2=80=99m not sure if this will help you or not. I screen share from OSX to a VM running Guix system on Unraid. I have the following installed: tigervnc-server 1.12.0-0.b484c22 installed. xrandr 1.5.1 So I run the following command in a terminal window in Guix under my user: x0vncserver -display :1 =E2=80=94PasswordFile=3D/home/me/.vnc/passwd If you were to automate the above command, then you wouldn=E2=80=99t have to= type it in all the time. For me since I=E2=80=99m using Unraid, I can just= vnc into the VM and execute the command. So you probably already know this, but to remote into this from OSX, you wou= ld do the following: CMD-k while in the finder to connect to the server. Type in vnc://me@192.168.0.xxx and connect. Next. xrandr will list the display resolutions supported by Guix. In my case, I d= idn=E2=80=99t see 2560x1440 (Apple Cinema Display), so I did the following: xrandr =E2=80=94newmode =E2=80=9C2560x1440=E2=80=9D 312.25 2560 2752 3024 3= 488 1440 1443 1448 1493 -hsync +vsync xrandr =E2=80=94addmode Virtual-1 2560x1440 xrandr -s 2560x1440 Use full screen on mac to fill whole screen. Of course the above commands don=E2=80=99t stick. So you have to re-enter t= hem every time. I would work this out myself, but I=E2=80=99m just too busy= . Hope this helps. Please share back your solution, I hope the above helps you in some way. :) > On Mar 21, 2022, at 8:12 AM, t@fullmeta.me wrote: > =EF=BB=BFHi Guix. >=20 > 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 challen= ges. 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 >=20 > When attempting to do something similar remotely, you very quickly run int= o issues. X forwarding to a Linux machine kinda works, but sadly on OSX, whi= ch I have to use as a client, XQuartz X server implementation can't deal wit= h hi DPI and the end result is miserable. Then there're potential rendering i= ssues 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 everythi= ng with it. >=20 > I hear you say `tmux`. I thought so too, but fresh `guix package -i tmux` g= ives me `Incorrect locale LC_all, LC_CTYPE or LANG` when I try to run it. We= ird, seeing how this is attempted on Guix SD. No matter. Lets just go with `= screen`, which seems to work. Then follow the above steps. >=20 > This sort of works and how I would imagine most people attempting this wou= ld end up with. It leaves me itchy though. I mean, do I even need that `scre= en` there when `emacs --daemon=3Dname` exist? Latter will happily detach its= elf from your tty and persist across ssh sessions. Problem of course is the 2= nd step above, which assumes we spawn a shell (possibly run a container, may= be even the entire system). I wonder if there's a way to avoid the intermedi= ate `screen` or `tmux` completely. Way I understand it, `guix shell`, `guix s= hell -c` and `guix system --container` are Unix processes. Could they be det= ached or put under some group or smth? I mean, screen works ok, but I wonder= . >=20 > Thanks