Skip to content

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

License

Notifications You must be signed in to change notification settings

PHuhn/RaspberryPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages