Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

atao/raspberrypi-setup

Open more actions menu

Repository files navigation

Raspberry Pi Setup

YAML Lint

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.

Roles

You can choose what you want to install with tags :

You will need to modify this file to configure the correct display.

Containers :

List of all tasks :

containers : Create volume portainer_data TAGS: [containers, portainer]
containers : Create container portainer-ce        TAGS: [containers, portainer]
containers : Container jlesage/jdownloader-2      TAGS: [containers, jd2]
containers : Create rotating Tor HTTP proxy container     TAGS: [containers, proxy]
containers : Get list of containers       TAGS: [containers]
containers : Show state of Docker containers      TAGS: [containers]
docker : Verify if docker is installed    TAGS: [docker]
docker : Uninstall all conflicting packages with Docker   TAGS: [docker]
docker : Install Docker packages  TAGS: [docker]
docker : Download docker install script   TAGS: [docker]
docker : Run docker install script        TAGS: [docker]
docker : Verify docker installation       TAGS: [docker]
docker : Docker version   TAGS: [docker]
docker : Remove docker install script     TAGS: [docker]
tor : Packages installation       TAGS: [tor]
tor : Download script check_tor.py        TAGS: [tor]
rfid : Packages installation      TAGS: [rfid]
rfid : Download std.keys from MifareClassicTool   TAGS: [rfid]
rfid : Download extended-std.keys from MifareClassicTool  TAGS: [rfid]
rfid : Download mct2dmp from bm-mifare-classic    TAGS: [rfid]
rfid : Download 4B_Converter from ClassicConverter        TAGS: [rfid]
rfid : Download 7B_Converter from ClassicConverter        TAGS: [rfid]
sdr : Packages installation       TAGS: [sdr]
standard : System update/upgrade  TAGS: [standard, std]
standard : Packages installation  TAGS: [standard, std]
standard : Ensure ~/.vim/colors directory exists  TAGS: [standard, std]
standard : Download Solarized colorscheme TAGS: [standard, std]
standard : Deploy .vimrc from template    TAGS: [standard, std]
standard : Add managed aliases block to .bashrc   TAGS: [standard, std]
standard : Ensure other custom lines exist in .bashrc     TAGS: [standard, std]
web : Packages installation       TAGS: [web]
web : Check if certbot already installed  TAGS: [web]
web : Install certbot     TAGS: [web]
web : Link certbot        TAGS: [web]
wifi : Packages installation      TAGS: [wifi]

Standalone

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

Ansible

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 -K

List playbook tasks :

ansible-playbook playbook.yml -i hosts --list-tasks

Examples

Install only some tags :

curl -s https://raw.githubusercontent.com/atao/raspberrypi-setup/main/install.sh | bash -s -- standard,proxy,rfid,docker,web,jd2

Debug

Yaml lint

yamllint playbook.yml roles/

Check syntax :

--syntax-check

--

Inspired from geerlingguy / mac-dev-playbook and nico2che / mac-setup

Morty Proxy This is a proxified and sanitized view of the page, visit original site.