Giter VIP home page Giter VIP logo

raspberry-pi-setup's Introduction

Raspberry pi guided setup

Handy setup to speed up your initial setup of the pi.

If you want a headless raspbian

  • Add an empty ssh file to /boot if you want to activate ssh (in Win make sure you remove the extension).
  • If you are not connected by lan you can activate also the wifi

Now login to your default pi user: pi:raspberry and answer the questions as you like!

wget https://raw.githubusercontent.com/GonzaloTorreras/raspberry-pi-setup/master/src/installer.sh && chmod +x installer.sh && ./installer.sh

It helps you to:

  • Update the system: apt update && upgrade -y
  • User related
    • Add a new user
    • Add new user to sudo group
    • Add new user to sudoers to avoid passwd promp
    • Handful aliases
      • To the current user
      • To the $newUser
    • Change default pi password
    • Lock pi user
    • Lock root user
    • Add new user as alias for root root: $newUser, root \n $newUser: [email protected] >> /etc/aliases
    • Delete pi (not yet, having issues if running through pi user)
  • Install UFW
    • Block any incoming
    • Allow any outgoing
    • Allow any from local (192.168.1.0/24)
    • Activate UFW
  • Install docker (latest)
  • Add current user ($USER) to docker group
  • Add NEW user ($newUser) to docker group
  • Install docker-compose (latest)
  • Install a *speed fan controller (PWM)

ALL the above tasks will be asked one by one BEFORE doing any change [y/n]

Note:

You can run it at any point of your setup, or with any user. Recomended to do it with pi user, or a passwordless sudo acces user.

To do

  • Improve/expand aliases (maybe split by categories to decide what install such docker related)

Docker image installers

  • Nginx (with certbot for LetsEncript).
  • Node-RED
  • Pi Hole
  • MySQL (MariaDB)
  • Traefik
  • NextCloud
  • Pi Hole
  • OpenVPN || piVPN
  • RaspberryCast

Possible ideas:

  • Localice the installer for translations
  • Maybe provide common services such MySQL (mariaDB), nginx, nodeRED etc as standalone installations instead all docker based? (at least the posibility to)

raspberry-pi-setup's People

Contributors

gonzalotorreras avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.