Skip to content

Installing WSL (Windows Subsystem for Linux) under corporate restrictions such as Windows Store blocked, executable downloading blocked, network access blocked.

Notifications You must be signed in to change notification settings

Menziess/WSL-Being-Productive-Under-Corporate-Restrictive-Policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

WSL Being Productive Under Corporate Restrictive Policy

Big corporations may hinder an employees productivity with restrictive policies, narrowing the employees toolset down to Internet Explorer 11, Microsoft command line, Putty, and other installables. Some corporations even shut down Windows Store, so that the employee is not able to install Windows Subsystem for Linux.

1. Activate Subsystem

  1. Press the windows key

  2. Search for Powershell

  3. Right click and Run as administrator

  4. Paste:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  5. Press Y

2. Install Distribution

Note: Ubuntu 1804 is commonly used, so we'll use that as an example.

  1. Download Distribution:

    Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
  2. Rename the file extension and extract:

    Rename-Item ~/Ubuntu.appx ~/Ubuntu.zip
    Expand-Archive ~/Ubuntu.zip ~/Ubuntu
  3. In the target folder, execute ubuntu1804.exe

3. Enable Network for apt, curl, and wget

  1. Enter your username, password, and proxy settings in the following script, and run it:

    echo export http_proxy=http://<username>:<password>@<proxy-url>:<proxy-port>/ >> ~/.bashrc
    echo export HTTPS_PROXY=$http_proxy >> ~/.bashrc
    echo "check_certificate = off" >> ~/.wgetrc
    echo insecure >> ~/.curlrc
    source ~/.bashrc

4. Update packages and distro

  1. Download updates:

    sudo apt update -y
    sudo apt dist-upgrade -y
  2. Run the script in this repo to set additional proxy settings, install Pipenv and Pyenv:

    curl https://raw.githubusercontent.com/Menziess/WSL-Being-Productive-Under-Corporate-Restrictive-Policy/master/mad_scientist.sh | bash

About

Installing WSL (Windows Subsystem for Linux) under corporate restrictions such as Windows Store blocked, executable downloading blocked, network access blocked.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages