There are two (that I know) methods of getting piaware running. One is to use windows or mac to download the piaware image file and burn that data to an SD as is so capably described elsewhere in this thread. If you have a RazPi already up and running then follow these instructions.
This worked for me as the second method. Text in bold is typed into the command line or LXTERMINAL if using the GUI.
With NOOBS or Raspbian already running on your PI make a new file with the nano text editor. Type man nano to view the help file.
sudo nano ~/update.sh <enter the following 6 lines.>
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo rpi-update
sudo apt-get autoremove
sudo apt-get install -y atop nmap iceweasel ufw
Save the file with Ctrl-X y enter
Then
sudo chmod +x ~/update.sh
to make the .sh file executable.
Now and periodically (daily) run
~/update.sh
The first time it is run it will take a long time. This update.sh shell file will update the database, install all of the latest upgrades and system upgrades, load the latest updates, clean up, and install some very useful utilities.
Plug in your antenna and stick the stick into your PI.
Now copy and paste each of the command lines in black boxes from
http://uk.flightaware.com/adsb/piaware/install
into your command line.
Now
sudo shutdown -r now
which will now reboot and then log in again as pi / password and see if piaware is running with:
cat /tmp/piaware.out
to check the output regularly.
**sudo nmap -sP 192.168.0.0/24 | grep for **
is great to see what is connected to your network. The word ‘for’ should be highlighted in red. The | symbol is pipe.
sudo atop or ‘top’. Once again use man top or man atop or man nmap.
q for quit
sudo piaware-status
sudo piaware-status | grep -i not
when you are familiar with it.
Ctrl-C if it hangs up.
ps aux | grep piaware
ps aux | grep dump1090
to see if they are running
User pi
password flightaware
<Do the following one time only to enable Uncomplicated [sic] Fire Wall>
sudo enable ufw
sudo ufw allow 22
sudo ufw allow 8080
sudo ufw allow 10001
sudo ufw allow 30001
sudo ufw allow 30002
sudo ufw allow 30003
sudo ufw allow 30004
sudo ufw allow 30005
**sudo ufw status verbose**
Wait at least 1/2 hour for the flightaware server to collect your data
http://uk.flightaware.com/adsb/stats/user/yourusername
works for me in the UK
ifconfig to get your IP address
On any browser on your network enter the URL of your Piaware system.
http://192.168.0.yourIPaddress:8080
to view your results from the mini map server in your PI
I run my 3 Raspberry Pi’s remotely and without a keyboard / video / mouse = ‘headless’ and have only power and an ethernet cable attached to the Pi - dongle - antenna. From another computer on my network (or my smartphone) I use any browser to log into the PI and view the same status pages. I also run NetScan, SSH Client and Wifi Analyzer on my Samsung Android to remotely control my systems.
I am using many ancient - 3 year old Model B with 256 M, hence the reason to go headless. Sorry for the cryptic command lines but it is essential and eventually will become second nature to you. The learning curve is steep and slippery but Linux / GNU gets easier the more you use it. I began learning it in 1994 and still feel inadequate and learn more each day. Learn the command line and avoid the GUI if you can.
I use SSH - Secure Shell - to log in remotely. sudo ssh -l pi 192.168.0.5 that is ssh dash small L for login user.
If you are more comfortable with a GUI startx to get to your GUI, but once it is running you will have to run a terminal such as LXTERMINAL so best to avoid the GUI. Use a VC Virtual Console from the command line with Ctrl-Alt F2 thru Ctrl-Alt F6, log in and have multiple text sessions open simultaneously.
Ctrl-Alt F1 is your main login session. Alt F7 weird, I know, without the Ctrl, gets you back to that GUI thing.
Run ICEWEASEL (a firefox clone from GUI - menu - internet) avoid EPIPHANY as life is too short.
From the command line sudo raspi-config run 1, Expand Filesystem, 8 Advanced Options A4 enable SSH, exit out and finish.
This could turn into a book: “War and Peace with a Raspberry PI and Piaware”
enjoy! 