XP 上的 Emacs、tramp、plink 问题

发布于 2024-07-11 00:51:23 字数 1473 浏览 11 评论 0原文

目标机器正在运行 Ububtu 服务器 8.04。
这是临时输出:

tramp: Opening connection for [email protected] using nil...<br>
tramp: Waiting for prompts from remote shell<br>
tramp: Waiting 60s for prompt from remote shell<br>
tramp: Sending password<br>
tramp: Found remote shell prompt.<br>
tramp: Initializing remote shell<br>
Loading time-date...done<br>
tramp: Waiting 30s for remote `/bin/sh' to come up...<br>
tramp: Setting up remote shell environment

apply: Couldn't `stty -inlcr -echo kill '^U'', see buffer `*tramp/plink [email protected]*'

编辑,详细缓冲区末尾包含此内容:

# Waiting 30s for remote `/bin/sh' to come up...
exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh
$ exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh
$ 
# Setting up remote shell environment
$ stty -inlcr -echo kill '^U'
stty -inlcr -echo kill '^U'

$ $ $ [[Regexp `\(^[^#$%>
]*[#$%>] *\|^[^#$%>
]*[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 30 secs]]

命令:
stty -inlcr -echo Kill '^U'
-inclr 关闭“将换行符转换为回车符”
-echo 关闭“回显输入字符”
kill '^U' 设置 '^U' 删除当前行

The target machine is running Ububtu server 8.04.
Here's the tramp output:

tramp: Opening connection for [email protected] using nil...<br>
tramp: Waiting for prompts from remote shell<br>
tramp: Waiting 60s for prompt from remote shell<br>
tramp: Sending password<br>
tramp: Found remote shell prompt.<br>
tramp: Initializing remote shell<br>
Loading time-date...done<br>
tramp: Waiting 30s for remote `/bin/sh' to come up...<br>
tramp: Setting up remote shell environment

apply: Couldn't `stty -inlcr -echo kill '^U'', see buffer `*tramp/plink [email protected]*'

edit, verbose buffer contains this at the end:

# Waiting 30s for remote `/bin/sh' to come up...
exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh
$ exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh
$ 
# Setting up remote shell environment
$ stty -inlcr -echo kill '^U'
stty -inlcr -echo kill '^U'

$ $ $ [[Regexp `\(^[^#$%>
]*[#$%>] *\|^[^#$%>
]*[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 30 secs]]

The command:
stty -inlcr -echo kill '^U'
-inclr turns off "translate newline to carriage return"
-echo turns off "echo input characters"
kill '^U' sets '^U' to erase the current line

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

甩你一脸翔 2024-07-18 00:51:23

同样的问题; 和修复

工作:NTEmacs-22.1 - TRAMP 版本:2.0.55

失败:NTEmacs-22.3.1 - TRAMP 版本:2.0.58-pre

请参阅评论 - 2.0.* 版本均不适用于 emacs-22.3.1

升级到 trapm 2.1 .14 - emacs 22/3/1 运行良好

建议您尝试从 Savannah 升级。

注意:我没有正确配置,只是从listp/net中删除了现有的tramp el和elc文件; 并从下载的 tar 中删除那些 - 你需要修改 trapver.el.in 来构建一个有意义的 lisp 文件 - 但这并不完全是火箭科学

Same problem; and a fix

Working: NTEmacs-22.1 - Tramp Version: 2.0.55

Failing: NTEmacs-22.3.1 - Tramp Version: 2.0.58-pre

See comment - neither 2.0.* release worked on emacs-22.3.1

Upgraded to tramp 2.1.14 - emacs 22/3/1 works great

Recommend you try upgrading from Savannah.

Note: I didn't configure properly just deleted the existing tramp el and elc files from listp/net; and dropped the ones from the downloaded tar in - you need to modify trampver.el.in to build a meaningful lisp file - but it's not exactly rocket science

ˉ厌 2024-07-18 00:51:23

请参阅缓冲区转换/plink [电子邮件受保护]'

那么,缓冲区里有什么?

编辑感谢您添加缓冲区输出。

“stty”命令尝试配置 TRAMP 将用来访问远程系统的终端。 如果您直接 SSH 到系统并尝试运行命令会发生什么? (使用 TRAMP 正在使用的相同参数...)

see buffer tramp/plink [email protected]'

Well, what's in that buffer?

edit thanks for adding the buffer output.

The 'stty' command is trying to configure the terminal that TRAMP is going to use to access the remote system. What happens if you SSH directly to the system and try to run the command? (Use the same args TRAMP is using...)

薄荷梦 2024-07-18 00:51:23

我不知道你正在谈论的技术,但如果 Genehack 说你的“正则表达式不匹配”​​,那么你需要使用更简单的正则表达式进行测试,或者以其他方式简化你的解决方案,直到你弄清楚拼图中不起作用的那一块。 你知道,“它适用于这个简单的正则表达式,但不适用于这个更复杂的正则表达式”或“它根本不是正则表达式,因为没有正则表达式适用”......

如果你愿意的话,可以将问题组件化、简化和括起来......我

意识到这是显而易见的一般性建议,但现在是周日早上......

I don't know the technologies that you're talking about, but if Genehack says that your "regex isn't matching," then you need to test with a simpler Regex, or simplify your solution in some other way until you figure out the piece of the puzzle that does not work. You know, "it works with this simple regex, but not with this more complex one" or "it's not the regex at all, since NO regex works"...

Componentize, simplify, and bracket the problem, if you will...

I realize this is obvious, general advice, but it's Sunday morning...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文