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.
-
Press the
windows key -
Search for
Powershell -
Right click and
Run as administrator -
Paste:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
Press
Y
Note: Ubuntu 1804 is commonly used, so we'll use that as an example.
-
DownloadDistribution:Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
-
Renamethe file extension andextract:Rename-Item ~/Ubuntu.appx ~/Ubuntu.zip Expand-Archive ~/Ubuntu.zip ~/Ubuntu
-
In the target folder,
execute ubuntu1804.exe
-
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
-
Download updates:
sudo apt update -y sudo apt dist-upgrade -y
-
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