Giter Club home page Giter Club logo

snoopy's Introduction

Snoopy

A small script to create custom Debian image for Raspberry Pi.

WARNING

You should NOT download and execute a script as (Enoch) root without having idea what it does.

  • So, please, take a look into it and make sure it fits your environment, there is not warranty under any circunstances.

Raspberry Pi IS NOT open hardware, so, you really don't know if they come bugged.

  • Try to avoid this hardware for real implementations, there are little expensive but far better ARM out there.
  • IE: https://www.hardkernel.com/

This script was designed for Debian environment.

  • It should work on Ubuntu but I don't even tried.

Description

It creates a rpi compatible SD image and then wraps classical Debian installation strategy using debotstrap. After that, it does few tweaks into new installation to leave it ready to power on and connect through network.

I wrote this script to make my (and friends..) life easier deploying rpi. I tried to make it simple, descriptive and clear as possible so anyone can learn from it.

Usage

Once again, please, read whole usage and script before start.

  • Clone this repo.
    git clone https://github.com/basilean/snoopy.git
  • Change working directory to it.
    cd snoopy
  • Edit "OPTIONS" section to fit your needs.
    vi snoopy.sh
        DEBIAN_ARCH="armhf"
        DEBIAN_VERSION="sid"
        IMAGE_HOSTNAME="nx1701"
        IMAGE_LANG="es_AR"
        IMAGE_CODE="UTF-8"
        IMAGE_TZ="America/Argentina/Buenos_Aires"
        PARTITION_BOOT=100
        PARTITION_ROOT=2900
        INCLUDE_PACKAGES=""
  • Become root to continue,
    su - # or # sudo su -
  • Run it and wait for completation. (It takes around 10/15 minutes)
    bash snoopy.sh
  • You can open another terminal and see in details what is going on.
    tail -f debian_sid_armhf.log
  • If everything were right, you should found a list of files. (using armhf architecture and sid version)
    debian_sid_armhf.img # Image ready to be burnt into SD.
    debian_sid_armhf_key # Private RSA key for root.
    debian_sid_armhf_key.pub # Public RSA key for root
    debian_sid_armhf.log # Log of commands execution output.
  • After that, burn SD. (Don't be foul to copy and paste follow line, check that "of=/dev/mmcblk0" is right SD device and there is not partitions mounted.)
    dd if=debian_sid_armhf.img of=/dev/mmcblk0 bs=4M
  • Once you boot rpi, connect to it using ssh key.
    ssh -i debian_sid_armhf_key root@nx1701
  • As first command there, resize storage partition to use whole free space. (it will be deleted after execution to avoid mistakes and loose data)
    bash /root/resize_storage.bash

Author

Andres Basile

snoopy's People

Contributors

basilean avatar

Stargazers

 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.