XP上的Emacs,tramp,plink问题

时间:2021-12-18 13:19:34

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

目标计算机正在运行Ububtu服务器8.04。这是tramp输出:

tramp: Opening connection for nungu@ip.ip.ip.ip 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 nungu@ip.ip.ip.ip*'

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

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

3 个解决方案

#1


4  

Same problem; and a fix

同样的问题;并修复

Working: NTEmacs-22.1 - Tramp Version: 2.0.55

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

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

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

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

请参阅注释 - 这两个版本都没有。*发布在emacs-22.3.1上

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

升级到tramp 2.1.14 - emacs 22/3/1效果很好

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

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

#2


1  

see buffer tramp/plink nungu@ip.ip.ip.ip'

见buffer tramp / plink nungu@ip.ip.ip.ip'

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...)

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

#3


0  

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"...

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

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

组件化,简化并解决问题,如果你愿意...

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

我意识到这是显而易见的,一般的建议,但它是星期天早上......

#1


4  

Same problem; and a fix

同样的问题;并修复

Working: NTEmacs-22.1 - Tramp Version: 2.0.55

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

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

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

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

请参阅注释 - 这两个版本都没有。*发布在emacs-22.3.1上

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

升级到tramp 2.1.14 - emacs 22/3/1效果很好

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

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

#2


1  

see buffer tramp/plink nungu@ip.ip.ip.ip'

见buffer tramp / plink nungu@ip.ip.ip.ip'

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...)

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

#3


0  

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"...

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

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

组件化,简化并解决问题,如果你愿意...

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

我意识到这是显而易见的,一般的建议,但它是星期天早上......