Skip to main content

Installation of Windows Subsystem for Linux


Disclaimer: This is the first release of Bash in Windows. It is in "Beta" version meaning it is not complete. Some things will work and some things will not.

Prerequisites:


  1. Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later.

    To find your PC's CPU architecture and Windows version/build number, open Settings>System>About. Look for the OS Build and System Type fields.

    If your build is below 14393, try checking for updates









  2. Installation
    In order to run Bash on Windows, you will need to manually:

    1. Turn-on Developer Mode
    2. Enable the "Windows Subsystem for Linux (beta)" feature via the GUI or the command-line:

Turn-on Developer Mode
  1. Open Settings -> Update and Security -> For developers
  2. Select the Developer Mode radio button
  3. This will take a while depending on the speed of you internet connection.


Enable the Windows Subsystem for Linux feature (GUI)




  1. From Start, search for "Turn Windows features on or off" (type 'turn')
  2. Select Windows Subsystem for Linux (beta)
  3. Click OK.
Enable the Windows Subsystem for Linux feature (Command-Line)

  1. Open a PowerShell prompt as administrator and run:
  2. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  3. Restart your PC. 

Run Bash on Windows
  1. Open a command prompt
  2. Run bash.

After you have accepted the License, the Ubuntu user-mode image will be downloaded and a "Bash on Ubuntu on Windows" shortcut will be added to your start menu.

To launch Bash on Windows, either run bash  at a cmd/PowerShell command-prompt, or use the start menu shortcut.

After installation your Linux distribution will be located at:  %localappdata%\lxss\ This directory is marked as a hidden system folder because creating or modifying using Windows tools and apps may cause corruption and data loss in your Linux files. Please read this blog post  for more information.

Create a UNIX user

The first time you install Bash on Windows, you will be prompted to create a UNIX username and password.



This UNIX username and password can be different from, and has no relationship to your Windows username and password.

Reference:
https://msdn.microsoft.com/en-us/commandline/wsl/install_guide  

Comments

Popular posts from this blog

Document Layout Analysis

Document Layout Analysis is our second exercise. Using the three images above our program needs to do the following: Individual characters are boxed Individual words are boxed Lines are boxed Paragraphs are boxed The paragraphs with margins I used a bottom-up approach for this exercise. It means that I started detecting and boxing the letters to words to line to paragraph and lastly to the paragraph with margin. I created a function for each of the objectives. I used a trial and error approach for determining the appropriate kernel size for the specific function. I have a very simple step for every objectives: Load the images. Assigning of output images Convert images to grayscale Cleaning the images using Otsu's Thresholding method. (with the inversed binarized image) Assigning kernel size (1 or 2 kernels depending in the objective) Morphological Operations (Dilation, Erosion, Closing and Opening) Find the Contours Box the contours (I added some offs...

Installing AsgardCMS for your Web Application

AsgardCMS is a full-featured modular and multilingual CMS on top of the Laravel Framework. Here are the steps for installing the aforementioned CMS. You can get the code using this command: composer create-project asgardcms/platform your-project-name If the terminal ask you for a token. Just follow the steps of generating a new token here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/  After that, the installation must be smooth-sailing. Go t the directory of your project php artisan asgard:install Then, you will now set-up the database connection and admin creation. Finally, you can run  php artisan serve or php artisan serve --port=your-port Access the application: Application : localhost:your-port/en Admin: localhost:your-port/en/backend References:  https://asgardcms.com/install https://www.youtube.com/watch?v=MeX_D-aql6g http://asgardcms.blogspot.in/2015/12/asgardcms-inst...

Color Image Processing

Color Image Processing is our 4th Exercise. The objective of this exercise is to detect an object using color spaces. For this exercise our object is a pig with green tag. We need to detect the pig and the green tag. I use HSV color space for detecting the green tag and YCRCB color space for detecting the pig. The range of minimum and maximum for the pig detection is hardcoded. I use this http://www.wseas.us/e-library/conferences/2011/Mexico/CEMATH/CEMATH-20.pdf as reference for detecting the pig. I cleaned the images using opening method with a kernel size of 20. Here are my sample outputs detecting the green tag: Some bad outputs detecting the pig:         The rest of the pig detection are okay: