HOWTO: Install Poisontap on Raspberry Pi Zero 1.3 – Linux/Windows IN PROGRESS

Prerequisites

Raspberry Pi Zero
4GB or larger microSDHC card, with either USB or SD card adapter for PC
Mini HDMI to HDMI adapter
Mini USB to female USB-A adapter
USB-Fast Ethernet adapter
Powered USB 2.0 hub

Install an OS on the Raspberry Pi Zero.

Place a 4GB or greater size microSDHC memory card into your computer’s SDHC or a USB port with an adapter.

Linux:

Download Rasbian Jessie Lite, an OS for the Raspberry Pi, from here.
Uncompress the zip file. In my case, the uncompressed file name is 2016-09-23-rasbian-jessie-lite.img
Format the drive as FAT with gparted. Note the device ID. (sda, sdb, sdc, etc)
In a terminal window, navigate to the directory with the uncompressed Rasbian image file.
sudo dd if=2016-09-23-rasbian-jessie-lite.img of=/dev/sdc

Plug the keyboard and fast ethernet adapter into the powered hub. Turn the hub on.
Plug in the monitor and hub into the Raspberry Pi. The hub is plugged into USB port closest to the HDMI connector.
Insert the microSDHC card into your Pi and connect the power supply.

Login: pi       Password: raspberry

Windows:

Note: Plagiarized from the NOOBS readme with the exception of the noted superior formatter.
Download the Verbatim FAT32 Tool from here.
Uncompress the Verbatim formatter and run.
Format the microSDHC as FAT, FAT32
Download NOOBS from here.
Uncompress the NOOBS zip file and copy the contents over to the newly formatted microSDHC card.
Plug the keyboard and fast ethernet adapter into the powered hub. Turn the hub on.
Plug in the monitor and hub into the Raspberry Pi. The hub is plugged into USB port closest to the HDMI connector.
Insert the microSDHC card into your Pi and connect the power supply.

Your Pi will now boot into NOOBS and should display a list of operating systems that you can choose to install.
If your display remains blank, you should select the correct output mode for your display by pressing one of the following number keys on your keyboard:
1. HDMI mode – this is the default display mode.
2. HDMI safe mode – select this mode if you are using the HDMI connector and cannot see anything on screen when the Pi has booted.

Install Poisontap

Over on the Pi…

$ sudo bash
# echo -e "\nauto usb0\nallow-hotplug usb0\niface usb0 inet static\n\taddress 1.0.0.1\n\tnetmask 0.0.0.0" >> /etc/network/interfaces
# echo "dtoverlay=dwc2" >> /boot/config.txt
# echo -e "dwc2\ng_ether" >> /etc/modules
# echo "/bin/sh /home/pi/poisontap/pi_startup.sh" >> /etc/rc.local
# mkdir /home/pi/poisontap
# chown -R pi /home/pi/poisontap
# apt-get update
# apt-get upgrade
# apt-get -y install isc-dhcp-server dsniff screen nodejs git-core
# cd /home/pi
# git clone https://github.com/samyk/poisontap 
# cp /home/pi/poisontap/dhcpd.conf /etc/dhcp/dhcpd.conf 
# sync;sync;reboot
Tagged with: , , , , , , , , , ,

Leave a Reply