Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-07 Thread Abdulhaq via Digitalmars-d-announce

On Saturday, 6 August 2016 at 17:34:14 UTC, Andre Pany wrote:

Hi,

there is a new feature with the recent windows 10 update.
You now can compile and run your linux apps (console only) on 
windows.




Install XMing and run GUI apps too!


Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-07 Thread Mike via Digitalmars-d-announce

On Saturday, 6 August 2016 at 17:34:14 UTC, Andre Pany wrote:


there is a new feature with the recent windows 10 update.
You now can compile and run your linux apps (console only) on 
windows.




For those who might not be aware of this and are looking for a 
little more info, it's called the "Windows Subsystem for Linux" 
(WSL)


Wikipedia Entry:  
https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux
Microsoft's overview: 
https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subsystem-for-linux-overview/
Microsoft blog post: 
https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/


On a related note, Microsoft has also created an open-source MI 
interface to GDB: https://github.com/Microsoft/MIEngine.  You can 
install the Visual Studio 2015 plugin through Nuget - if I 
remember correctly it is this plugin:  
https://visualstudiogallery.msdn.microsoft.com/725025cf-7067-45c2-8d01-1e0fd359ae6e.  There's a nice video about it here:  https://www.youtube.com/watch?v=-3toI8L3Oug


I currently use this to do ARM microcontroller development in 
Visual Studio 2015 with GCC and OpenOCD.


Mike



Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-07 Thread Mike via Digitalmars-d-announce

On Sunday, 7 August 2016 at 03:06:27 UTC, Martin Nowak wrote:


What OS does it detect and download?


$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 14.04.4 LTS
Release:14.04
Codename:   trusty


Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-07 Thread Zardoz via Digitalmars-d-announce

On Sunday, 7 August 2016 at 08:07:37 UTC, Andre Pany wrote:

On Sunday, 7 August 2016 at 03:06:27 UTC, Martin Nowak wrote:
Good news, I'm really not that keen to write a powershell 
script.

What OS does it detect and download?


I am not sure how to get this information.
The windows functionality is labeled as "Bash on ubuntu on 
windows".


I executed the commands from the script manually:

uname -s

Linux


uname -m

x86_64

Kind regards
André


It's offer full Linux Kernel API to *nix applications. Even a VFS 
following the Ubuntu filesystem conventions, where Windows drives 
are mount like /mnt/c , /mnt/d , etc. Really you have a full 
Ubuntu working on your Windows on some kind of inverse Wine.


However, the new console of Windows 10 (that got a lot of 
improvements), have some nasty problems related to keyboard input 
that make using some ncurses, and similar, more problematic. For 
example, arrows on Vim/NeoVim not ends to work correctly. And 
actually using conemu and similer alternative terminals are hit 
by the same issue.
Also, there is some people that manage to run X11 apps, using a 
Windows native X11 server plus (a full GNU/Linux desktop).


This is really great for Linux & Unix fans that need to work on 
Windows by causes outside of his control. Sadly, where I work, we 
are using Windows 7, so I need to use to Cygwin and his "limited" 
set of packages.


Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-07 Thread Dicebot via Digitalmars-d-announce

On Sunday, 7 August 2016 at 03:06:27 UTC, Martin Nowak wrote:

On Saturday, 6 August 2016 at 17:34:14 UTC, Andre Pany wrote:

The build script is working fine:
curl -fsS https://dlang.org/install.sh | bash -s dmd


Good news, I'm really not that keen to write a powershell 
script.

What OS does it detect and download?


AFAIK embedded linux support is based on Ubuntu


Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-06 Thread Martin Nowak via Digitalmars-d-announce

On Saturday, 6 August 2016 at 17:34:14 UTC, Andre Pany wrote:

The build script is working fine:
curl -fsS https://dlang.org/install.sh | bash -s dmd


Good news, I'm really not that keen to write a powershell script.
What OS does it detect and download?


Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-06 Thread Andre Pany via Digitalmars-d-announce
On Saturday, 6 August 2016 at 17:48:43 UTC, Rattle Weird Hole 
wrote:

what are concret applications ?


For me it is the possibility to develop applications for the 
amazon web services cloud
while not leaving my windows system. I am used to windows but now 
I have the possibility
to also develop the needed linux artifacts directly without a VM 
or secondary OS on my machine.


Kind regards
André


Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-06 Thread Rattle Weird Hole via Digitalmars-d-announce

On Saturday, 6 August 2016 at 17:34:14 UTC, Andre Pany wrote:

Hi,

there is a new feature with the recent windows 10 update.
You now can compile and run your linux apps (console only) on 
windows.


The build script is working fine:
curl -fsS https://dlang.org/install.sh | bash -s dmd

The only thing you need is to install the build-essential 
package

sudo apt-get install build-essential


A simple hello world application is running fine.
Network functionality not tested so far.

Kind regards
André


what are concret applications ?