My recent RPi2 SD card rebuild helper list..


#1

After a recent dead and/or dying SD card issue I decided to perform a scratch rebuild which was made easier with a quick list that I put together before starting the rebuild. So, I’m sharing my list in case anyone else could make use of it.

Background; my Raspberry Pi2 was feeding FlightAware, FlightRadar24 & PlaneFinder using Dump1090-Mutability as the decoder.

Step 1:
Image a new SD card with Raspbian Debian Wheezy available here
https://www.raspberrypi.org/downloads/

Step 2:
Boot the newly imaged SD card. Change the default passwords to something of your choice. Run the Update and Upgrade commands to ensure you have the latest patches etc. If you wish use the RASPI-CONFIG utility to set your local timezone and expand the OS to use all available space on the SD card.

Step 3:
Install Dump1090-mutability. Instructions and download links available here
http://discussions.flightaware.com/ads-b-flight-tracking-f21/raspbian-ubuntu-packages-for-dump1090-mutability-available-t19619.html

Step 4:
Install Piaware. Instructions and download links available here
http://discussions.flightaware.com/ads-b-flight-tracking-f21/multilateration-mlat-beta-t27073.html

Step 5:
Install Flightradar24 (fr24feed). Instructions and download links available here
http://forum.flightradar24.com/threads/8591-Raspberry-Pi-How-To-Install-Raspian-OS-Dump1090-FR24-Data-Feeder

I started my install at this point on the webpage link above (STEP 3- Installation of FR24 Data feeder ). Once installed, point a web browser at http://{rpi2 IP adress}:8754 and go through the settings process. Here are my default settings.

key: use your own sharing key
AVR (TCP)
127.0.0.1:30002
RAW No
SBS No

Step 6:
Install PlaneFinder (pfclient). Instructions and download links available here
http://forum.planefinder.net/threads/plane-finder-client-beta3-3-0-1657.277/

Once installed, point a web browser at http://{rpi2 IP adress}:30053 and go through the settings process. Here are my default settings.
key: use your own share code
Beast 127.0.0.1:30005

Step 7:
Install Collectd. Instructions and download links availble here
http://discussions.flightaware.com/ads-b-flight-tracking-f21/system-monitoring-t26999.html

Step 8:
Install any additional software that you require. And restore any of your custom files from backup, if available. :slight_smile:

Cheers, Tom


#2

Thanks for sharing, Tom.
I know exactly what to do when my new Pi2 will arrive :wink:


#3

As part of Step 2 – use Raspi-Config to change the hostname. When you change the hostname, let’s say to “sparkle” then after you reboot, you’ll be able to locate your new Pi on other systems on your LAN as sparkle.local/ – rather than having to find and remember the IP address – thanks to software now included in the Raspian distribution (if you really want to know, it’s called avahi-daemon, and you can install it on earlier versions of Raspian; they started including it in the distro recently).

BE SURE and change the default password! Also, set the proper time zone and locale or things can get confused. You also want to expand to use all the space on the SD card.

bob k6rtm


#4

Looks good, Tom. Thanks. I saved a copy and will refer to it next time I have to build one from scratch. At this point I have a backup of my SD card as well as a clone on another SD card which can be put in if needed.


#5

Thanks for collecting the URLs into a single post; definitely helpful. Love to see these consolidating knowledge threads. I also echo jepolch’s advice to image your SD once you have it the way you want it and after making major changes.


#6

What is the best way to clone the SD card?

I’ve used the Windows program Win32DiskImager to created the Raspberry Pi2 boot image from the Raspbain image file which is about 3 GB in size. And I’ve tried to use it to create a usable image without success.

And is there a way to resize the image files once you’ve expanded the operating system to use the entire SD card, 64 GB in my current case?

…Tom


#7

Thanks Bob,
I did not know of this feature. I’ll look into it.
…Tom

P.S. the cavity filter is getting closer to you…

http://www.ups.com/WebTracking/processInputRequest?loc=en_US&Requester=NES&tracknum=1Z49WW466869138830&AgreeToTermsAndConditions=yes&WT.z_eCTAid=ct1_eml_Tracking__ct1_eml_qvn_eml_resi_5shp&pMailDate=06052015