Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Menziess/WSL-Being-Productive-Under-Corporate-Restrictive-Policy

Installing WSL (Windows Subsystem for Linux) under corporate restrictions such as Windows Store blocked, executable downloading blocked, network access blocked.
https://github.com/Menziess/WSL-Being-Productive-Under-Corporate-Restrictive-Policy

connection corporations employees internet linux network policy proxy restrictive subsystem vpn windows-store windows-subsystem-linux workaround wsl

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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`
1. Search for `Powershell`
1. Right click and `Run as administrator`
1. `Paste`:

```bash
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
```

1. Press `Y`

## 2. Install Distribution

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

1. `Download` Distribution:

```bash
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
```

1. `Rename` the file extension and `extract`:

```bash
Rename-Item ~/Ubuntu.appx ~/Ubuntu.zip
Expand-Archive ~/Ubuntu.zip ~/Ubuntu
```

1. 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:

```bash
echo export http_proxy=http://:@:/ >> ~/.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:

```bash
sudo apt update -y
sudo apt dist-upgrade -y
```

1. Run the script in this repo to set additional proxy settings, install Pipenv and Pyenv:

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