Just opened up the newly arrived Pineapple and attempting to run setup. Did this as per instructions:
Power the Wifi Pineapple on and directly connect it to the host pc ... done using linux with BT5 and an Ethernet cable.
Download the wp4.sh script ... done. That is, I downloaded it to the BT5 linux laptop which because it's behind a firewall had the issued ip address of 192.168.1.14. Needed to do this to grab the script off the internet.
Then connected pineapple per instructions to laptop, re-issued dhclient and now the linux laptop running bt5 has an ip address of 172.16.42.20
chmod +x wp4.sh. . . done. It is now executable.
run it with sudo ./wp4.sh and getting error:
line 1: syntax error near unexpected token 'newline'
now i'm stuck. . .