Skip to content

Installation

Jessica Brown edited this page May 4, 2022 · 8 revisions

Description

This will check and install the following packages if not already installed:

  • jq - jq is a lightweight and flexible command-line JSON processor.
  • git - Git is a free and open source distributed version control system
  • curl - A client-side URL transfer library
  • wget - A free software package for retrieving files using HTTP, HTTPS and FTP
  • zip - Zip is a compression and file packaging utility
  • 7zip - With the specialized 7z archive format, the 7-Zip archives high speed and high compression rate for even the big files.
  • rar - Another compression utility
  • gzip - Another great compression utility

as well as the EB3 system. The installation location will default to the ~/.local/bin/

To install

git clone https://github.com/girls-whocode/eb3.git
cd eb3
./install.sh # sudo will be required to install the dependancy files and update the package list
# close and reopen terminal

Line by line walk through

# Start a timer to evaluate for total time to install
eb3_install_start_time=$(date +%s.%3N)
# Get the currently location of this script
scriptLocation="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export scriptLocation
# Make folders and test for files before we begin
# This example if NOT directory (current working directory)/var/logs exist, then create it
[ ! -d "${scriptLocation}/var/logs" ] && mkdir -p "${scriptLocation}/var/logs"

# Source these files if they exists, else show error ** TODO, Die to error
[ -f "${scriptLocation}/etc/conf/collector.shlib" ] && source "${scriptLocation}/etc/conf/collector.shlib" || echo "Error loading ${scriptLocation}/etc/conf/collector.shlib"
[ -f "${scriptLocation}/etc/setdirectories" ] && source "${scriptLocation}/etc/setdirectories" || echo "Error loading ${scriptLocation}/etc/setdirectories"
[ -f "${eb3_BinPath}logprocess" ] && source "${eb3_BinPath}logprocess" || echo "Error loading ${eb3_BinPath}logprocess"
[ ! -f "${eb3_LogsPath}install.log" ] && touch "${eb3_LogsPath}install.log"
Clone this wiki locally