使用 tty 时 tmux 不会启动 (ubuntu 11.10)

发布于 2025-01-08 07:07:56 字数 448 浏览 3 评论 0原文

我在 https://stackoverflow.com/a/7410228/880040 遇到了类似的问题,并且要检查的第六件事,

确保您的终端功能文件存在:ls -lh /usr/share/terminfo/*/$TERM

未通过。整个文件夹都是空的。从 ssh 会话启动 tmux 时,它会按预期工作。在 tty 会话中,它只是挂在 tmux 命令后面的换行符上。也不能用 ctrl-c 杀死它,必须 ssh 并杀死所有 tmux。

$TERM 是“linux” 操作系统是 Ubuntu 11.10(服务器版)32 位

不幸的是,上面的帖子没有解释如果 /usr/share/terminfo 为空该怎么办。

I went through this similar question at https://stackoverflow.com/a/7410228/880040 and the 6th thing to check,

Make that your terminal capabilities file exists: ls -lh /usr/share/terminfo/*/$TERM

Is what doesn't pass. This entire folder is empty. tmux works as expected when starting it from a ssh session. On the tty session, it just hangs on a newline after the tmux command. Cannot kill it with ctrl-c either, have to ssh in and killall tmux.

$TERM is 'linux'
OS is Ubuntu 11.10 (server edition) 32 bit

Unfortunately the above post did not explain what to do if /usr/share/terminfo was empty.

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

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

发布评论

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

评论(1

墨离汐 2025-01-15 07:07:56

在 Ubuntu 中,各种 terminfo 文件由 ncurses-base1 提供 - 您可能首先需要尝试重新安装以查看是否可以解决您的问题。

如果这不起作用,您可以随时将工作的 terminfo(从您使用 SSH 的盒子中)复制到您的 Ubuntu 计算机上。

首先,确定您的 Ubuntu 机器上没有 linux 条目:

infocmp linux

然后,在您进行 SSH 的计算机上,复制 terminfo

infocmp linux > linux

复制它使用 scp 到您的远程计算机,然后在远程计算机上安装它:

# tic /path/to/linux

您还应该考虑安装 screen-256color,因为这是 terminfo tmux 配合效果最佳。

1. http://packages.ubuntu.com/ko/natty/ncurses-base

In Ubuntu, the various terminfo files are provided by ncurses-base1 - you might first want to try reinstalling to see if that fixes your issue.

If that doesn't work, you can always copy the working terminfo (from the box you are SSH'ing from) across to your Ubuntu machine.

First, establish that you do not have an entry for linux on the Ubuntu box:

infocmp linux

Then, on the machine that you SSH from, make a copy of the terminfo:

infocmp linux > linux

copy it to your remote machine with scp and then, on the remote machine, install it with:

# tic /path/to/linux

You should also consider installing screen-256color as this is the terminfo tmux works best with.

1. http://packages.ubuntu.com/ko/natty/ncurses-base

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