从Windows进行Linux开发的最佳设置? [英] Best setup for Linux development from Windows?

查看:88
本文介绍了从Windows进行Linux开发的最佳设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Windows工作站开发Linux应用程序的最佳设置是什么?现在,我已通过SSH连接到我们的Linux开发服务器,并且正在使用Eclipse,并通过PuTTY通过SSH转发到Windows工作站上运行的Xming的公共领域版本。可以,但是效果不佳; Eclipse的响应时间远远不够快(明显比在慢得多的Windows工作站上以本机方式运行的Eclipse差),我无法调整某些对话框的大小,也没有想出重新配置字体的好方法。

What's the best setup for developing Linux apps from a Windows workstation? Right now I'm connected via SSH to our Linux development server and am using Eclipse, forwarded over SSH via PuTTY, to the public domain version of Xming running on my Windows workstation. It works, but it's not great; Eclipse's response times are far from snappy (noticeably worse than Eclipse running natively on my much slower Windows workstation), I can't resize some dialog boxes, and I haven't figured out a good way to reconfigure my fonts.

是否有更好的设置?

编辑:这是用于C / C ++开发的。

This is for C/C++ development.

推荐答案

Windows上Linux的选项:

Options for Linux on Windows:

工具仅

鉴于您使用的是Eclipse,我假设您想要一个完整的IDE,但是如果您能仅使用GNU / Linux工具,有几种选择。

Given you're using Eclipse I'm going to assume you want a full IDE, but if you can get by with just the GNU/Linux tools, there are a few choices.


  • cygwin 为您提供了一个bash shell,其中包含许多工具,包括X11服务器。这已经有一段时间了,而且很成熟。

  • msys 是cygwin的一种较小的轻巧替代品。

  • 用于Win32的GNU实用程序是另一个轻巧的选择。这些是工具的本机版本,与cygwin相对,而cygwin则需要cygwin DLL伪造其工具以使其认为它们在Linux上运行。

  • cygwin gives you a bash shell with lots of tools, including an X11 server. This has been around awhile and is mature.
  • msys is a smaller, lightweight alternative to cygwin.
  • GNU utilities for Win32 is another lightweight alternative. These are native versions of the tools, as opposed to cygwin which requires a cygwin DLL to fake out its tools into thinking they are running on Linux.

Windows进程中的Linux

有几个软件包可以将Linux作为Windows进程运行,而无需将整个PC模拟为虚拟化做。他们使用合作Linux ,又称为coLinux,仅限于32位系统。这些没有虚拟化的开销,而且由于您不启动虚拟PC,因此启动速度更快。这只是实验方面的问题,可能不如某些虚拟化选项稳定。

There are several packages that will run Linux as a Windows process, without simulating an entire PC as virtualization does. They use Cooperative Linux, a.k.a. coLinux, which is limited to 32-bit systems. These don't have the overhead of virtualizing, and they start up faster since you're not booting a virtual PC. This is a little more on the experimental side and may not be as stable as some of the virtualization options.

  • Portable Ubuntu
  • andLinux

虚拟化

虚拟化软件可让您在虚拟PC中启动另一个OS,该PC与主机OS共享硬件。这是相当可靠的尝试。这里有一些不错的选项,可用于在特定状态下为您的Virtual PC拍摄快照,挂起/恢复虚拟PC等。很高兴能够试用虚拟PC,添加一些软件包,然后恢复到以前的快照,以及开始清洁。

Virtualization software lets you boot up another OS in a virtual PC, one that shares hardware with the host OS. This is pretty tried-and-true. There are nice options here for taking snapshots of your Virtual PC in a particular state, suspend/resume a virtual PC, etc. It's nice to be able to experiment with a virtual PC, add a few packages, then revert to a previous snapshot and "start clean".

  • VMWare
  • VirtualBox
  • VirtualPC

就我而言...

听起来像您的环境具有不同的性能特征,但这是我的情况:我从在我的Windows笔记本电脑上进行Eclipse(进行Rails开发)时,发现这种速度很慢,因此改用腻子将它放入快速的Linux机器中。我通过运行在Linux服务器上的emacs进行编辑,并在Windows上使用Xming显示。或者,我在Windows上使用本机emacs,编辑通过NFS共享的文件。由于储蓄缓慢,后者在我的环境中较慢。

Sounds like your environment has different performance characteristics, but here's my situation: I started out with Eclipse on my Windows laptop (doing Rails development), found this sluggish, and switched to using putty to ssh into a fast Linux box. I do my editing via an emacs running on the Linux server, displayed on Windows using Xming. Or I use native emacs on Windows, editing the files shared via NFS. The latter is slower in my environment due to sluggish saves.

在家工作时,我放弃X,因为它对于远程客户端来说太慢了,只运行 emacs -nw 在腻子窗口中。然后,我使用GNU screen 来创建多个窗口,以便在网络连接中断的情况下可以轻松地从上次中断的地方继续。

When working from home, I ditch X because it is too slow with remote clients, and just run emacs -nw within a putty window. I then use GNU screen so that I have multiple "windows", and so that I can easily resume where I left off if my network connection flakes out.

这篇关于从Windows进行Linux开发的最佳设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆