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 16:00] – [Find your Wireless Network] walkeradmin | setup_wifi_from_command_line_console [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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 43: | Line 58: | ||
\\ | \\ | ||
sudo iwlist wlan0 scan | 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. | 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 | sudo iwlist wlan0 scan |more | ||
Line 52: | Line 65: | ||
This will allow you to scroll through the pages of information you might get | This will allow you to scroll through the pages of information you might get | ||
\\ | \\ | ||
- | \\ | + | Or |
+ | \\ | ||
sudo iwlist wlan0 scan |grep SSID | sudo iwlist wlan0 scan |grep SSID | ||
| | ||
Line 69: | Line 83: | ||
\\ | \\ | ||
To add your details to Raspbian, use the following: | To add your details to Raspbian, use the following: | ||
- | \\ | ||
\\ | \\ | ||
sudo nano / | sudo nano / | ||
- | \\ | ||
\\ | \\ | ||
You will see a fairly empty file (assuming no one has edited this before) | You will see a fairly empty file (assuming no one has edited this before) | ||
- | \\ | ||
\\ | \\ | ||
< | < | ||
Line 82: | Line 93: | ||
update_config=1 | update_config=1 | ||
</ | </ | ||
- | \\ | ||
\\ | \\ | ||
At the end of this file, add the following lines. | At the end of this file, add the following lines. | ||
- | \\ | ||
\\ | \\ | ||
< | < | ||
Line 98: | Line 107: | ||
ssid=" | ssid=" | ||
psk=" | psk=" | ||
+ | } | ||
</ | </ | ||
- | \\ | ||
\\ | \\ | ||
Save the file, reboot the Pi and Voila! | Save the file, reboot the Pi and Voila! | ||
\\ | \\ | ||
- | \\ | + | < |
Ifconfig | Ifconfig | ||
- | wlan0 Link encap: | + | wlan0 Link encap: |
- | inet addr:192.168.1.53 Bcast:192.168.1.255 Mask: | + | inet addr:137.58.50.53 Bcast:137.58.50.255 Mask: |
- | inet6 addr: fe80:: | + | |
UP BROADCAST RUNNING MULTICAST | UP BROADCAST RUNNING MULTICAST | ||
RX packets: | RX packets: | ||
Line 114: | Line 122: | ||
collisions: | collisions: | ||
RX bytes: | RX bytes: | ||
- | + | </ | |
- | + | \\ | |
+ | \\ | ||
setup_wifi_from_command_line_console.1483804800.txt.gz · Last modified: 2023/03/09 22:35 (external edit)