Live data from Hacker News

Foreign Linux: Run Linux binaries on Windows without drivers or modification

github.com

51–60 of 149 posts

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#51
post #10

Cygwin is impressively complete - if you haven't checked in on it recently, there are over 5000 packages in the official repo (that's more than Arch Linux's official repos), and adding the http://cygwinports.org/ repo gives you full KDE, GNOME 3 and Xfce on windows (although KDE has a first-party port). What this tool offers over Cygwin is the ability to run unmodified linux binary-only software for which you do not…

I also want to out in a good word for Cygwin. It's fantastic, I have absolutely no complaints about it. I have python and GCC, as well as a fully working shell. I can do Linux development in either of my favorite languages (Python and C++) without any kind of worry, and they work without modification on Linux. Plus, having a working Bash with everything I want on Windows blows my mind.

Is it better than using virtualbox?

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#52
post #10

Cygwin is impressively complete - if you haven't checked in on it recently, there are over 5000 packages in the official repo (that's more than Arch Linux's official repos), and adding the http://cygwinports.org/ repo gives you full KDE, GNOME 3 and Xfce on windows (although KDE has a first-party port). What this tool offers over Cygwin is the ability to run unmodified linux binary-only software for which you do not…

For me, Cygwin makes Windows bearable. It's still Windows, but, at least, it has a proper shell, interpreters, compilers, compressors (no need for WinZip or WinRAR - think about it!) and so on. For the same reason you need MacPorts or Brew on a Mac, you need Cygwin on Windows.

Unless you are happy to spend your day in Visual Studio, in which case Cygwin will not be that useful.

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#53
Unfortunately seems to crash immediately on Windows 10 Tech Preview (build 9926). It's what I can expect for using a prerelease OS though.

Edit: It looks like this might have been something on my end. Re-downloaded and extracted and it seems to be working now.

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#54
post #7

If this can bring me a working * nix shell under Windows, I'd be extremely happy. Windows is great for everything except I have never learned PS as well as I know the * nix shells -- with this, I could enjoy the hardware and proper multi-monitor support, speed and stability (seriously) of Windows and use the * nix command line.

FWIW, my current setup is Win 8.1 Pro with Hyper-V configured to startup a Linux VM on boot. My dev environment consists of cmder with an alias "dev" that ssh into the Linux VM where I have my full set of dev tools available. It's almost completely seamless since vim is my editor and I can just run that over ssh.

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#55
post #51

Earlier quoted context omitted.

I also want to out in a good word for Cygwin. It's fantastic, I have absolutely no complaints about it. I have python and GCC, as well as a fully working shell. I can do Linux development in either of my favorite languages (Python and C++) without any kind of worry, and they work without modification on Linux. Plus, having a working Bash with everything I want on Windows blows my mind.

Is it better than using virtualbox?

It applies a Linux-like polish to a Windows machine. You can manipulate the whole Windows filesystem from within a Linux-like environment. With a VM you get a full Linux environment that cannot simply get to your Windows environment - you get a clear separation between the two.

I like to say Cygwin "civilizes" Windows.

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#56
post #53

Unfortunately seems to crash immediately on Windows 10 Tech Preview (build 9926). It's what I can expect for using a prerelease OS though. Edit: It looks like this might have been something on my end. Re-downloaded and extracted and it seems to be working now.

[deleted]

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#57
post #30

This looks like an interesting project to keep an eye out for. On the topic of cygwin, I would also like to recommend mobaXterm, that I use instead of cygwin nowadays... It is an interesting choice in the alternatives we have. So, those of you that use cygwin, take a look at it here: http://mobaxterm.mobatek.net/ If you are thinking about trying cygwin, I would recommend this instead, as the installation is relativel…

Unfortunate that MobaXterm is not free (as in freedom) software, but looks VERY nice from the website. I'm very tempted, although I don't do much remote administration anymore.

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#58
post #47

Earlier quoted context omitted.

What do you use for grep? I tried using Powershell and did a few things with it, but while it is a great shell, the lack of good tools like grep prevented me from being really productive.

I've ended up with Select-String "pattern" -Path file.txt | ForEach-Object { Write-Output $_.Line } | Out-File t.txt Slightly Heath Robinson, but by default PS will truncate lines to terminal width, even when writing to a file, which is a disaster for any kind of subsequent machine processing.

You could also use either of these:

  (Select-String "pattern" -Path file.txt).Line > t.txt
  Select-String "Pattern" -Path file.txt | Select-Object -ExpandProperty Line > t.txt
Or equivalent to the second example but with shortcuts:

  sls pattern -path file.txt | select -exp line > t.txt

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#59
post #43

Very impressive. I'd appreciate if they could get WINE working under this though..... :-)

Actually there is an effort to make wine compile and run on Windows. http://wiki.winehq.org/WineOnWindows

That's interesting, I wonder if it's mature enough to run on itself :-)

Re: Foreign Linux: Run Linux binaries on Windows without drivers or modification

#60
post #32

Earlier quoted context omitted.

For me I've had too many problems with cygwin and $DAYJOB installs BLODA, so I'm really interested to see what comes of this, also since it uses arch and pacman, which are my distro of choice, it sounds pretty perfect to me! (no more having to recompile everything from source with cygwin or `rebaseall` and suchlike)

Hmm, Have you looked at http://mobaxterm.mobatek.net/ before. I found this less of a hassle to install and work with, than cygwin.

Hmm... seems interesting, I still like the idea of this foreign-linux, it seems like the idea has a lot of potential. Thanks.
Post reply on HN