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
Terminal Multiplexer for Microsoft Windows - Installers for GNU Screen or tmux
提问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
回答by joelpt
回答by dannybaobei
Here is dirty way:
这是肮脏的方式:
- Log into a linux server using "ssh -X user@host"
- open rxvt-unicode or other X terminal.
- open tmux or screen
- Log back into your local computer from the server
- start your favourite shell such as msys or cygwin.
- 使用“ssh -X user@host”登录Linux服务器
- 打开 rxvt-unicode 或其他 X 终端。
- 打开 tmux 或 screen
- 从服务器重新登录到本地计算机
- 启动您喜欢的 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。
回答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.exe
and msys-event-2-1-6.dll
from MSYS2folder C:\msys64\usr\bin
to your Git Bashdirectory C:\Program Files\Git\usr\bin
.
安装MSYS2和复制tmux.exe
,并msys-event-2-1-6.dll
从MSYS2文件夹C:\msys64\usr\bin
到你的Git Bash的目录C:\Program Files\Git\usr\bin
。