From 495e25fc3341e89c2879bc2545e5ce81ae83903f Mon Sep 17 00:00:00 2001 From: Evandro Pomatti Date: Thu, 14 Apr 2022 23:33:44 -0300 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ec277b..794c194 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,14 @@ This will help you prevent name resolution issues when coding and falling into t ## Usage -Clone the repo, `cd` into it and run the configuration script: +Simply execute this shell file: ```bash # Debian/Ubuntu sudo sh ./run.sh ``` -The above command will delete `/etc/resolv.conf` and `/etc/wsl.conf` files, so don't need to worry on a fresh installation. +_Caution: It'll delete `/etc/resolv.conf` and `/etc/wsl.conf` files. Don't need to worry on a fresh installation._ You can now restart WSL from your favorite Windows terminal, and it should work: @@ -21,6 +21,15 @@ You can now restart WSL from your favorite Windows terminal, and it should work: wsl --shutdown ``` +#### Without clonning with git + +In case you just want the sources file you can get it from the [releases](https://github.com/epomatti/wsl2-dns-fix/releases) section: + +```sh +curl -L https://github.com/epomatti/wsl2-dns-fix/archive/refs/tags/1.0.0.tar.gz -o wsl2-dnsfix.tar.gz +tar -xf wsl2-dnsfix.tar.gz +``` + ## What it does The [`run.sh`](./run.sh) script will perform these tasks: