Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 2 months ago
JSON representation
Installing WSL (Windows Subsystem for Linux) under corporate restrictions such as Windows Store blocked, executable downloading blocked, network access blocked.
- Host: GitHub
- URL: https://github.com/Menziess/WSL-Being-Productive-Under-Corporate-Restrictive-Policy
- Owner: Menziess
- Created: 2018-12-08T17:41:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T09:00:27.000Z (over 5 years ago)
- Last Synced: 2024-08-13T07:16:06.400Z (6 months ago)
- Topics: connection, corporations, employees, internet, linux, network, policy, proxy, restrictive, subsystem, vpn, windows-store, windows-subsystem-linux, workaround, wsl
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - 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. (Shell)
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 distro1. 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
```