PHuhn / RaspberryPI

Raspberry PI bash scripts for Raspian, Nagios & Snort installation/configuration and other supporting scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry PI

Overview

This repository contains scripts to configure Raspian and Snort project as follows:

  • Raspain - one bash scripts for installing and configuring.
    1. RaspianConfig.sh
    2. Python3_x.sh

At the time of creation, RaspianConfig.sh script was designed be executed without any paramenters. I tried to make the scripts, also work as versions change, so I allowed passing parameters.

Raspian Configuration

RaspianConfig.sh

Configuration as follows:

  • change password
  • set timezone
  • configure bluetooth serial connection
  • set keyboard locale
  • update the Raspian O/S
  • setup serial bluetooth
$ wget https://raw.githubusercontent.com/PHuhn/RaspberryPI/master/RaspianConfig.sh
$ chmod 755 RaspianConfig.sh
$ ./RaspianConfig.sh -h
  Usage: ./RaspianConfig.sh [options]

  -h    this help text.
  -c    country code,  default value: US
  -t    timezone code, default value: michigan
  -s    serial bluetooth, default value: false

  Example:  ./RaspianConfig.sh -c canada -t eastern

$ ./RaspianConfig.sh -s true

Python 3.x Installation

Download and install updated version of python. Including:

  • pip
  • gpio
  • pyodbc

This will NOT install a python version that is already installed. To overwrite use the force option. If you do not want general purpose I/O (GPIO) use the false GPIO option. If you do want ODBC use the true ODBC option.

Python3_x.sh

$ wget https://raw.githubusercontent.com/PHuhn/RaspberryPI/master/Python3_x.sh
$ chmod 755 Python3_x.sh
$ ./Python3_x.sh -h
  Usage: ./Python3_x.sh [options]

  -h    this help text.
  -p    python version, default value: 3.7.2
  -f    force python,   default value: false
  -l    link python3,   default value: false
  -g    install GPIO,   default value: true
  -o    install ODBC,   default value: false

  Example:  ./Python3_x.sh -p 3.8.0a2 -o true -l true

$ ./Python3_x.sh

Good luck, Phil

About

Raspberry PI bash scripts for Raspian, Nagios & Snort installation/configuration and other supporting scripts

License:MIT License


Languages

Language:Shell 100.0%