From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Giovanni Biscuolo Newsgroups: gmane.emacs.help,gmane.comp.gnu.guix.user Subject: Re: 29.1: tramp: use $SHELL environment variable to start remote shell? Date: Fri, 23 Feb 2024 19:31:42 +0100 Organization: Xelera.eu Message-ID: <87jzmv58xd.fsf@xelera.eu> References: <87o7c75j1l.fsf@xelera.eu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22273"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-guix@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 23 19:45:06 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rdaXh-0005Z0-Kb for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Feb 2024 19:45:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdaWw-0005x4-OL; Fri, 23 Feb 2024 13:44:18 -0500 Original-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 1rdaKy-0005HO-Ah; Fri, 23 Feb 2024 13:31:56 -0500 Original-Received: from ns13.heimat.it ([46.4.214.66]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdaKw-0003oK-FP; Fri, 23 Feb 2024 13:31:55 -0500 Original-Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 08B7630081F; Fri, 23 Feb 2024 18:31:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Original-Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MiPYgwYrCL-8; Fri, 23 Feb 2024 18:31:50 +0000 (UTC) Original-Received: from bourrache.mug.xelera.it (unknown [93.56.171.217]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 499B330081A; Fri, 23 Feb 2024 18:31:50 +0000 (UTC) Original-Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id B28F22ED32E5; Fri, 23 Feb 2024 19:31:49 +0100 (CET) Original-Received: (nullmailer pid 12289 invoked by uid 1000); Fri, 23 Feb 2024 18:31:49 -0000 In-Reply-To: <87o7c75j1l.fsf@xelera.eu> Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it 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, 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-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145973 gmane.comp.gnu.guix.user:17962 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Giovanni Biscuolo writes: [...] > I need my remote profile to be loaded because all hosts I manage have > Guix [2] installed and all needed environment variables are set by the > user profile; here is an example of a "M-x shell" remote connection to a > guix host (foreign distro), the same holds for "M-x eshell": > > --8<---------------cut here---------------start------------->8--- > > /ssh:local.biscuolo.anemone:/localhome/g/ #$ guix describe > guix 3676e31 > repository URL: https://git.savannah.gnu.org/git/guix.git > commit: 3676e312aaf1ce10ed1d7844e871b54e04624098 > /ssh:local.biscuolo.anemone:/localhome/g/ #$ $SHELL -l > (anemone)g@anemone:~$ guix describe > Generation 9 Apr 21 2021 09:23:33 (current) > guix 13c4a37 > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 13c4a377f5a2e1240790679f3d5643385b6d7635 > > --8<---------------cut here---------------end--------------->8--- > (as you can see, without proper environment guix is not able to run as > it should) Please forgive me for the noise: the problem is in the environment of (one of) my remote user! I tested again with other users on other hosts and the environment variables of my profile are correctly set. Anyway, the shell I get when connecting is still not fully functional, for example autocompletion does not work (write a substring and then TAB) and also up and down arrow keys do not work (echoes escape sequances instead of showing the shell history) Am I still doing something wrong with my environment? Ouch! Gio' =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmXY5I4MHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkS0IMQAIysPgffeY8uq+9ASuP4nxPKM5xpI9CpHf7Ogm7I EHhBIhKE8homFzNr76IIyzzbwY5XD25b9kM91Gifu73Zyv111UuGiWVTD7qpKvpE dL+9bw8XJe3vTW+GJKA6zmvRxC0rSkw0XmPT2ShSLWzz4bsmnC/AUFa8wEPlMKNP zyjPrSVQDFYmAWd1DlSxy2BpcQTUo6NHVCfWrF10wbkWDGSjdA1+G1pG7GCjsC+V 0Ae3+uq9pyJwcWXqAdUGY6OHz3xtJGEd2CaCy8fU4VWC4omJg0dkkgjf92V96Wr0 E1nw+znbBzd5eowOSWb8RWUwjt/5JUwZ1INIjwb5i2ZuxBoGXPTD45VWzYG0xkJw Uj1CjaVc+tcCcMxuoGT0nbOy8sRyRfNe7GonUzjQXiVZ2ZPiJ/xzVR/D8cV5BekT v4f0APw93PxzeynvyC9Nj8dY/gjzCC/Ay5oXcsSt9TXpvToeltOE5kSTYMBv6i2/ hj96W/icGhiH4JGoo3Hs+UouG58OYQ2UGcxHKNUtBkPtYjttVBejPW7/C/ggvdx8 Dn6jG1SEGeeTlS219ckDhJU92Gk5Lr9HwLeYw+H8g+uoW6ZMc2Qk6xO7aJaERDzJ tfzFdBmY8qpIIjwLbVqM8lGgBnHIcua7wQH2scUZG6hadjCzmjIoPe4cWOUqDwem HLvK =BCst -----END PGP SIGNATURE----- --=-=-=--