Connecting WSL to Network: Automatically

By default, Windows Subsystem for Linux (WSL) is not configured properly to connect to your WIFI network. When working with a team on a WSL-based build system, I found that this became an issue fairly frequently. Whenever we introduced a new team member to the build system, they would run the setup script, which would fail because WIFI was not available. The issue stemmed from the fact that I wanted new team members to simply run the setup script and be done. If they had to solve the WIFI issue first, that would not be the case. So instead I set out to find a way to automatically solve the WIFI connection issue as part of the setup script. The result is a fairly generic and (in my opinion) useful bash script that will first check for a valid connection, and then attempt to overwrite (with users permission) the resolv.conf file in an attempt to fix the connection if one is not present.


                
            
Next
Next

Git Status Utility Script