Only raspberry Pi zero support OTG setup.

What you need:

  1. Raspberry Pi Zero V1.3 or Wireless version
  2. Computer
  3. Micro USB cable


  1. Download any Raspberry Pi Zero compatible OS, I prefer Raspbian Jessie Lite, download from
  2. Burn image to Raspberry Pi Zero
  3. Modify 2 files as follow:
    1. open up the boot partition and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
    2. open up the cmdline.txt. Be careful with this file, it is very picky with its formatting! Each parameter is seperated by a single space (it does not use newlines). Insert modules-load=dwc2,g_ether after rootwait.
  4. Create empty file: ssh under root folder with 0 bytes
  5. Insert Micro SD card into Raspberry Pi Zero and connect to your computer with data usb port.
  6. Raspberry Pi Zero will be able to access via hostname: raspberrypi.local
    1. If you use Windows PC, you need to install iTunes to enable auto name discover (easy way)
  7. If you want to have your Raspberry Pi Zero access internet, you should share your internet access with Raspberry Pi Zero, you will see one internet connection with type: USB Etherent/RNDIS Gadget, share internet connect with this.

Now you are good to use your Raspberry Pi Zero as a computer.


Have fun