# Pi Notes # ### Setting up Wifi ### Open the wpa-supplicant configuration file in nano: ``` sudo nano /etc/wpa_supplicant/wpa_supplicant.conf ``` Go to the bottom of the file and add the following: ``` network={ ssid="The_ESSID_from_earlier" psk="Your_wifi_password" } ``` In the case of the example network, we would enter: ``` network={ ssid="testing" psk="testingPassword" } ``` Now save the file by pressing Ctrl+X then Y, then finally press Enter. At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network. If it does not, either manually restart the interface with sudo ifdown wlan0 and sudo ifup wlan0, or reboot your Raspberry Pi with sudo reboot. You can verify if it has successfully connected using ifconfig wlan0. If the inet addr field has an address beside it, the Pi has connected to the network. If not, check your password and ESSID are correct. ## Swapfile ## ``` sudo nano /etc/fstab /swapfile1 none swap sw 0 0 ```