setup_wifi_from_command_line_console
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| setup_wifi_from_command_line_console [2017/01/07 15:45] – [Find your Wireless Network] walkeradmin | setup_wifi_from_command_line_console [2018/12/16 15:37] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Setup WiFi from Command Line Console ====== | ====== Setup WiFi from Command Line Console ====== | ||
| + | <color orange> | ||
| \\ | \\ | ||
| + | \\ | ||
| + | {{: | ||
| + | {{: | ||
| + | {{: | ||
| + | {{: | ||
| + | {{: | ||
| + | {{: | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | ---- | ||
| + | |||
| Setting up WiFi from the GUI of Raspbian is easy, just click the wifi button on the top right, select your SSID, enter your details and away you go. | Setting up WiFi from the GUI of Raspbian is easy, just click the wifi button on the top right, select your SSID, enter your details and away you go. | ||
| \\ | \\ | ||
| Line 7: | Line 20: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| + | |||
| + | ---- | ||
| + | |||
| ==== Before you start ==== | ==== Before you start ==== | ||
| \\ | \\ | ||
| Line 30: | Line 46: | ||
| RX bytes: | RX bytes: | ||
| </ | </ | ||
| - | \\ | ||
| \\ | \\ | ||
| Enter HWaddr (d5: | Enter HWaddr (d5: | ||
| Line 39: | Line 54: | ||
| ==== Find your Wireless Network ==== | ==== Find your Wireless Network ==== | ||
| + | \\ | ||
| + | To scan for wireless networks, use the following command: | ||
| + | \\ | ||
| + | sudo iwlist wlan0 scan | ||
| + | \\ | ||
| + | If you have more than one SSID close by, then you could get quite a list. so you can use the following to work out what information you need. | ||
| + | \\ | ||
| + | sudo iwlist wlan0 scan |more | ||
| + | | ||
| + | This will allow you to scroll through the pages of information you might get | ||
| + | \\ | ||
| + | Or | ||
| + | \\ | ||
| + | sudo iwlist wlan0 scan |grep SSID | ||
| + | | ||
| + | This will show just the SSIDs from the scan, meaning you can spot your SSDI more easily, for example: | ||
| + | | ||
| + | ESSID:" | ||
| + | ESSID:" | ||
| + | ESSID:" | ||
| + | ESSID:" | ||
| + | ESSID:" | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | ---- | ||
| + | ==== Add WiFi details to Raspbian ==== | ||
| + | \\ | ||
| + | To add your details to Raspbian, use the following: | ||
| + | \\ | ||
| + | sudo nano / | ||
| + | \\ | ||
| + | You will see a fairly empty file (assuming no one has edited this before) | ||
| + | \\ | ||
| + | < | ||
| + | country=GB | ||
| + | ctrl_interface=DIR=/ | ||
| + | update_config=1 | ||
| + | </ | ||
| + | \\ | ||
| + | At the end of this file, add the following lines. | ||
| + | \\ | ||
| + | < | ||
| + | network={ | ||
| + | ssid=" | ||
| + | psk=" | ||
| + | } | ||
| + | |||
| + | So I might add: | ||
| + | |||
| + | network={ | ||
| + | ssid=" | ||
| + | psk=" | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | Save the file, reboot the Pi and Voila! | ||
| + | \\ | ||
| + | < | ||
| + | Ifconfig | ||
| + | |||
| + | wlan0 Link encap: | ||
| + | inet addr: | ||
| + | UP BROADCAST RUNNING MULTICAST | ||
| + | RX packets: | ||
| + | TX packets:744 errors:0 dropped:0 overruns:0 carrier:0 | ||
| + | collisions: | ||
| + | RX bytes: | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
setup_wifi_from_command_line_console.1483803927.txt.gz · Last modified: (external edit)
