It’s less like Power Rangers clicking rings, more like living in a foreign country
As of this writing (June 2017), this was as its first “beta” release.
### Enable Windows Subsystem for Linux feature (GUI)
From Start, type in the search box
Turn Windows features on or off
and select it when it appears.
Please wait a while for all items to appear.
Select “Windows Subsystem for Linux (beta)”, then click OK to exit dialog, then Restart your computer.
This option was added since the “Anniversary” and “Creators Update” of Windows 10.
Skip to next topic if you see it.
Don’t see it?
Verify your PC’s CPU architecture and Windows version/build number:
Start: Click the Windows icon or keyboard key to open Settings, System, About.
If your OS Build is not above 14393, update. You need the Windows 10 Anniversary Update. Creators Update is recommended.
If your System type is not “64-bit”, get another computer.
Turn on Developer Mode
- Open Settings -> Update and Security -> For developers
Check the Developer Mode radio button to “install any signed app”.
First time Bash
Open a command prompt (click Start and type Command, then select it from the list that arises)
QUESTION: Run as Administrator/elevated?
During Beta period, this message appears:
-- Beta feature -- This will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here: https://aka.ms/uowterms
Type y and press Enter to continue. The response:
Downloading from the Windows Store... 100% Extracting filesystem, this will take a few minutes... Installation successful~ Please enter a UNIX user name: _
QUESTION: What is downloaded and can it be deleted?
The image downloaded is a Ubuntu user-mode image.
Type a user name
Enter new UNIX password: _
This username and password can be different from, and has no relationship to Windows username and password.
PROTIP: The user is not root.
Type a password.
A shortcut is added to your start menu named:
Bash on Ubuntu on Windows
Click it so you don’t have to type “bash”.
By default, the prompt is your Linux user name @ your machine name:/mnt/c/Users/%USERNAME%$
Folders and variables
See where Ubuntu is installed using a Windows system variable referenced using Windows % wrapper rather than Bash $ prefix.
The directory is marked as a hidden system folder. Creating and/or modifying files in this location using Windows tools and apps corrupts because it gets read-locked. An explanation is this.
Create a project folder under a Linux mount for use by both Windows and Linux tools:
cd /mnt/c/dev/ mkdir project
Access files from both Windows and from Bash as:
Lxcore.sys is the driver that recognizes Bash commands and other Linux utilities such as chmod to change permissions.
VFS is the Virtual File System.
From inside Bash, DrvFS gets to Windows.
From inside Windows, VolFS gets to Linux symbolic files and its case sensitivity.
NTFS is the NT File System controlling hard drives.
NOTE: To run Python for Selenium controlling Firefox, install Xming with gekoDriver.
Links and issues for this are on:
published 15 June 2016 by Jack Hammons, who writes:
https://blogs.msdn.microsoft.com/wsl, the home page of WSL.
More on DevOps
This is one of a series on DevOps:
- ci-cd (Continuous Integration and Continuous Delivery)
- Git and GitHub vs File Archival
- Git Commands and Statuses
- Git Commit, Tag, Push
- Git Utilities
- Data Security GitHub
- GitHub API
- Choices for DevOps Technologies
- Java DevOps Workflow
- AWS DevOps (CodeCommit, CodePipeline, CodeDeploy)
- Cloud regions
- AWS Virtual Private Cloud
- Azure Cloud Onramp
- Azure Cloud
- Azure Cloud Powershell
- Digital Ocean
- Packer automation to build Vagrant images
Terraform multi-cloud provisioning automation
- Powershell Ecosystem
- Powershell on MacOS
- Jenkins Server Setup
- Jenkins Plug-ins
- Jenkins Freestyle jobs
- Dockerize apps
- Docker Setup
- API Management Microsoft
- Scenarios for load