From: Divan Santana <divan@santanas.co.za>
To: Alex Kost <alezost@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Using tramp with guixsd install image
Date: Sat, 01 Jul 2017 23:14:38 +0200 [thread overview]
Message-ID: <8760fbx3k1.fsf@santanas.co.za> (raw)
In-Reply-To: <877ezsnpxm.fsf@gmail.com>
Alex Kost <alezost@gmail.com> writes:
> Divan Santana (2017-06-30 22:15 +0200) wrote:
>
>> Hi,
>>
>> Trying to use my emacs (on arch linux) with the guixsd system from the
>> 0.13 image and ssh-daemon. By image, this is a fresh VM booted
>> guixsd-usb-install-0.13.0.x86_64-linux and about to install guixsd .
>>
>> This Used to work with 0.12 image.
>>
>> Now I have this set
>>
>> ;; ;; TRAMP and guix settings
>> (setq tramp-default-method "scp")
>> ;; https://lists.gnu.org/archive/html/help-guix/2016-10/msg00049.html
>> (setq tramp-remote-path
>> (append tramp-remote-path
>> '("~/.guix-profile/bin" "~/.guix-profile/sbin"
>> "/run/current-system/profile/bin"
>> "/run/current-system/profile/sbin")))
>
> With this ^^^ your additional paths are "shadowed" by the default
> value of 'tramp-remote-path'. Try to make it reverse:
>
> (setq tramp-remote-path
> (append '("~/.guix-profile/bin" "~/.guix-profile/sbin"
> "/run/current-system/profile/bin"
> "/run/current-system/profile/sbin")
> tramp-remote-path))
The above does make sense. I've tried it your suggested way and
unfortunately I'm getting the same results. For some reason my emacs
tramp is looking for /bin/sh still and has the same initial error
reported.
> However I don't think you need to set all these paths manually.
>
> The different behavior between 0.12 and 0.13 may be caused by this
> commit:
>
> http://git.savannah.gnu.org/cgit/guix.git/commit/?id=dc7010911dd3285fe9089352e92c77501595d100
>
> i.e. your problem may occur because 'tramp-default-remote-path' is the
> first element of 'tramp-remote-path' variable now.
I think this wouldn't affect me as my emacs is from arch linux repositories?
>> How can one configure tramp to work without the above hack?
>
> I don't know if it will help you or not, but here is the setting I have
> in my emacs config, which works for me for years:
>
> (with-eval-after-load 'tramp-sh
> (push 'tramp-own-remote-path tramp-remote-path))
The above didn't work for me either.
prev parent reply other threads:[~2017-07-01 21:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 20:15 Using tramp with guixsd install image Divan Santana
2017-07-01 14:01 ` Ludovic Courtès
2017-07-01 20:36 ` Divan Santana
2017-07-02 14:46 ` Ludovic Courtès
2017-07-02 18:43 ` Divan Santana
2017-07-01 15:21 ` Alex Kost
2017-07-01 21:14 ` Divan Santana [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760fbx3k1.fsf@santanas.co.za \
--to=divan@santanas.co.za \
--cc=alezost@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).