Bash On Ubuntu On Windows(Windows Subsystem for Linux)

After Windows 10 Build 14316 or later you can enable Microsoft Windows Subsystem for Linux feature
so you can run Ubuntu in your Windows box.

Check build version

C:\>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows 10 Enterprise Evaluation
OS Version:                10.0.14393 N/A Build 14393


Step 1 Click Action center at right button corner and click all settings and
Step 2 On Windows Setting window click “Update & Security
Step 3 Click “For Developer” tab on the left
Step 4 Enable “Developer Mode” and restart the computer
Step 5 After Restart you can now open a command prompt (CMD) or powershell and type “bash“.
It will ask you to install Ubuntu just choose yes “y”

Windows PowerShell

Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\chako> bash
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:

Type "y" to continue: y
Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit:
Enter new UNIX username: chako
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
The environment will start momentarily...
Documentation is available at:
chako@DESKTOP-ERGD9VC:/mnt/c/Users/chako$ systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
findstr: command not found
systeminfo: command not found

After complete the installation, you can now run “Bash On Ubuntu On Windows” 🙂

chako@DESKTOP-ERGD9VC:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

Extend the activation time for evaluation version of Windows

For Microsoft 20-410~412 Windows Server 2012 R2 class, we download the evaluation version of Windows to try
things out and do our class projects. But some of you may find that the evaluation license only valid for 90 days.
So to solve this problem the simplest way is to use slmgr.vbs

Open Administrator CMD or Powershell and type:

slmgr /rearm 

It should works on Windows 8, 10, 2012, 2012 R2 and 2016.
After you done it the system should extend the activation time so you can keep doing your project :).

If you want to get more detail about the Windows machines’ activation, license and expiration date info your could try:

slmgr /dlv
slmgr /xpr

Ubuntu LTS Linux connect to UBC VPN with OpenConnect

For Windows users, you can follow the UBC VPN setup guild.
Basically just download and run Cisco AnyConnect Secure Mobility Client on your Windows box. It works on both my Win7 and Win10 machines.

For Ubuntu LTS Linux (OSX will work):

Step 1 : Install OpenConnect

sudo apt-get install openconnect

Step 2 : Connect to UBC VPN

sudo openconnect -u username

It has to run on privilege.
After you run this command, the vpn server will prompt you for asking your password.

After all it should work 🙂

For OSX just install port and use port command instead of apt-get

sudo port install openconnect