TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Run any Linux application natively on Windows (Vista and 7) without Cygwin

14 点作者 niktech超过 14 年前

8 条评论

trotsky超过 14 年前
<i>Run any Linux application natively on Windows</i><p>Sure except for anything that uses dbus, X, pam, framebuffer, sound, usb, /proc, CUPS etc. etc.<p>POSIX is a useful standard but it's a porting tool not a no effort port. Services for Unix Applications (SUA) will reduce the time it takes to get something up and running but only the most generic of applications will compile out of the box.
tzs超过 14 年前
At work we developed a tool once to run Linux programs on Windows, but it took a different approach. Basically it was an application that you could point at a Linux binary. It would allocate memory in the application's space, load the Linux binary in that, and start running it. It would trap attempts by the Linux application to do system calls and service them.<p>This was in the early 2000s. Using it, I was able to take most of the RPMs from whatever desktop version of Red Hat was current then and load them onto a Windows system, and most of them worked (assuming I had a Windows X server available). Bash, vim, and most of the usual command line tools worked, as did things like GIMP, major GUI email and web clients, and the like.<p>We tried a couple approaches to dealing with case sensitive vs case insensitive file systems. One was to just ignore it--that actually turned out to work quite well. In a normal Red Had desktop install, I think I only ran into one thing that had trouble and it was easy to work around (the two conflicting files turned out to have the same contents, and were read-only).<p>I don't remember how fork was implemented.<p>We looked at making this into a product, but we never found a good niche for it. Then, reviewing code that we got from some contractors we had outsources to for some of the implementation, I found that they had copied some from the Linux kernel (they were supposed to just use it for a reference if they needed to figure out what something did). Since other parts of it were written under the assumption that it would NOT be a GPLed product, and had used commercial code not compatible with GPL, that pretty much killed the chance we'd ever revive the thing.
评论 #2084903 未加载
blinkingled超过 14 年前
Article is from 2006. SFU was officially dropped by Microsoft circa 2009. Last version I could find doesn't even list Vista/7 as supported OSes. WTH?
评论 #2085150 未加载
评论 #2085073 未加载
rbanffy超过 14 年前
"Want to run best-of-breed apps under both Windows and Unix?" should be more like "want to run best-of-breed apps under a not so best-of-breed OS?"<p>Now, more seriously, faced with unsupported hardware I have to use, I think I would prefer to run a Linux virtual machine inside the Windows server and take time to get ready for the day when the server hardware is well supported and then migrate the VM to the bare hardware. It will take a performance hit, of course, but only a temporary one.<p>And, after that, it would look like a new hardware upgrade.<p>And, also, I bet it would be much less work.
hippich超过 14 年前
One page - <a href="http://www.informationweek.com/shared/printableArticle.jhtml?articleID=192503618" rel="nofollow">http://www.informationweek.com/shared/printableArticle.jhtml...</a>
nitrogen超过 14 年前
Quite a misleading headline: SFU/SUA doesn't allow one to run native Linux binaries on Windows, which would require emulating Linux's syscall interface, libc, dynamic linker, etc. It allows one to port (i.e. recompile) POSIX-compliant applications. Linux (as the term is popularly used) is a significantly-larger superset of the interfaces and utilities specified by POSIX.
spcmnspff超过 14 年前
From what I read, you can get Debian and Gentoo system running with this.<p><a href="http://www.gentoo-wiki.info/HOWTO_Gentoo_on_WINDOWS" rel="nofollow">http://www.gentoo-wiki.info/HOWTO_Gentoo_on_WINDOWS</a><p><a href="http://www.debian-interix.net/" rel="nofollow">http://www.debian-interix.net/</a><p>Would love to try get Gentoo but MSDNAA offers Professional rather than Ultimate.
roadnottaken超过 14 年前
How is this different from Cygwin? Cygwin's software repositories are free so it seems superior, at least in that respect. Everything else the article describes sounds exactly like Cygwin.
评论 #2084808 未加载