Skip to content

Instantly share code, notes, and snippets.

@AmesianX
Created January 24, 2020 00:42
Show Gist options
  • Save AmesianX/e1cb59ede2552eb747034edf567bc330 to your computer and use it in GitHub Desktop.
Save AmesianX/e1cb59ede2552eb747034edf567bc330 to your computer and use it in GitHub Desktop.
install ubuntu on windows offline

How To:

Download from microsoft https://wsldownload.azureedge.net/16.04.2-server-cloudimg-amd64-root.tar.gz

or ubunut https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-root.tar.gz

  • First enable Windows Subsystem for Linux from Program and Features -> Turn Windows features on or off
  • Restart Windows (MS has a thing for rebooting)
  • Download one of the image and host it on your local web server if not done already
  • Start Fiddler and enable Automatic Breakpoints (Alt+F11)
  • Start command prompt and run lxrun /install /y
  • Switch to Fiddler. You will see a request to https://go.microsoft.com/fwlink/?LinkID=730581. Click on Headers tab -> Right click on Location -> Edit Header -> Paste your local link URL (i.e. http://localhost/xenial-server-cloudimg-amd64-root.tar.gz) and click on - - Save -> Run to Completion
  • There will be another request to http://localhost/xenial-server-cloudimg-amd64-root.tar.gz. Just click on “Run to completion” this time.
  • After some time, there will again another request to download “ubuntu.ico”. Just allow it.
  • Create a new user and you are ready to go!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment