Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Improvements to the Ubuntu Bash on Windows documentation. #596

Merged
merged 1 commit into from
Oct 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions readme/windows-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

BLT is supported on Windows 10, under the Windows Subsystem for Linux (Ubuntu Bash). You need to install this separately, and you must be running Windows 10 Anniversary edition or later, and the Windows installation must be 64-bit.

There are a few [known issues and quirks](#known-issues-and-quirks) with this approach.

## Install the Windows Subsystem for Linux

The Windows Subsystem for Linux allows you to use a full Linux environment via Bash on Ubuntu. This means you can install BLT's prerequisites on your Windows workstation in a similar way as you would on a Linux or Mac environment.
Expand All @@ -12,11 +14,12 @@ Follow Microsoft's official instructions to install [Bash on Ubuntu on Windows](

1. `sudo add-apt-repository ppa:ondrej/php` (hit 'Enter' when prompted)
2. `sudo apt-get update`
3. `sudo apt-get install -y php5.6-cli php5.6-curl php5.6-xml php5.6-mbstring php5.6-gd`
4. `sudo apt-get install -y git nodejs npm unzip`
3. `sudo apt-get install -y php5.6-cli php5.6-curl php5.6-xml php5.6-mbstring php5.6-bz2 php5.6-gd php5.6-mysql mysql-client unzip git`
4. `php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"`
5. `php composer-setup.php`
6. `sudo mv composer.phar /usr/local/bin/composer`
7. `curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -`
8. `sudo apt-get install -y nodejs`

## Other Required setup

Expand Down Expand Up @@ -47,3 +50,13 @@ After you run `vm init` (it may error out and say 'Virtualbox is missing is not
- `wrun vagrant up` to start the VM
- `wrun vagrant halt` to stop the VM
- `wrun vagrant destroy -f` to delete the VM

## Known issues and quirks

As the WSL is a beta feature it is expected that some features may contain bugs or be incomplete.

At the time of writing these are the currently known issues which you may encounter.

1. [Only portions of procfs are implemented, and there is limited inotify support](https://github.com/Microsoft/BashOnWindows/issues/216). This will impact things like Gulp where you commonly want to actively 'watch' for filesystem changes. In that particular instance you can use [gulp-watch](https://www.npmjs.com/package/gulp-watch) which polls periodically instead.
2. [Network enumeration is not supported](https://github.com/Microsoft/BashOnWindows/issues/468). This will impact networking functions commonly required by popular frontend packages and utilities (e.g Browsersync). There are workarounds discussed in the GitHub issue.
3. [Permissions on /dev/tty are sometimes incorrect](https://github.com/Microsoft/BashOnWindows/issues/617). This can prevent ssh connectivity keyboard input cannot be read (required when entering a passphrase). A workaround is discussed in the GitHub issue.