Microsoft Windows 的终端多路复用器 - GNU Screen 或 tmux 的安装程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5473384/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 00:35:31  来源:igfitidea点击:

Terminal Multiplexer for Microsoft Windows - Installers for GNU Screen or tmux

windowslinuxgnu-screentmux

提问by Kamaal

I am looking for a terminal multiplexer for Microsoft Windows. I was unable to locate the installers for Microsoft Windows for both tmux and GNU Screen.

我正在寻找适用于 Microsoft Windows 的终端多路复用器。我无法为 tmux 和 GNU Screen 找到 Microsoft Windows 的安装程序。

Currently I'm using Putty to connect to my Linux machine from from Windows Machine. Can somebody please suggest how to get GNU Screen or tmux working on Windows Platform.

目前我正在使用 Putty 从 Windows 机器连接到我的 Linux 机器。有人可以建议如何让 GNU Screen 或 tmux 在 Windows 平台上工作。

Are there any other good alternatives to above options.

除了上述选项,还有其他好的选择吗?

回答by Rafa de Castro

Both tmuxand GNU Screenwork under cygwin. They can be installed from the cygwin installer. Just search for their name there and you probably will get to the latest version (at least for tmux).

无论TMUXGNU屏幕下工作的cygwin。它们可以从 cygwin 安装程序安装。只需在那里搜索他们的名字,您可能会获得最新版本(至少对于tmux)。

回答by joelpt

You might be able to get what you want by using Console2with Putty or Plink.

通过将Console2与 Putty 或 Plink 结合使用,您或许可以获得所需的内容。

回答by dannybaobei

Here is dirty way:

这是肮脏的方式:

  1. Log into a linux server using "ssh -X user@host"
  2. open rxvt-unicode or other X terminal.
  3. open tmux or screen
  4. Log back into your local computer from the server
  5. start your favourite shell such as msys or cygwin.
  1. 使用“ssh -X user@host”登录Linux服务器
  2. 打开 rxvt-unicode 或其他 X 终端。
  3. 打开 tmux 或 screen
  4. 从服务器重新登录到本地计算机
  5. 启动您喜欢的 shell,例如 msys 或 cygwin。

回答by KCD

As an alternative SuperPutty has tabs and the option to run the same command across many terminals... might be what someone is looking for.

作为替代,SuperPutty 具有选项卡和在多个终端上运行相同命令的选项......可能是有人正在寻找的。

https://code.google.com/p/superputty/

https://code.google.com/p/superputty/

It imports your PuTTY sessions too.

它也会导入您的 PuTTY 会话。

回答by SCR512

It's possible to compile and use tmux within Cgywin. http://sourceforge.net/mailarchive/message.php?msg_id=30850840

可以在 Cgywin 中编译和使用 tmux。 http://sourceforge.net/mailarchive/message.php?msg_id=30850840

回答by dgo

Look. This is way old, but on the off chance that someone from Google finds this, absolutely the best solution to this - (and it is AWESOME) - is to use ConEmu(or a package that includes and is built on top of ConEmu called cmder) and then either use plink or putty itselfto connect to a specific machine, or, even better, set up a development environment as a local VM using Vagrant.

看。这已经很老了,但是如果 Google 的某个人发现了这一点,绝对是最好的解决方案 - (而且非常棒) - 是使用ConEmu(或一个包含并构建在 ConEmu 之上的名为cmder 的包)),然后使用 plink 或putty 本身连接到特定机器,或者更好的是,使用Vagrant将开发环境设置为本地 VM 。

This is the only way I can ever see myself developing from a Windows box again.

这是我能看到自己再次从 Windows 机器开发的唯一方法。

I am confident enough to say that every other answer - while not necessarily bad answers - offer garbage solutions compared to this.

我有足够的信心说,与此相比,所有其他答案(虽然不一定是糟糕的答案)都提供了垃圾解决方案。

Update: As Of 1/8/2020 not all other solutions are garbage - Windows Terminalis getting there and WSLexists.

更新:截至 2020 年 1 月 8 日,并非所有其他解决方案都是垃圾 - Windows 终端正在到达那里并且WSL存在。

回答by Viktor Justo

Adding to the thread, there's a new console in town called babun, im running tmux in it without a problem. lets you run bash or the zsh.

添加到线程中,镇上有一个名为 babun 的新控制台,我在其中运行 tmux 没有问题。让你运行 bash 或 zsh。

click here for github

单击此处获取 github

回答by Brandon Clapp

As of the Windows 10 "Anniversary" update (Version 1607), you can now run an Ubuntu subsystem from directly inside of Windows by enabling a feature called Developer mode.

从 Windows 10“周年纪念”更新(版本 1607)开始,您现在可以通过启用名为Developer mode的功能直接从 Windows 内部运行 Ubuntu 子系统。

To enable developer mode, go to Start> Settingsthen typing "Use developer features" in the search box to find the setting. On the left hand navigation, you will then see a tab titled For developers. From within this tab, you will see a radio box to enable Developer mode.

要启用开发人员模式,请转至开始>设置,然后在搜索框中键入“使用开发人员功能”以查找设置。在左侧导航中,您将看到一个标题为For developer的选项卡。在此选项卡中,您将看到一个用于启用开发人员模式的单选框。

After developer mode is enabled, you will then be able to enable the Linux subsystem feature. To do so, go to Control Panel> Programs> Turn Windows features on or off> and check the box that says Windows Subsystem for Linux (Beta)

启用开发人员模式后,您将能够启用 Linux 子系统功能。为此,请转到“控制面板”>“程序”>“打开或关闭 Windows 功能”> 并选中“适用于 Linux 的 Windows 子系统(测试版)”框

Now, rather than using Cygwin or a console emulator, you can run tmux through bash on the Ubuntu subsystem directly from Windows through the traditional apt package (sudo apt-get install tmux).

现在,无需使用 Cygwin 或控制台模拟器,您可以直接从 Windows 通过传统的 apt 包 ( sudo apt-get install tmux)在 Ubuntu 子系统上通过 bash 运行 tmux 。

回答by Stas S

One of alternatives is MSYS2, in another words "MinGW-w64"/Git Bash. You can simply sshto Unix machines and run most of linux commands from it. Also install tmux!

替代方案之一是MSYS2,换句话说“MinGW-w64”/ Git Bash。您可以简单地通过ssh 连接到 Unix 机器并从中运行大多数 linux 命令。还要安装tmux

To install tmux in MSYS2:

MSYS2 中安装 tmux :

run command pacman -S tmux

运行命令 pacman -S tmux

To run tmux on Git Bash:

Git Bash上运行 tmux :

install MSYS2and copy tmux.exeand msys-event-2-1-6.dllfrom MSYS2folder C:\msys64\usr\binto your Git Bashdirectory C:\Program Files\Git\usr\bin.

安装MSYS2和复制tmux.exe,并msys-event-2-1-6.dllMSYS2文件夹C:\msys64\usr\bin到你的Git Bash的目录C:\Program Files\Git\usr\bin