On the International Penguin Day, a meditative video and a story about Ubuntu and Bash in Windows 10 from Scott Hanselman
Hello!
Scott Hanselman is a famous Microsoft activist who writes a lot about how to use Open Source and Microsoft. Below is the translation of his latest article about the well-known news on the topic of Ubuntu and Bash in Windows 10. And today is April 25, entitled the globally important international day of penguins, so we urge you to visit penguins more often, and also, of course, visit our website updated site about Open Source and Microsoft . If you want to get distracted on this wonderful working day, then we attach a special video, having seen that, you can learn everything about penguins.
')
In the past, an invitation in the form of a $ symbol for Windows users, including for me, meant “pass by”. I was looking for such an invitation
or such
Of course, the necessary invitations were not always met. But today, on the first day of the ** BUILD ** conference, Kevin Gallo (* Kevin Gallo *) told in his report that developers can now perform "** Bash in Ubuntu on Windows **". This feature is included in the anniversary update of Windows 10 (coming out soon). It allows you to run shell scripts and Linux command line utilities on Windows without any modifications.
If you enable the developer mode in the Windows settings, add this function and run the bash script, the system will offer to load Ubuntu on Windows from Canonical via the Windows Store:
This mechanism works in 64-bit Windows and does not use virtual machines. Why does Bash in Windows help developers? Previously, when it was required to run Bash on Windows, several options could be used.
- Cygwin - GNU command line utilities compiled for 32-bit OS and perfectly integrated with Windows. But this is not Linux. - HyperV and Ubuntu - launch a separate Linux virtual machine (with allocation of X gigabytes of RAM and Y gigabytes of hard disk space) and remote connection to it (RDP, VNC, ssh). - Docker also allows you to run a Linux container in a HyperV virtual machine.
Running bash on Windows is exactly what was missing before. From the user's point of view, the mechanism works like Linux, since it runs real Linux binaries. Just press the Windows key and enter "bash". After setup, enter “apt-get update” and download several packages for developers. I needed Redis and Emacs. To install emacs, I ran the “apt-get install emacs23” command. Please note: this is a real emacs repository from Ubuntu.
Of course, I have no idea how to exit emacs, so I just closed the window. ;)
Note: the mechanism is not designed to start Linux servers or server loads. This release is aimed at developers who are interested in (or who need) the use of Linux tools in the workflow, and removes this serious limitation. Here I installed ** Redis using apt-get ** and got the opportunity to execute it in isolated mode.
I run Redis in bash and create ASP.NET applications in Visual Studio using the Redis cache. Using ** Azure Redis Cache ** I will then deploy the solution to Azure - quite a common thing for me. Take a look at how complete my Start menu now looks!
In the coming weeks, the blog [http://blogs.msdn.microsoft.com/commandline] (http://hlogs.msdn.microsoft.com/commandline) will post technical details. In addition, you are waiting for a grand update of the base console, which will improve support for console codes, ANSI, VT100, and more. This is an early version of developer features, and the team is waiting for your feedback and comments. The “Ubuntu on Windows” feature will be available to developers in one of the closest Windows 10 builds. Initially, some features will not work as intended, but we hope that you will be interested to get to know them and figure out how Ubuntu on Windows fits into your process. development!