This Ansible playbook is designed to rapidly set up your Raspberry Pi.
It's compatible with all models. It has been successfully tested on multiple models, including the Pi Zero W, Pi Zero 2W, and Pi 4B, among others. The playbook should work well on both Debian and Debian-based distributions.
You can choose what you want to install with tags :
- standard, std : install standard packages, configure .bashrc, .vimrc
- display : configure my display with LCD-show
- docker : install Docker
- jackit : install jackit for exploit code for Mousejack
multitor : install a proxy with multiple TOR instances with load-balancing (trimstray/multitor) → Known issues- tor : install Tor → README
- rfid : install RFID tools (libnfc, mfoc, mfcuk) and keys from MifareClassicTool → See Notes
- sdr : install SDR tools (rtl_433)
- web : install nginx and certbot
- wifi : install Wifi and GPS tools for wardriving
You will need to modify this file to configure the correct display.
Containers :
- jd2 docker container for JDownloader 2 jlesage/jdownloader-2 → See Configuration tips'
- portainer Portainer CE - a lightweight service delivery platform for containerized applications portainer/portainer-ce
- proxy Rotating Tor HTTP proxy container
To setup directly from the Pi, run the following command : Before run command you must setup your Pi with Raspberry Pi Imager.
Next run command :
curl -s https://raw.githubusercontent.com/atao/raspberrypi-setup/main/install.sh | bash -s -- all
To setup run the following command :
git clone https://github.com/atao/raspberrypi-setup.git
cd raspberrypi-setup
ansible-playbook playbook.yml -i hosts --tags all --ask-become-pass
List playbook tasks :
ansible-playbook playbook.yml -i hosts --list-tasks
Install only some tags :
curl -s https://raw.githubusercontent.com/atao/raspberrypi-setup/main/install.sh | bash -s -- standard,proxy,rfid,docker,web,jd2
ansible-lint playbook.yml
Run with option :
--syntax-check
If you test it in WSL run this command before :
sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED
sudo apt install curl
--
Inspired from geerlingguy / mac-dev-playbook and nico2che / mac-setup