Difference between revisions of "Pi"
(add even more waiting. it's not like the person hasn't waited enough at this point) |
(more stuff) |
||
Line 26: | Line 26: | ||
sudo dhclient | sudo dhclient | ||
+ | |||
+ | (then wait a random number of seconds) | ||
+ | |||
+ | sudo dhclient | ||
+ | |||
+ | (yes, you have to run it again) | ||
The Internet should come on within a minute or so. | The Internet should come on within a minute or so. |
Revision as of 22:49, 3 February 2020
For setting up the Pi, see Setting up the Pi.
For connecting to the Pi, see Connecting to the Pi.
Giving the Pi the Internet
Go to the fifth floor of Upson and stand outside the bike lab, then use the LocomotionLab wifi as detailed in Connecting to the Pi#General notes.
If you don't want to walk:
Note that for these directions, you must not be using the Pi in ad-hoc mode (see explanation here. Use Ethernet instead.
Also, note that /etc/network/interfaces
must be EMPTY (or at least have everything commented out. The comment character is "#", aka hashtag or octothorpe.
set up a hotspot on your phone and then run these commands:
sudo ip link set dev wlan0 up
(then wait 30 seconds or however long it takes before the next command stops giving an error message)
sudo iw dev wlan0 connect -w 'NAME OF WIFI NETWORK'
(then wait about 30 seconds or so)
sudo dhclient
(then wait a random number of seconds)
sudo dhclient
(yes, you have to run it again)
The Internet should come on within a minute or so.