From: Jean Louis <bugs@gnu.support>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 57044@debbugs.gnu.org
Subject: bug#57044: 29.0.50; tramp-error: Reading directory: Permission denied, /scp:motorolausb:/storage/emulated/0/
Date: Tue, 16 Aug 2022 11:46:30 +0300 [thread overview]
Message-ID: <YvtZZqChxdLbEOwO@protected.localdomain> (raw)
In-Reply-To: <87lerpu2ki.fsf@gmx.de>
* Michael Albinus <michael.albinus@gmx.de> [2022-08-15 15:14]:
> 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"))
I have git pulled latest Emacs and built it.
Repository revision: b87400c78b047d242ae188c46c621e0e8a8e69b2
Repository branch: master
tramp-connection-properties ⇒ (("ssh:motorola" "tmpdir" /storage/emulated/0/tmp) ("scp:motorola" "tmpdir" /storage/emulated/0/tmp))
I have only added today the scp version, but it always worked in past.
> (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)))))
OK now I evaluate this one, though I do not understand it:
(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)
(connection-local-set-profiles
'(:application tramp :machine "scp:motorola")
'tramp-connection-local-termux-profile)
I have tried above, I have tried with :machine "motorolausb" and I
get:
File error: Couldn't find a proper `ls' command
tramp-error: Couldn't find a proper `ls' command
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-08-16 8:46 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
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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YvtZZqChxdLbEOwO@protected.localdomain \
--to=bugs@gnu.support \
--cc=57044@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).