Skip to content

Instantly share code, notes, and snippets.

@mbierman
Last active April 12, 2023 16:27
Show Gist options
  • Save mbierman/ced69a41181637995f61323e7ac97cba to your computer and use it in GitHub Desktop.
Save mbierman/ced69a41181637995f61323e7ac97cba to your computer and use it in GitHub Desktop.
installation of various tools on Firewalla
#!/bin/bash
# v 1.01
# https://gist.githubusercontent.com/mbierman/ced69a41181637995f61323e7ac97cba/raw/214028a0430b5a54788ca727849aca84f0aed594/install_FWToys.sh
dir="/home/pi/.firewalla/config/post_main.d/"
app="install_sshpass.sh"
cd $dir
if [ ! -f "$dir$app" ]; then
echo -e "\n installing $app..."
curl -o $app https://gist.githubusercontent.com/mbierman/362193a8cfaf14361945c27c48692d50/raw/e1bdab24074fdb38f8243eb1c2d606317c77ec3b/install_sshpass.sh
chmod +x $dir$app && echo -e "\n$app installed."
else
echo -e "\n$app already in place."
fi
app="install_speedtest.sh"
if [ ! -f "$dir$app" ]; then
echo -e "\n installing $app"
curl -o $app https://gist.githubusercontent.com/mbierman/9ac6a35622ee5a0c631ed6f6ad74b722/raw/4d58d9de6a7eae254e5573abc3f86d370fbc8f6a/install_speedtest.sh
chmod +x $dir$app && echo -e "\n$app installed."
else
echo -e "\n$app already in place."
fi
app="install_sensors.sh"
if [ ! -f "$dir/$app" ]; then
echo -e "\n installing $app"
curl -o $app https://gist.githubusercontent.com/mbierman/bc6b9f11c82f6fd7efdafac269fb058d/raw/4b6e65e6a282d346f85f0b4b97275a1956da97c3/install%2520lm_sensors.sh
chmod +x $dir$app && echo -e "\n$app installed."
else
echo -e "\n$app already in place."
fi
app="install_iftop.sh"
if [ ! -f "$dir/$app" ]; then
echo -e "\n installing $app"
curl -o $app https://gist.githubusercontent.com/mbierman/b0267303c15e0f2ac4018f21ee107dc4/raw/7057c3d2fd87a6b5a3bb4404335c58a1ea3f7a8d/install_iftop.sh
chmod +x $dir$app && echo -e "\n$app installed."
else
echo -e "\n$app already in place."
fi
app="install_htop.sh"
if [ ! -f "$dir/$app" ]; then
echo -e "\n installing $app"
curl -o $app https://gist.githubusercontent.com/mbierman/561643e89e98137ea5f11f02a0f3ccd2/raw/9367cbd90e4c1e1112fc64cc36fd03909222291e/install_htop.sh
chmod +x $dir$app && echo -e "\n$app installed."
else
echo -e "\n$app already in place."
fi
echo -e "\n\nInstalling the apps"
for f in $dir*.sh; do
echo running $f
bash "$f"
done
@mbierman
Copy link
Author

mbierman commented Jul 30, 2022

This script will install the following on your firewalla:

These will persist even after firewalla upgrades.

Installation & Persistance

Firewalla may remove anything installed after upgrades, so you can install a script to reinstall for you after firewalla upgrades and possibly some reboots.

  1. Log in to firewalla with ssh. Then run the following:
curl -L -C- https://gist.githubusercontent.com/mbierman/ced69a41181637995f61323e7ac97cba/raw/54860215104dfbb76529548f6b71b21934064025/install_FWUtilities.sh | cat <(cat <(bash)) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment