-
https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a
-
https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget
- Follow the first link above to flash and config Raspbian Jessie.
- Connect Raspberry Pi to your computer via USB port.
- Now Raspberry Pi should appear as a USB Ethernet device.
- You might need to enable Internet Sharing option in your computer.