-
Notifications
You must be signed in to change notification settings - Fork 4
3. Connect to your computer
- Eject the SD card from your computer
- Insert the card into the Raspberry Pi Zero
- Connect the Raspberry with an otg USB cable to your computer. Do not use the connector marked with
PWR
, but the one marked withUSB
- After some time the boot of Raspberry Pi Zero has finished. A new network connection should appear
- You should be able to connect with e.g. Putty to your Pi Zero. When you have 'Bonjour' installed, the name of the Pi is
raspberrypi.local
, but without 'Bonjour' you cannot not connect using this name. In that case you have to connect to the ip-address, provided you know the address. To find this address you could use a tool like Wireshark. When capturing packets from the new connection you might see ARP requests likeWho has <ip address>? Tell <ip address>
. The last ip-address is the address of the Pi - Login with Putty: Default username/password:
pi
/raspberry
-
Edit
/etc/network/interfaces
e.g. withsudo nano /etc/network/interfaces
. Replace it with the following lines:source-directory /etc/network/interfaces.d allow-hotplug usb0 iface usb0 inet static address 192.168.137.22 netmask 255.255.255.0 gateway 192.168.137.1
-
Edit
/etc/resolv.conf
e.g. withsudo nano /etc/resolv.conf
. Replace it with the following lines:nameserver 192.168.137.1
-
Now, in Windows, go to the network connections and select the connection that is connected to the internet. Right-click -> properties. The properties dialog opens
-
Click on the tab 'Sharing'
-
Enable 'Allow other network users to connect...'
-
Select the network adapter associated with your Raspberry Pi Zero from the dropdown-box 'Home networking connection:'
-
Click Ok. This configures your computer to act like a router. Its address will be
192.168.137.1
. -
In Putty, enter
reboot
. This will make your Pi do just that. Close Putty -
After the Pi has rebooted you should be able to connect to
192.168.137.22
. Connect and login -
Try to ping an address on the internet e.g.
ping github.com
. If this works, you have a (temporary) working connection, which enables you to install all software
Go Home