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 mD5kC0z5B2LLdgEAgWs5BA (envelope-from ) for ; Sat, 12 Feb 2022 19:15:40 +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 mGcfBEz5B2KbLwEAG6o9tA (envelope-from ) for ; Sat, 12 Feb 2022 19:15:40 +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 CDA1B37DE3 for ; Sat, 12 Feb 2022 19:15:39 +0100 (CET) Received: from localhost ([::1]:57324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIwvq-0002Sd-RO for larch@yhetil.org; Sat, 12 Feb 2022 13:15:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIwvE-0002Q5-IL for guix-devel@gnu.org; Sat, 12 Feb 2022 13:15:00 -0500 Received: from [2a02:1800:120:4::f00:14] (port=36400 helo=xavier.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIwvC-0001kB-5e for guix-devel@gnu.org; Sat, 12 Feb 2022 13:15:00 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by xavier.telenet-ops.be with bizsmtp id uJEt260024UW6Th01JEtg0; Sat, 12 Feb 2022 19:14:53 +0100 Message-ID: <2cb48c660574adbc69bd14851306ab9adcd5b5a9.camel@telenet.be> Subject: Re: emacs tramp in remote guix From: Maxime Devos To: Antonio Carlos Padoan Junior , Josselin Poiret Date: Sat, 12 Feb 2022 19:14:52 +0100 In-Reply-To: <87leyghsh9.fsf@yahoo.com.br> References: <87h795s97x.fsf.ref@yahoo.com.br> <87h795s97x.fsf@yahoo.com.br> <87v8xkdcw7.fsf@kryshen.net> <87czjsmif0.fsf@jpoiret.xyz> <87leyghsh9.fsf@yahoo.com.br> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-veHz+VNbJ0GdKulNH2XK" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1644689693; bh=lN7X63M83el+F3C5k+Cs0jQ8ANm/8W46k+OXaiSUDuQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ID4n92nIViRX5oNBg/+OrTLqoTDSwEofocwK3cI5lV6LGqUxRx3cq+1X5CYngtXpm cIwfVBMjB4t/axm5tqI+x88veeffNhaohFjuIPwSyCgjGO1nBHlFLK3lC81YG6ep5r nwacrZrEKy38OhbCuBG+iP4wtU1u6dvdcPMfbr8E9DShBOspMT3eu4e8/8gLmLLhlS COq9UPi7YVSOIJ7TFrc9KVMQFMT+hpuS5nOaJgVxr6g/dtZOCCQNSikqEMPYKFYtQg Ol82p8U7tzYi8x75PruipMAqZZLJ6kQ3Wejk9XMdJIkp6yx23wYG1PO6yxo3WJ4zrN iV5O9pVxHhHTQ== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:120:4::f00:14 (failed) Received-SPF: pass client-ip=2a02:1800:120:4::f00:14; envelope-from=maximedevos@telenet.be; helo=xavier.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1644689739; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lN7X63M83el+F3C5k+Cs0jQ8ANm/8W46k+OXaiSUDuQ=; b=TIv4SVoPQvaM3ZQfk40Oc8dCsDcZGyi4HxBz5QA+jNxTuZAk5b0dJfwDbmRrX3ABBggLc1 GQEDfnm0D/rqbg7OUQzE0dYj4TV6+M5WVfggKlfs1EXTSHK6zLEpJUusWW0F0wRC8Kg+IM nxunBDVVlWSU2KnYf6xX3st7P6a7U6vWnCFy6Sb3XgcOTMp48K9SC/rxnlEuh9in/tdP3j tJrVJllpoDe8Q/hyJXqOYszdsp9K7oYGxJmZEceGoR3anjeA+Ue3cSGSSgkBadTmZ/86b7 nW1IEjd71rW1Ht/0rHs1RZviy8JgIUSKPzWTl4OygihX6IGojxDIDuR1JfMTLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644689739; a=rsa-sha256; cv=none; b=OvhdiKpu18YNC3p2kXbmj4R29uaJAnwqShLV/x0SbzgykZNDNW+kQExrJZEm9MQeJQ1Pnp d+q6WDXHpm8Rcpea3SuE151Gcdhq6TrxAXzocgbTIEIarcPmnDwpEpK4nv5WjUJZhaU2xX Kb3dqm/1bI5V1OHRnn9orrBxKgcdkjrMPq2akz7yMS2y03Pl+O2BYs0X7Rp08Lh7/u3R8y HLikw0QjnoLUOCdiAKsA2zK2skD6qQNQN7UfDZlueZYZIU2bc0FsFFlZvyw5fw/N4B/nKO Hz6AWg7v6D5E6A+0o06iPfTAitHQxN372pDKubYxh6DDHj8J4Ks+E5Sj86r3FQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=ID4n92nI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=ID4n92nI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CDA1B37DE3 X-Spam-Score: -4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: FJeu3DTWaxJV --=-veHz+VNbJ0GdKulNH2XK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Antonio Carlos Padoan Junior schreef op za 12-02-2022 om 19:04 [+0100]: > Josselin Poiret writes: >=20 > >=20 > > I personally use > >=20 > > =C2=A0=C2=A0(require 'tramp) > > =C2=A0=C2=A0(connection-local-set-profile-variables > > =C2=A0=C2=A0=C2=A0'guix-system > > =C2=A0=C2=A0=C2=A0'((tramp-remote-path . (tramp-own-remote-path)))) > > =C2=A0=C2=A0(connection-local-set-profiles > > =C2=A0=C2=A0=C2=A0'(:application tramp :protocol "sudo" :machine "hostn= ame") > > =C2=A0=C2=A0=C2=A0'guix-system) > >=20 > > for tramp on my own machine. The symbol 'tramp-own-remote-path uses th= e > > login shell of the target to determine the environment to use, so is > > well suited for guix. You may need to adjust the :protocol and :machin= e > > keys of the connection-local-set-profiles call for your use case though= . > >=20 > > Best, >=20 > Thanks Josselin and Mikhail! >=20 > Cleaning the tramp file did the job! It works now! >=20 > I will check closely Josselin proposition as well, it seems I have > something new to learn there. >=20 > IMHO, giving the importance emacs has in guix distribution this is > something that merits a place on guix cookbook perhaps. I think that ideally, the tramp package in Guix would be patched to recognise ~/.guix-profile/etc/profile and /etc/profile (when present, on the remote machine) and use that to determine the PATH for the remote machine (or some other system, whatever works) . Thne tramp would work out-of-the-box, without having to consult a cookbook or manual and without having to know that this information is located there. Greetings, Maxime. --=-veHz+VNbJ0GdKulNH2XK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYgf5HBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jooAQDu2jQhQEo1ZQ/s0z+Upcqfs7XH QCHp8LH+vGXhHsd1FgEA9j9b3ZB2d+PGdn9cklz9H8H/Dp3iXNKO9QjIiEo1pws= =h2oM -----END PGP SIGNATURE----- --=-veHz+VNbJ0GdKulNH2XK--