|
Find the local ip of your orangepi zero connected to ethernet by going to your router's dashboard page (192.168.1.1 usually), it will be something like 192.168.1.x, use this ip in the software putty to connect to your pi, once connected login with the default user:password which is root:1234, then if you want to connect to your wifi do this :
- sudo cp /etc/network/interfaces /etc/network/interfacesoriginal
Copy code- sudo rm /etc/network/interfaces
Copy code- sudo nano /etc/network/interfaces
Copy code
copy this, and paste it into the pi :
- auto lo
- iface lo inet loopback
- auto eth0
- allow-hotplug eth0
- iface eth0 inet dhcp
- allow-hotplug wlan0
- iface wlan0 inet manual
- wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
- iface default inet dhcp
Copy code
do :
Ctrl + O
Enter
Ctrl + X
then
- sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Copy code
and copy paste this :
- ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
- update_config=1
- network={
- ssid="you wifi ssid name"
- psk="your wifi password"
- }
- network={
- ssid="orangepi"
- key_mgmt=NONE
- }
Copy code
then do :
Ctrl + O
Enter
Ctrl + X
and
BTW you can paste by right-clicking in the putty console |
|