Awesome Open Source
Awesome Open Source

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
    
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Shell (169,594
Network (37,702
Proxy (24,760
Vpn (3,887
Wsl (1,522
Workaround (939
Connection (163
Employees (77
Subsystem (33
Corporation (14
Windows Store (14