This was how I set up my Pi 2 without using the HDMI/USB console. I have a wifi adapter in one USB port, and a Prolific TTY to Serial USB adapter.
### Prepare the installer
Download NOOBS from http://www.raspberrypi.org/downloads/
If the zip file is corrupt, then pull down with torrent. Mine had one corrupt block from the webserver.
Format your TF/uSD card as FAT32 (not exFAT, ext*, nor NTFS)
Unpack NOOBS.zip into your TF/uSD card
Remove all but Raspbian from “os” dir
edit recovery.cmdline to have “silentinstall”
edit flavours.json to have only raspbian, not the scratch version.
### Connect the TTY console with power
Connect Prolific TTL to Serial adapter
Red pin (5V) to pin 2 (furthest from USB, closest to edge)
Skip pin 4. Black is pin 6, white is pin 8, green is pin 10
DO NOT USE THE USB POWER PORT. We are powering through the red pin. Both power at same time will kill the board. You CAN unplug the red pin so as to allow more amps through the power micro-USB port.
### Power and autoboot
Plug in the USB port and connect to your comm port (putty, hyperterm, whatever) at 115200,8,n,1
It takes 4 seconds to say “Recovery Console”, then two for unpacking, and about 20 mins for complete install. Green LED (drive light) should blink.
The pi and it will install then reboot
### Basic config
Login as pi / raspberry, then sudo to root
Walk through raspi-config, then “FINISH”
sudo to root and set root password.
### Set up network
Plug in your wifi adapter, OR the ethernet cable, or both.
Edit /etc/wpa_supplicant/wpa_supplicant.conf to include:
network={
ssid=”The_ESSID_from_earlier”
psk=”Your_wifi_password”
}
ifdown wlan0 ; ifup wlan0
Wait 20 seconds for reconnect
cp -p /etc/network/interfaces /etc/network/interfaces.bak
cat < <"EOF" > /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
EOF
### Change the primary console to be tty instead of GUI
cp -p /boot/cmdline.txt /boot/cmdline.txt.bak
cat < <"EOF" > /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
EOF
### Install “resize” for console
apt-get update
apt-get install xterm
resize
cat < <"EOF" >> /etc/profile
alias ll=’ls -laF’
resize
EOF
### Set time and certificates (required for firmware update)
apt-get install ntpdate ca-certificates
cat < <"EOF" >> /etc/ntp.conf
server us.pool.ntp.org
server ntp.ubuntu.com
EOF
/etc/init.d/ntp stop
ntpdate us.pool.ntp.org ntp.ubuntu.com
/etc/init.d/ntp start
tzselect
### Update firmware
apt-get install rpi-update
rpi-update
reboot
### Update base OS
sudo apt-get upgrade
### Other references
http://raspberrypi.stackexchange.com/questions/15192/installing-raspbian-from-noobs-without-display
http://www.raspberrypi.org/forums/viewtopic.php?t=83372
http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=88064
http://www.raspberrypi.org/documentation/configuration/config-txt.md
https://github.com/raspberrypi/noobs
https://learn.sparkfun.com/tutorials/setting-up-raspbian-and-doom/setup-raspbian
http://elinux.org/R-Pi_Troubleshooting
http://weworkweplay.com/play/automatically-connect-a-raspberry-pi-to-a-wifi-network/
http://raspi.tv/2012/making-a-reset-switch-for-your-rev-2-raspberry-pi
http://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/
https://pidome.wordpress.com/
http://elinux.org/RPi_Serial_Connection
http://www.raspberrypi.org/raspberry-pi-2-on-sale/
http://www.raspberrypi.org/products/raspberry-pi-2-model-b/
### Power test
2015-02-20 03:55am 90% or better 5x-18650 power brick, base install, boot then idle with rtl8188cu wifi-N and SSH connected.
2015-02-20 10:49am 75% battery left
2015-02-20 15:47pm 25% still last LED, getting dimmer
2015-02-20 19:55pm Blinking final LED
2015-02-20 20:59pm last syslog entry before going down.