From: Michael Albinus <michael.albinus@gmx.de>
To: Jean Louis <bugs@gnu.support>
Cc: 57044@debbugs.gnu.org
Subject: bug#57044: 29.0.50; tramp-error: Reading directory: Permission denied, /scp:motorolausb:/storage/emulated/0/
Date: Mon, 15 Aug 2022 14:13:49 +0200 [thread overview]
Message-ID: <87lerpu2ki.fsf@gmx.de> (raw)
In-Reply-To: <87k07aj29b.fsf@gmx.de> (Michael Albinus's message of "Sun, 14 Aug 2022 17:03:44 +0200")
Michael Albinus <michael.albinus@gmx.de> writes:
Hi Jean,
Finally, I've been successful to install termux properly. That gives me
the understanding what happens.
> - Apply the needed settings, like
>
> (setq tramp-verbose 10
> tramp-connection-properties '(("ssh:motorola" "tmpdir" "/storage/emulated/0/tmp"))
> tramp-remote-path '(...)
> tramp-remote-process-environment '(...))
>
>> 07:10:57.056208 tramp-send-command (6) # while read d; do if test -x $d/ls && test -f $d/ls; then echo tramp_executable $d/ls; break; fi; done <<'b43631a7d2938506927af066a6b54cbc'
>> /sbin
>> b43631a7d2938506927af066a6b54cbc
>> 07:10:57.060465 tramp-wait-for-regexp (6) #
>> ///fc5b092ac8d0a3784e7c5443fffe4f12#$
>
> It searches only (!) in /sbin, and I don't know why.
This the problem, indeed. tramp-remote-path uses directories like
"/usr/bin". But in Termux, there is a prefix, and the directory is
"/data/data/com.termux/files/usr/bin". So we must add this prefix to all
file names in tramp-remote-path. I've fixed this by declaring
tramp-remote-path as connection-local variable. After calling "emacs -Q
-l tramp", all what I needed was
--8<---------------cut here---------------start------------->8---
(setq tramp-connection-properties
'(("/ssh:Samsung-SM-G920F-Michael-Albinus:" "tmpdir" "~/tmp"))
(connection-local-set-profile-variables
'tramp-connection-local-termux-profile
`((tramp-remote-path
. ,(mapcar
(lambda (x)
(if (stringp x) (concat "/data/data/com.termux/files" x) x))
(copy-tree tramp-remote-path)))))
(connection-local-set-profiles
'(:application tramp :machine "Samsung-SM-G920F-Michael-Albinus")
'tramp-connection-local-termux-profile)
--8<---------------cut here---------------end--------------->8---
"Samsung-SM-G920F-Michael-Albinus" is the name of my Android device, and
"~/tmp" the temporary directory I have created.
Would you like to try it?
>> Jean
Best regards, Michael.
next prev parent reply other threads:[~2022-08-15 12:13 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-07 19:25 bug#57044: 29.0.50; tramp-error: Reading directory: Permission denied, /scp:motorolausb:/storage/emulated/0/ Jean Louis
2022-08-08 8:57 ` Michael Albinus
2022-08-11 21:33 ` Jean Louis
2022-08-12 11:07 ` Michael Albinus
2022-08-13 5:20 ` Jean Louis
2022-08-13 9:44 ` Michael Albinus
2022-08-14 4:12 ` Jean Louis
2022-08-14 15:03 ` Michael Albinus
2022-08-15 12:13 ` Michael Albinus [this message]
2022-08-15 17:39 ` Michael Albinus
2022-08-16 4:43 ` Jean Louis
2022-08-16 6:06 ` Michael Albinus
2022-08-16 8:50 ` Jean Louis
2022-08-16 8:46 ` Jean Louis
2022-08-16 8:55 ` Jean Louis
2022-08-16 13:19 ` Michael Albinus
2022-08-17 13:47 ` Jean Louis
2022-08-14 4:08 ` Jean Louis
2022-08-17 15:51 ` Jean Louis
2022-08-25 18:59 ` Michael Albinus
2022-09-03 3:50 ` Jean Louis
2022-09-06 11:18 ` Michael Albinus
2022-09-15 15:24 ` Michael Albinus
2022-09-15 19:08 ` Jean Louis
2022-09-16 9:05 ` Michael Albinus
2022-09-16 11:14 ` Jean Louis
2022-09-15 21:42 ` Jean Louis
2022-09-16 11:44 ` Michael Albinus
2022-09-17 2:12 ` Jean Louis
2022-09-17 6:35 ` Michael Albinus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lerpu2ki.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=57044@debbugs.gnu.org \
--cc=bugs@gnu.support \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.