使用笔记本电脑作为第二个编程显示器
多显示器编程的乐趣是数不胜数的,我想仅在 Coding Horror 上就有大约 5 篇关于这个主题的博客文章! 我经常在我的主机上使用 Windows 进行编码,并将我的 Mac 笔记本电脑放在一边。 我使用 Mac 来编译 Mac 版本,也将其作为我的“参考 Web 浏览器”。 没有KVM什么的。
然而,在一次会议上的一次随意谈话让我想到了一个问题:我可以使用两台独立的机器来共享窗口吗? 从字面上将一些窗口从一台机器移动到另一台机器,这样我就可以使用一台电脑的显示器作为另一台电脑的“溢出”。
一些谷歌搜索突然表明,在某些情况下这是可能的:
我的问题是是否有程序员尝试过这样的设置。 我们有独特的需求,尤其是多个文本窗口和编辑器,这种工具可能是一个巨大的胜利,也可能是一个巨大的麻烦。
这个解决方案感觉就像是简单的 KVM 切换和多个显示器的组合......这听起来像是一个编程梦想! 因此,在我投资相当复杂的设置之前,建议或特别是编程环境中实际经验的报告将非常有用。
跟进: 听起来我在要求一些不存在的东西! 它是软件 KVM 和 VNC 的组合。 但 VNC 需要打破应用程序窗口并允许单独操作(就像 maxivista 商业工具,仅适用于 Vista)。
感谢您的所有反馈。 看起来,如果有人有动力在这个新领域成为第一,那么就需要一款很酷的应用程序!
The joys of multimonitor programming are countless, I think there are about 5 blog posts on Coding Horror on the topic alone!
I often code in Windows on my main machine, and have my Mac laptop set up to the side. I use the Mac both to compile Mac builds but also as my "reference web browser". There's no KVM or anything.
However a casual conversation at a conference led me to the question, could I use two independent machines to share windows? Literally move some windows from one machine to another, so I could use one PC's display as "overflow" from the other.
Some googling suddenly shows that this is possible in some situations for sure:
My question is whether any programmers have tried such a setup. We have unique needs especially with multiple text windows and editors, and this kind of tool may be a huge win or a huge hassle.
This solution feels like a combination of easy KVM switching AND multiple monitors.. it sounds like a programming dream! So advice or especially reports of actual experience in a programming environment would be greatly useful before I invest in the rather complex setup.
Followup:
Sounds like I'm asking for something that doesn't exist! It's kind of combination of a software KVM and VNC. But the VNC would need to break out the app windows and allow individual manipulation (like that maxivista commercial tool, which is Vista only).
Thanks for all the feedback. Looks like there's demand for a cool app if anyone has the drive to be first in this new nich!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
Synergy 不允许您在机器之间移动窗口(这将需要大量愚蠢的幕后工作),但它确实允许您在两台机器之间共享键盘和鼠标,以便它们“看起来”都是一台机器,但实际上是分开运行的。
我个人使用 Input Director,因为我发现它比 Synergy 更稳定。 我的笔记本电脑右侧有一个外部显示器,左侧的台式机作为输入控制器从属设备。 我的桌面运行不同的操作系统,基本上是我的小白鼠盒子,用于测试东西以及在我离开办公室时需要继续运行的任何东西。 剪切+粘贴非常无缝,因此我可以很高兴地在桌面上的服务器上启动 RDP 会话,并将 SQL 脚本从该服务器剪切+粘贴到我的笔记本电脑上。
如果您有一些物理盒子和显示器,那么这是一个非常有用的东西:)
Synergy doesn't allow you to move windows between machines (that would require a silly amount of work behind the scenes), but it does allow you to share a keyboard and mouse between two machines so they "appear" to be all one machine, but actually run separately.
I personally use Input Director, as I found it more stable than Synergy. I have my laptop with an external monitor to the right, and my desktop to the left as an Input Director slave. My desktop runs a different O/S and is basically my guinea pig box for testing stuff and for anything I need to keep running when I leave the office. Cut + paste is pretty seamless, so I can quite happily fire up an RDP session to a server on my desktop, and cut+paste SQL scripts from that to my laptop.
It's a very useful thing to have if you have a few physical boxes and monitors kicking around :)
实际上,我已经成功地使用备用笔记本电脑作为台式电脑的第二个显示器。 这允许将窗口移动到第二台电脑,但反之则不然。
解决方案基本上适用于任何操作系统。
唯一的要求是服务器 PC 上有备用 VGA(或 DVI-I/DVI-A)端口。
这也适用于 DVI-I/DVI-A 端口 + DVI-VGA 适配器
就这样。 您的从属 PC 是服务器 PC 的第二台显示器。
我在 Windows 7 + TeamViewer 上使用过它。 我还设置了 Mouse Without Borders(Microsoft Synergy 模拟),以便能够使用具有相同鼠标和键盘的从属 PC,但如果您打算将其转换为仅显示器,则不需要这样做。
I've actually managed to use spare notebook as a second monitor to Desktop PC. This allows to move windows to second PC, but not vise-versa.
Solution would work basically with any OS.
The only requirement is a spare VGA (or DVI-I/DVI-A) port on server PC.
This will also work for DVI-I/DVI-A port + DVI-VGA adapter
That's all. Your slave PC is a second monitor for server PC.
I've used this on Windows 7 + TeamViewer. I've additionally set up Mouse Without Borders (Microsoft Synergy analog) to be able to use slave PC with same mouse&keyboard, though this is not required if you intend to transform it to monitor-only.
Xdmx - 分布式多头 X 项目(仅限 Linux)
在外部计算机上提供本机 X 显示,没有 VNC 缺点。
Xdmx - Distributed Multihead X Project (linux only)
Provides native X display on external machines, no VNC cons.
以下内容并不完全是您想要的,但非常接近:
您可以启动 VNC 服务器Windows 机器,它可以让您“导出”其图形屏幕。
然后,从 Windows 计算机上拔下显示器,并将其用作 Mac 笔记本电脑的外部笔记本电脑显示器。
在 Mac 上,您只需使用 VNC 的鸡 连接到 VNC 会话,这将为您提供 Windows 计算机的图形屏幕内容作为 Mac 窗口(以交互方式,因此您可以实际控制 Windows 计算机,就像直接在其上工作一样)。 您可以将其放在外部显示器上,也可以将其他窗口放在那里,这样您就真正拥有了一个共享环境。
我相信这个解决方案还可以让您将内容从 Windows 屏幕复制并粘贴到 Mac 窗口,反之亦然。
The following is not exactly what you want, but pretty close:
You can start a VNC server on the Windows machine, which will let you "export" its graphical screen.
Then, unplug the monitor from the Windows machine and use it as external laptop monitor instead, with your Mac laptop.
There, on your Mac, you just connect to the VNC session using Chicken of the VNC, which will give you the graphical screen content of the Windows machine as a Mac window (interactively, so you can actually control the windows machine as if you were working on it directly). You can put that on the external monitor, and you can also put other windows there, so you really have a shared environment.
I believe this solution also lets you copy and paste content from the Windows screen to Mac windows and vice versa.
我在 WinXP 上编程时使用 MaxiVista。 它工作得非常好,让我可以在我的多显示器配置中添加第三个屏幕。
I use MaxiVista on WinXP while programming. It works fantastically and lets me add a third screen to my multi-monitor configuration.
对于 Windows 用户来说,这里有希望: http://virtualmonitor.github.io/ 看起来像是一项工作-正在进行中,仅支持 Windows 2000 - Windows 7,但他正在寻求有关 Windows 7 - 8 的帮助。
There is hope, here for windows users: http://virtualmonitor.github.io/ Looks like a work-in-progress and only supports windows 2000 - windows 7, but he's looking for help with windows 7 - 8.
不幸的是,协同目前不允许跨屏幕移动窗口。 它仅将鼠标和键盘事件从一组物理设备转发到不同的计算机。
Unfortunately, synergy doesn't allow moving windows across screens currently. It only forwards mouse&keyboard events from one set of physical devices to different computers.
是的,我喜欢它。 它可以让你在笔记本电脑上使用 2 个屏幕,实际上我发现 3 个屏幕已经很多了。
如果您的主机是 Mac,您需要 ScreenRecycler。 然后,您可以在其他 Mac、Windows 和 Linux 计算机(任何具有 VNC 客户端的计算机)上使用监视器。 不过,你会想要比 Mac 蹩脚的窗口管理更好的东西。 我推荐 Many Tricks 的 Moom 和 女巫。
在 Windows 上,正如 @LachlanG 所说,MaxiVista 效果很好。 它支持从 Windows、Mac 和 Linux 机器添加监视器。
Yes, and I love it. It allows you get past 2 screens on a laptop, and really I find 3 a great amount.
If your main machine is a Mac you want ScreenRecycler. You can then use monitors on other Mac, Windows, and Linux machines (anything with a VNC client). You will want something better than the Mac's crappy windows management though. I suggest Many Tricks' Moom and Witch.
On Windows, as @LachlanG said, MaxiVista works great. And it supports adding monitors from Windows, Mac, and Linux machines.
我正在重新使用我的旧笔记本电脑作为第二台显示器,以便在编码时查看实时预览。 我使用的是免费的 SpaceDesk。
I am reusing my old laptop as a second monitor to see the live preview while coding. I am using SpaceDesk, which is free.
我使用屏障和协同的开源分叉。 使用起来有点困难,但效果非常好。 (要找到它,只需在 google 中搜索“barrier github”)。
I use barrier and open source fork of synergy. Its a little hard to use but works really well. (To find it just search google for 'barrier github').