CHANGE WIFI NETWORK
Updated: Jul 4, 2020

Hi, here you'll learn how you can connect to a new WIFI network using your PI. You will need to do this if you have changes in your network name, password or perhaps you have installed a new router.
Software you will need
1. Download and install Putty
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
2. Download and install Angry IP
http://angryip.org/download/#windows
3. To get started temporarily connect the PI to your router using an Ethernet cable and power it on (alternatively you could connect a screen and keyboard to the pi and configure it directly).
4. Open Angry IP and locate your PI's ip address, if you don't know how to do this check https://www.fission3d.com/single-post/2017/09/25/Angry-IP-Scanner-Guide
5. Once you have the IP address of your PI open Putty and connect to your PI if you don't know how to do this check https://www.fission3d.com/single-post/2017/09/25/Configuring-Putty
6. Login
7. Run following commands (Copy from here and just right click in the Putty window and it will paste automatically and then press enter)
8. sudo iwlist wlan0 scan
9. The above will list all the wifi networks discovered by the PI. Make sure yours is listed.
10. sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
11. This will open a configuration file. Go to the bottom of the page using the down arrow button on your keyboard and add the following code.
12. network={ssid="XXX" psk="XXX" }
13. where you see XXX replace with your SSID and Password/Pre shared Key do not remove the quotes.
14. Press Ctrl + O to save
15. Press Enter to confirm
16. Press Ctrl + X to close the configuration file
17. now enter the following code to Shut down
18. sudo shutdown now
19. When off remove the Ethernet and power it back on.
20. You will have to use Angry IP again to find the new IP of your PI through the Wireless as it will be different to the one from Ethernet. (Alternatively if you have a screen and keyboard connected you could use the command ifconfig this will show you pi's IP).
21. Your Done
If you like this guide and would like to support so I can make more please consider donating ;)
If you think any part of this guide is wrong please send us a shout at guides@fission3d.com