gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 18:38:22 25 4
gpt4 key购买 nike

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

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



是什么不通过。这整个文件夹是空的。从 ssh session 启动时,tmux 按预期工作。在 tty session 中,它只是卡在 tmux 命令之后的换行符上。也不能用 ctrl-c 杀死它,必须 ssh in 并 killall tmux。

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

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

最佳答案

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

如果这不起作用,您可以随时复制工作 terminfo (从你 SSH 的盒子)到你的 Ubuntu 机器。

首先,确定您没有 linux 的条目。在 Ubuntu 盒子上:

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

关于ubuntu - 使用 tty (ubuntu 11.10) 时 tmux 不启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9400661/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com