# Tweaks

**URL:** <https://discussions.flightaware.com/t/tweaks/20339>\
**Category:** ADS-B Flight Tracking\
**Created:** [July 24, 2017, 6:49am UTC](https://discussions.flightaware.com/t/tweaks/20339 "2017-07-24T06:49:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [July 24, 2017, 7:18am UTC](https://discussions.flightaware.com/t/tweaks/20339/4 "2017-07-24T07:18:13Z")

</div>

TWEAK-3: Gain Optimization Scripts

Source thread: [Gain Adjustment…](https://discussions.flightaware.com/t/gain-adjustment/18376)

CONTRIBUTORS:  
In chronological order:  
(1) Apr 26, 2016 - Original Author: **BratJr**  
(2) Apr 28, 2016 - Enhancement by: **Lignumaqua**  
(3) Aug 21, 2016 - Adaptation for Piaware image by: **abcd567**  
(4) Oct 08, 2016 - Adaptation for dump1090-fa on Raspbian by: **abcd567**  
(4) Dec 15, 2016 - Variant for Piaware image by: **wittrup58**

Procedure:  
(1) Download the Word document pertaining to your installation from Dropbox links below.

[Optimize-Gain-Piaware-SD-Card-Image.docx](https://www.dropbox.com/s/uv5bg1ie5pwgfcy/Optimize-Gain-Piaware-SD-Card-Image.docx?dl=1)

[Optimize-Gain-dump-fa-on-Raspbian-Jessie.docx](https://www.dropbox.com/s/4bhv5q9rdu3p5bp/Optimize-Gain-dump-fa-on-Raspbian-Jessie.docx?dl=1)

[Optimize-Gain-dump-mut-on-Raspbian-Jessie.docx](https://www.dropbox.com/s/n1nwinhjg8opvww/Optimize-Gain-dump-mut-on-Raspbian-Jessie.docx?dl=1)

[Optimize-Gain-dump-Malcom-Robson-on-Raspbian-Jessie.docx](https://www.dropbox.com/s/ftq537htu1g1h09/Optimize-Gain-dump-Malcom-Robson-on-Raspbian-Jessie.docx?dl=1)

Script for Piaware sd card img by wittrup58.  
[https://raw.githubusercontent.com/wittrup/piawarebash/master/pyh/optimize-gain-piaware3.py](https://raw.githubusercontent.com/wittrup/piawarebash/master/pyh/optimize-gain-piaware3.py)

(2) Create a blank file:

```auto

sudo nano optimize-gain.py

```

(3) In the newly created blank file, copy-paste the script from relevant downloaded word file from dropbox links above.

(4) Save file Ctl+o and exit editor Ctl+x

(5) Make file executable.

```auto

sudo chmod +x optimize-gain.py

```

(6) Run the script.

```auto

sudo ./optimize-gain.py

```

(7) Go to kitchen and prepare a cup or two of coffee. You will need it during the long wait the script is running and outputs the final results. 🙂

.

---

_[View the full topic](https://discussions.flightaware.com/t/tweaks/20339)._
