Skip to content

Instantly share code, notes, and snippets.

@BetaStacks
Last active December 17, 2017 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetaStacks/b1385128ae4b86d0d51c3700c4c08a24 to your computer and use it in GitHub Desktop.
Save BetaStacks/b1385128ae4b86d0d51c3700c4c08a24 to your computer and use it in GitHub Desktop.
This script will walk you through installing everything you need to jumpstart your Raspbian projects.

Welcome

Greetings,

piNomite aims to provide you with all the tools and resources you need to jumpstart your Raspberry Pi projects. Please let me know if you have any feature request or discover any bugs.

Cheers,

  Brandon

Development

This software is currently in develpment. To view and comment on my testing notes visit the Google Sheet.

Usage

  • must be run as root user.
  • sudo su
  • bash <(curl pinomite.ml)

Future Features Include

Communications
Network Utility
Utility
Security
GUI
Audio & Video
  • Picture Farme
    • NOTE:Chromium Kiosk
  • Kodi Add-ons and Sources
    • Covenant
    • subtitles
  • Chromium Kiosk Mode
  • Plex server
  • Plex Client
  • Mixxx
  • Mixxx-data
  • FreqTweak
  • Bluetooth Speakers
Voice Interface
  • MAIA (My Artificial Inteligence Assistant)
  • Alexa Voice Services
  • Google Assistant

Servers

  • Piwik Analytics
  • Google Analytics  
  • Node.js
  • Web Sockets
  • LetsEncrypt
  • OpenSSL
  • Vanilla Forum

Resources  

ASCII Art Generator

DNS

This file it to show the current menu options availble in piNomite. note: This does not include prompt options avaible once a menu item is selected

  • Help
  • Index
  • Audio & Video
    • Help
    • Main Menu
    • ALSA Loopbacks
      • Help
      • Main Menu
      • Enable Loopbacks
    • Kodi
      • Help
      • Main Menu
      • Install
      • Configure
  • Broadcasting
    • Help
    • Main Menu
    • Icecast2
    • Ezstream
      • Help
      • Main Menu
      • Install
      • Configure
      • Sample Files
      • Broadcasting Menu
    • DarkIce
      • Help
      • Main Menu
      • Install DarkIce
      • Install DarkSnow
      • Configure DarkIce
  • Communications
    • Help
    • Main Menu
    • Mumble
      • Help
      • Main Menu
      • Mumble Client
      • Mumble Server
    • Thunderbird
  • GUI
    • Help
    • Main Menu
    • Install xServer
    • Install PIXEL
    • Text Editors Note: Will Likely be relocated
      • Help
      • Main Menu
      • Leafpad
      • Gedit
      • Geany
      • GUI Menu
    • Web Browsers Note: Will Likely be relocated
  • Network Utility
    • Help
    • Main Menu
    • Static IP
      • Help
      • Main Manu
      • eth0
      • wlan0
      • Other
  • Security
    • Help
    • Main Menu
    • Passwords
      • Help
      • Main Menu
      • Pi
      • Root
      • Other
  • Servers
    • Help
    • Main Menu
    • Apache2
    • PHP7.0
    • MySQL
      • Help
      • Main Menu
      • Install
      • New User
      • New Database
      • Grant Access
    • phpMyAdmin
    • Wordpress
      • Help
      • Main Menu
      • Back to LAMP Menu
      • Install
      • Launch Chromium
      • MySQL - New User
      • MySQL - New Database
      • MySQL - Grant Privileges
    • NextCloud
      • Help
      • Main Menu
      • Install
      • MySQL - New User
      • MySQL - New Database
      • MySQL - Grant Privileges
  • Utility
    • Help
    • Main Menu
    • DiskPart
    • Open Office
    • Stretch Sources
    • Transmission
      • Help
      • Main Menu
      • Transmission
      • Transmission Daemon
      • Configure Daemon
    • Update
    • Upgrade
  • Exit
#!/usr/bin/env bash
if [ "$(whoami)" != "root" ];
then
echo "Run script as ROOT please. (sudo !!)"
exit
fi
echo "3"
sleep 1
echo "2"
sleep 1
echo "1"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Audio & Video Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_AUDIO_VIDEO"
fi
echo "
HELP DOCUMENTATION COMING SOON"
eval "$_COUNTDOWN"
eval "$_MENU_AUDIO_VIDEO"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Broadcasting Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_BROADCASTING"
fi
echo "
HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Communications Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_COMMUNICATIONS"
fi
echo "
HELP DOCUMENTATION COMING SOON"
eval "$_COUNTDOWN"
eval "$_MENU_COMMUNICATIONS"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - GUI Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_COUNTDOWN"
eval "$_GUI"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Kodi Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_KODI"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Loopback Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_LOOPBACK"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Mumble Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MUMBLE"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Network Utility Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_NETWORK_UTILITY"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Nextcloud Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_SERVERS_NEXTCLOUD"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Passwords Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_PASSWORDSeval "$
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Preinstall Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_PREINSTALL"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Security Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_SECURITY"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Wordpress Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_SERVERS_WORDPRESS"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Servers Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_SERVERS"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Static IP Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_STATIC_IP"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Transmission Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_TRANSMISSION"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Utility Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_MENU_HELP_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MENU_UTILITY"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env bash
echo "
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help Menu |
| m - Main Menu |
| 1 - Wordpess Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_MENU_RETURN"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_SERVERS_WORDPRESS"
fi
echo "HELP DOCUMENTATION COMING SOON"
#!/usr/bin/env $=bash
###This file will be used by other files than the _install.sh) once I can figure out how to set a relative path so it. Currently I would have to define a url in every script. I would like to avoid this so that self hosting is easier.
HOST_URL="https://pinomite.ml/"
###Define Script Pages
_BROADCASTING_DARKICE=$(curl -s -k ${HOST_URL}broadcasting-darkice.sh)
_BROADCASTING_EZSTREAM=$(curl -s -k ${HOST_URL}broadcasting-ezstream.sh)
_BROADCASTING_ICECAST2=$(curl -s -k ${HOST_URL}broadcasting-icecast2.sh)
_CHECK_ROOT=$(curl -s -k ${HOST_URL}_check-root.sh)
_COMMUNICATIONS_THUNDERBIRD=$(curl -s -k ${HOST_URL}communications-thunderbird.sh)
_COUNTDOWN=$(curl -s -k ${HOST_URL}_countdown.sh)
_GUI=$(curl -s -k ${HOST_URL}gui.sh)
_GUI_BROWSERS=$(curl -s -k ${HOST_URL}gui-browsers.sh)
_GUI_EDITORS=$(curl -s -k ${HOST_URL}gui-editors.sh)
_INSTALL=$(curl -s -k ${HOST_URL}_install.sh)
_KODI=$(curl -s -k ${HOST_URL}kodi.sh)
_SERVERS_APACHE2=$(curl -s -k ${HOST_URL}servers-apache2.sh)
_SERVERS_MYSQL_GRANT_PRIVILEGES=$(curl -s -k ${HOST_URL}servers-mysql-grant-privileges.sh)
_SERVERS_MYSQL_INSTALL=$(curl -s -k ${HOST_URL}servers-mysql-install.sh)
_SERVERS_MYSQL_NEW_DATABASE=$(curl -s -k ${HOST_URL}servers-mysql-new-database.sh)
_SERVERS_MYSQL_NEW_USER=$(curl -s -k ${HOST_URL}servers-mysql-new-user.sh)
_SERVERS_MONGODB=$(curl -s -k ${HOST_URL}servers-mongodb.sh)
_SERVERS_PHP=$(curl -s -k ${HOST_URL}servers-php.sh)
_SERVERS_PHPMYADMIN=$(curl -s -k ${HOST_URL}servers-phpmyadmin.sh)
_SERVERS_WORDPRESS=$(curl -s -k ${HOST_URL}servers-wordpress.sh)
_LOOPBACK=$(curl -s -k ${HOST_URL}loopback.sh)
_MUMBLE=$(curl -s -k ${HOST_URL}mumble.sh)
_PASSWORDS=$(curl -s -k ${HOST_URL}passwords.sh)
_PREINSTALL=$(curl -s -k ${HOST_URL}preinstall.sh)
_REBOOT=$(curl -s -k ${HOST_URL}reboot.sh)
_SERVERS_NEXTCLOUD=$(curl -s -k ${HOST_URL}servers-nextcloud.sh)
_STATIC_IP=$(curl -s -k ${HOST_URL}static-ip.sh)
_TRANSMISSION=$(curl -s -k ${HOST_URL}transmission.sh)
_UTILITY_GPARTED=$(curl -s -k ${HOST_URL}utility-gparted.sh)
_UTILITY_LIBREOFFICE=$(curl -s -k ${HOST_URL}utility-libreoffice.sh)
_UTILITY_STRETCH_SOURCES=$(curl -s -k ${HOST_URL}utility-stretch-sources.sh)
_UTILITY_UPDATE=$(curl -s -k ${HOST_URL}utility-update.sh)
_UTILITY_UPGRADE=$(curl -s -k ${HOST_URL}utility-upgrade.sh)
###Menu Files
_MENU_AUDIO_VIDEO=$(curl -s -k ${HOST_URL}_menu-audio-video.sh)
_MENU_BROADCASTING=$(curl -s -k ${HOST_URL}_menu-broadcasting.sh)
_MENU_COMMUNICATIONS=$(curl -s -k ${HOST_URL}_menu-communications.sh)
_MENU_GUI=$(curl -s -k ${HOST_URL}gui.sh)
_MENU_HELP=$(curl -s -k ${HOST_URL}_menu_help.sh)
_MENU_HELP_RETURN=$(curl -s -k ${HOST_URL}_menu-help-return.sh)
_MENU_INDEX=$(curl -s -k ${HOST_URL}_menu-index.sh)
_MENU_MAIN=$(curl -s -k ${HOST_URL}_menu-main.sh)
_MENU_MAIN_RETURN=$(curl -s -k ${HOST_URL}_menu-main-return.sh)
_MENU_NETWORK_UTILITY=$(curl -s -k ${HOST_URL}_menu-network-utility.sh)
_MENU_SECURITY=$(curl -s -k ${HOST_URL}_menu-security.sh)
_MENU_SERVERS=$(curl -s -k ${HOST_URL}_menu-servers.sh)
_MENU_SERVERS_MYSQL=$(curl -s -k ${HOST_URL}_menu-servers-mysql.sh)
_MENU_MYSQL=$(curl -s -k ${HOST_URL}_menu-servers-mysql.sh)
_MENU_NETWORK_UTILITY=$(curl -s -k ${HOST_URL}_menu-network-utility.sh)
_MENU_SECURITY=$(curl -s -k ${HOST_URL}_menu-security.sh)
_MENU_SERVERS=$(curl -s -k ${HOST_URL}_menu-servers.sh)
_MENU_UTILITY=$(curl -s -k ${HOST_URL}_menu-utility.sh)
###Help Docs
_HELP_AUDIO_VIDEO=$(curl -s -k ${HOST_URL}_help-audio-video.sh)
_HELP_BROADCASTING=$(curl -s -k ${HOST_URL}_help-broadcasting.sh)
_HELP_COMMUNICATIONS=$(curl -s -k ${HOST_URL}_help-communications.sh)
_HELP_GUI=$(curl -s -k ${HOST_URL}_help-gui.sh)
_HELP_KODI=$(curl -s -k ${HOST_URL}_help-kodi.sh)
_HELP_SERVERS=$(curl -s -k ${HOST_URL}_help-servers.sh)
_HELP_SERVERS_WORDPRESS=$(curl -s -k ${HOST_URL}_help-servers-wordpress.sh)
_HELP_LOOPBACK=$(curl -s -k ${HOST_URL}_help-loopback.sh)
_HELP_MUMBLE=$(curl -s -k ${HOST_URL}_help-mumble.sh)
_HELP_NETWORK_UTILITY=$(curl -s -k ${HOST_URL}_help-network-utility.sh)
_HELP_NEXTCLOUD=$(curl -s -k ${HOST_URL}_help-nextcloud.sh)
_HELP_PASSWORDS=$(curl -s -k ${HOST_URL}_help-passwords.sh)
_HELP_PREINSTALL=$(curl -s -k ${HOST_URL}_help-preinstall.sh)
_HELP_SECURITY=$(curl -s -k ${HOST_URL}_help-security.sh)
_HELP_SERVERS=$(curl -s -k ${HOST_URL}_help-servers.sh)
_HELP_STATIC_IP=$(curl -s -k ${HOST_URL}_help-static-ip.sh)
_HELP_TRANSMISSION=$(curl -s -k ${HOST_URL}_help-transmission.sh)
_HELP_UTILITY=$(curl -s -k ${HOST_URL}_help-utility.sh)
###Define Script Pages
export _CHECK_ROOT
export _COMMUNICATIONS_THUNDERBIRD
export _COUNTDOWN
export _GUI
export _GUI_BROWSERS
export _GUI_EDITOR
export _INSTALL
export _KODI
export _SERVERS_APACHE2
export _SERVERS_MYSQL_GRANT_PRIVILEGES
export _SERVERS_MYSQL_INSTALL
export _SERVERS_MYSQL_NEW_DATABASE
export _SERVERS_MYSQL_NEW_USER
export _SERVERS_MONGODB
export _SERVERS_PHP
export _SERVERS_PHPMYADMIN
export _SERVERS_WORDPRESS
export _LOOPBACK
export _MUMBLE
export _PASSWORDS
export _PREINSTALL
export _REBOOT
export _SERVERS_NEXTCLOUD
export _STATIC_IP
export _BROADCASTING_DARKICE
export _BROADCASTING_EZBROADCASTING
export _BROADCASTING_ICECAST2
export _TRANSMISSION
export _UTILITY_GPARTED
export _UTILITY_LIBREOFFICE
export _UTILITY_STRETCH_SOURCES
export _UTILITY_UPDATE
export _UTILITY_UPGRADE
###Menu Files
export _MENU_AUDIO_VIDEO
export _MENU_BROADCASTING
export _MENU_COMMUNICATIONS
export _MENU_HELP
export _MENU_HELP_RETURN
export _MENU_INDEX
export _MENU_MAIN
export _MENU_MAIN_RETURN
export _MENU_SECURITY
export _MENU_SERVERS
export _MENU_SERVERS_MYSQL
export _MENU_MYSQL
export _MENU_NETWORK_UTILITY
export _MENU_SECURITY
export _MENU_SERVERS
export _MENU_UTILITY
###Help Docs
export _HELP_AUDIO_VIDEO
export _HELP_BROADCASTING
export _HELP_GUI
export _HELP_KODI
export _HELP_SECURITY
export _HELP_SERVERS
export _HELP_SERVERS_WORDPRESS
export _HELP_LOOPBACK
export _HELP_MUMBLE
export _HELP_NETWORK_UTILITY
export _HELP_NEXTCLOUD
export _HELP_PASSWORDS
export _HELP_PREINSTALL
export _HELP_SECURITY
export _HELP_SERVERS
export _HELP_STATIC_IP
export _HELP_TRANSMISSION
export _HELP_UTILITY
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██████╗
██╔══██╗██║ ██╔══██╗██╔══██╗██╔══██╗██║██╔═══██╗
██████╔╝██║ ██████╔╝███████║██║ ██║██║██║ ██║
██╔═══╝ ██║ ██╔══██╗██╔══██║██║ ██║██║██║ ██║
██║ ██║ ██║ ██║██║ ██║██████╔╝██║╚██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - ALSA Loopbacks |
| 2 - Kodi |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_HELP_AUDIO_VIDEO"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_LOOPBACK"
fi
if [ "$prompt" = "2" ]
then
eval "$_KODI"
fi
#!/usr/bin/env bash
echo "
███████╗████████╗██████╗ ███████╗ █████╗ ███╗ ███╗
██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔══██╗████╗ ████║
███████╗ ██║ ██████╔╝█████╗ ███████║██╔████╔██║
╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══██║██║╚██╔╝██║
███████║ ██║ ██║ ██║███████╗██║ ██║██║ ╚═╝ ██║
╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - DarkIce |
| 2 - Ezstream |
| 3 - IceCast2 |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_BROADCASTING"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_BROADCASTING_DARKICE"
fi
if [ "$prompt" = "2" ]
then
eval "$_BROADCASTING_EZSTREAM"
fi
if [ "$prompt" = "3" ]
then
eval "$_BROADCASTING_ICECAST2"
fi
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██████╗
██╔══██╗██║ ██╔══██╗██╔══██╗██╔══██╗██║██╔═══██╗
██████╔╝██║ ██████╔╝███████║██║ ██║██║██║ ██║
██╔═══╝ ██║ ██╔══██╗██╔══██║██║ ██║██║██║ ██║
██║ ██║ ██║ ██║██║ ██║██████╔╝██║╚██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
#Communications Menu
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Mumble |
| 2 - Thunderbird |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_HELP_COMMUNICATIONS"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_MUMBLE"
fi
if [ "$prompt" = "2" ]
then
eval "$_COMMUNICATIONS_THUNDERBIRD"
echo "
Returning to the Communications Menu
"
eval "$_COUNTDOWN"
eval "$_MENU_COMMUNICATIONS"
fi
#!/usr/bin/env bash
eval "$_MENU_HELP"
#!/usr/bin/env bash
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
|~~~~~~~~~~~~~~~~~~~~~~|
NOTE: The Index Menu will be coming soon.
"
echo "Retuning to the Main Menu"
eval "$_COUNTDOWN"
eval"$_MENU_MAIN"
#!/usr/bin/env bash
eval "$_MENU_MAIN"
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██████╗
██╔══██╗██║ ██╔══██╗██╔══██╗██╔══██╗██║██╔═══██╗
██████╔╝██║ ██████╔╝███████║██║ ██║██║██║ ██║
██╔═══╝ ██║ ██╔══██╗██╔══██║██║ ██║██║██║ ██║
██║ ██║ ██║ ██║██║ ██║██████╔╝██║╚██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| i - Index |
| 1 - Audio & Video |
| 2 - Broadcasting |
| 3 - Communications |
| 4 - GUI |
| 5 - Network Utility |
| 6 - Security |
| 7 - Servers |
| 8 - Utility |
| q - Exit |
|~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'i' ]] && [[ $prompt != 'q' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != '4' ]] && [[ $prompt != '5' ]] && [[ $prompt != '6' ]] && [[ $prompt != '7' ]] && [[ $prompt != '8' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_MENU_HELP"
fi
if [ "$prompt" = "i" ];
then
eval "$_MENU_INDEX"
fi
if [ "$prompt" = "q" ];
then
exit
fi
if [ "$prompt" = "1" ];
then
eval "$_MENU_AUDIO_VIDEO"
fi
if [ "$prompt" = "2" ];
then
eval "$_MENU_BROADCASTING"
fi
if [ "$prompt" = "3" ];
then
eval "$_MENU_COMMUNICATIONS"
fi
if [ "$prompt" = "4" ];
then
eval "$_MENU_GUI"
fi
if [ "$prompt" = "5" ];
then
eval "$_MENU_NETWORK_UTILITY"
fi
if [ "$prompt" = "6" ];
then
eval "$_MENU_SECURITY"
fi
if [ "$prompt" = "7" ];
then
eval "$_MENU_SERVERS"
fi
if [ "$prompt" = "8" ];
then
eval "$_MENU_UTILITY"
fi
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██████╗
██╔══██╗██║ ██╔══██╗██╔══██╗██╔══██╗██║██╔═══██╗
██████╔╝██║ ██████╔╝███████║██║ ██║██║██║ ██║
██╔═══╝ ██║ ██╔══██╗██╔══██║██║ ██║██║██║ ██║
██║ ██║ ██║ ██║██║ ██║██████╔╝██║╚██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Static IP |
|~~~~~~~~~~~~~~~~~~~~~~|"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_HELP_NETWORK_UTILITY"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_STATIC_IP"
fi
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██████╗
██╔══██╗██║ ██╔══██╗██╔══██╗██╔══██╗██║██╔═══██╗
██████╔╝██║ ██████╔╝███████║██║ ██║██║██║ ██║
██╔═══╝ ██║ ██╔══██╗██╔══██║██║ ██║██║██║ ██║
██║ ██║ ██║ ██║██║ ██║██████╔╝██║╚██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Passwords |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_HELP_SECURITY"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_PASSWORDS"
fi
#!/usr/bin/env bash
# MySQL
echo "
███╗ ███╗██╗ ██╗███████╗ ██████╗ ██╗
████╗ ████║╚██╗ ██╔╝██╔════╝██╔═══██╗██║
██╔████╔██║ ╚████╔╝ ███████╗██║ ██║██║
██║╚██╔╝██║ ╚██╔╝ ╚════██║██║▄▄ ██║██║
██║ ╚═╝ ██║ ██║ ███████║╚██████╔╝███████╗
╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚══▀▀═╝ ╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Install |
| 2 - New User |
| 3 - New Database |
| 4 - Grant Access |
| b - Servers Menu |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != '4' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_SERVERS"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_SERVERS_MYSQL_INSTALL"
sleep 2
echo "Returning to the MySQL Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS_MYSQL"
fi
if [ "$prompt" = "2" ]
then
eval "$_SERVERS_MYSQL_NEW_USER"
sleep 2
echo "
Returning to the MySQL Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS_MYSQL"
fi
if [ "$prompt" = "3" ]
then
eval "$_SERVERS_MYSQL_NEW_DATABASE"
sleep 2
echo "
Returning to the MySQL Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS_MYSQL"
fi
if [ "$prompt" = "4" ]
then
eval "$_SERVERS_MYSQL_GRANT_PRIVILEGES"
sleep 2
echo "
Returning to the MySQL Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS_MYSQL"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_SERVERS"
fi
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██████╗
██╔══██╗██║ ██╔══██╗██╔══██╗██╔══██╗██║██╔═══██╗
██████╔╝██║ ██████╔╝███████║██║ ██║██║██║ ██║
██╔═══╝ ██║ ██╔══██╗██╔══██║██║ ██║██║██║ ██║
██║ ██║ ██║ ██║██║ ██║██████╔╝██║╚██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Apache2 |
| 2 - PHP7.0 |
| 3 - MySQL |
| 4 - PHPMyAdmin |
| 5 - Wordpress |
| 6 - NextCloud |
| 7 - Install AMPP |
| 8 - MongoDB |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != '4' ]] && [[ $prompt != '5' ]] && [[ $prompt != '6' ]] && [[ $prompt != '7' ]] && [[ $prompt != '8' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_HELP_SERVERS"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_SERVERS_APACHE2"
echo "
Returning to Servers Menu
"
sleep 2
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS"
fi
if [ "$prompt" = "2" ]
then
eval "$_SERVERS_PHP"
echo "
Returning to Servers Menu
"
sleep 2
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS"
fi
if [ "$prompt" = "3" ]
then
eval "$_MENU_SERVERS_MYSQL"
echo "
Returning to Servers Menu
"
sleep 2
eval "$_COUNTDOWN"
eval $_MENU_SERVERS"
fi
if [ "$prompt" = "4" ]
then
eval "$_SERVERS_PHPMYADMIN"
echo "
Returning to Servers Menu
"
sleep 2
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS"
fi
if [ "$prompt" = "5" ]
then
eval "$_SERVERS_WORDPRESS"
sleep 2
echo "
Returning to the Wordpress Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_WORDPRESS"
fi
if [ "$prompt" = "6" ]
then
eval "$_SERVERS_NEXTCLOUD"
echo "Returning to the Nextcloud Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_NEXTCLOUD"
fi
if [ "$prompt" = "7" ]
then
eval "$_UTILITY_STRETCH_SOURCES"
eval "$_UTILITY_UPDATE"
eval "$_UTILITY_UPGRADE"
eval "$_SERVERS_APACHE2"
eval "$_SERVERS_PHP"
eval "$_SERVERS_MYSQL_INSTALL"
eval "$_SERVERS_MYSQL_NEW_USER"
eval "$_SERVERS_MYSQL_NEW_DATABASE"
eval "$_SERVERS_MYSQL_GRANT_PRIVILEGES"
eval "$_SERVERS_PHPMYADMIN"
sleep 2
echo "
Returning to the Servers Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS"
fi
if [ "$prompt" = "8" ]
then
eval "$_SERVERS_MONGODB"
echo "
Returning to Servers Menu
"
sleep 2
eval "$_COUNTDOWN"
eval "$_MENU_SERVERS"
fi
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██████╗
██╔══██╗██║ ██╔══██╗██╔══██╗██╔══██╗██║██╔═══██╗
██████╔╝██║ ██████╔╝███████║██║ ██║██║██║ ██║
██╔═══╝ ██║ ██╔══██╗██╔══██║██║ ██║██║██║ ██║
██║ ██║ ██║ ██║██║ ██║██████╔╝██║╚██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Gparted |
| 2 - LibreOffice |
| 3 - Stretch Sources |
| 4 - Transmission |
| 5 - Update |
| 6 - Upgrade |
|~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != '4' ]] && [[ $prompt != '5' ]] && [[ $prompt != '6' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_HELP_UTILITY"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
eval "$_UTILITY_GPARTED"
echo "
"
sleep 2
eval "$_MENU_UTILITY"
fi
if [ "$prompt" = "2" ]
then
eval "$_UTILITY_LIBREOFFICE"
echo "
"
sleep 2
echo "
Returning to the Utility Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_UTILITY"
fi
if [ "$prompt" = "3" ]
then
eval "$_UTILITY_STRETCH_SOURCES"
echo "
"
sleep 2
echo "
Returning to the Utility Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_UTILITY"
fi
if [ "$prompt" = "4" ]
then
eval "$_TRANSMISSION"
echo "
"
sleep 2
echo "
Returning to the Utility Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_UTILITY"
fi
if [ "$prompt" = "5" ]
then
eval "$_UTILITY_UPDATE"
echo "
"
sleep 2
echo "
Returning to the Utility Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_UTILITY"
fi
if [ "$prompt" = "6" ]
then
eval "$_UTILITY_UPGRADE"
echo "
"
sleep 2
echo "
Returning to the Utility Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_UTILITY"
fi
#!/usr/bin/env bash
echo "
Help Documentation coming soon
"
echo "
Returning to the Main Menu in:
"
eval "$_COUNTDOWN"
eval "$_MENU_MAIN"
#!/usr/bin/env bash
echo "
The Index Menu is coming soon!
"
eval "$_MENU_MAIN_RETURN"
#!/usr/bin/env bash
echo "
██████╗ █████╗ ██████╗ ██╗ ██╗██╗ ██████╗███████╗
██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██║██╔════╝██╔════╝
██║ ██║███████║██████╔╝█████╔╝ ██║██║ █████╗
██║ ██║██╔══██║██╔══██╗██╔═██╗ ██║██║ ██╔══╝
██████╔╝██║ ██║██║ ██║██║ ██╗██║╚██████╗███████╗
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝╚══════╝
██╗
██║
████████╗
██╔═██╔═╝
██████║
╚═════╝
██████╗ █████╗ ██████╗ ██╗ ██╗███████╗███╗ ██╗ ██████╗ ██╗ ██╗
██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██╔════╝████╗ ██║██╔═══██╗██║ ██║
██║ ██║███████║██████╔╝█████╔╝ ███████╗██╔██╗ ██║██║ ██║██║ █╗ ██║
██║ ██║██╔══██║██╔══██╗██╔═██╗ ╚════██║██║╚██╗██║██║ ██║██║███╗██║
██████╔╝██║ ██║██║ ██║██║ ██╗███████║██║ ╚████║╚██████╔╝╚███╔███╔╝
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚══╝╚══╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Install DarkIce |
| 2 - Install DarkSnow |
| 3 - Configure DarkIce |
| b - Broadcasting Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ];
then
eval "$_HELP_BROADCASTING"
fi
if [ "$prompt" = "m" ];
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "b" ];
then
eval "$_MENU_BROADCASTING"
fi
if [ "$prompt" = "1" ];
then
read -p "
Do you want to install Darkice? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install darkice -y
touch /etc/darkice.cfg
fi
echo "
Returning to the Darkice Menu in:"
eval "$_COUNTDOWN"
eval "$_BROADCASTING_DARKICE"
fi
if [ "$prompt" = "2" ];
then
read -p "
Do you want to install DarkSnow? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install darksnow -y
fi
echo "
Returning to the Darkice Menu in:"
eval "$_COUNTDOWN"
eval "$_BROADCASTING_DARKICE"
fi
if [ "$prompt" = "3" ];
then
read -p "
Do you want to configure Darkice? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
Is your stream input is mono or stereo? <m/s>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_CHANELLS_I
if [ "STREAM_CHANELLS_I" = "m" ];
then
STREAM_CHANELLS_O="1"
else
STREAM_CHANELLS_O="2"
fi
echo "
Enter a number between 0.1 and 1 to set the quality, followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_QUALITY
echo "
Enter the Source Password to your IceCast2 server, followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read ICECAST_SOURCE_PASS
echo "
Enter the mount point to be used for your stream, followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read MOUNT_POINT
echo "
Enter a name for your stream, followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_NAME
echo "
Enter a description for your stream, followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_DESCRIPTION
echo "
Enter the url related to your stream. (i.e. http://127.0.0.1), followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_URL
echo "
Enter the genre of your stream, followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_GENRE
echo "
Would you like your stream to be publicly listed no/yes, followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_PUBLIC
echo "
Please enter a location and file name for your recordins to be dumped. (i.e. /home/pi/Desktop/stream_recording.mp3), followed by [ENTER];
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read STREAM_LOCALDUMP
echo "# see the darkice.cfg man page for details
# this section describes general aspects of the live streaming session
[general];
duration = 0 # duration of encoding, in seconds. 0 means forever
bufferSecs = 1 # size of internal slip buffer, in seconds
reconnect = yes # reconnect to the server(s) if disconnected
# this section describes the audio input that will be streamed
[input];
device = hw:0,0 # Alsa soundcard device for the audio input
sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample = 16 # bits per sample. try 16
channel = $STREAM_CHANELLS # channels. 1 = mono, 2 = stereo
# this section describes a streaming connection to an IceCast2 server
# there may be up to 8 of these sections, named [icecast2-0]; ... [icecast2-7];
# these can be mixed with [icecast-x]; and [shoutcast-x]; sections
[icecast2-0];
bitrateMode = vbr # variable bit rate
format = mp3 # format of the stream: mp3
quality = $STREAM_QUALITY # quality of the stream sent to the server
server = localhost # host name of the server
port = 8000 # port of the IceCast2 server, usually 8000
password = $ICECAST_SOURCE_PASS # source password to the IceCast2 server
mountPoint = $MOUNT_POINT # mount point of this stream on the IceCast2 server
name = $STREAM_NAME # name of the stream
description = $STREAM_DESCRIPTION # description of the stream
url = $STREAM_URL URL related to the stream
genre = $STREAM_GENRE # genre of the stream
public = $STREAM_PUBLIC # advertise this stream?
localDumpFile = $STREAM_LOCALDUMP # Record also to a file" | sudo tee -a /etc/darkice.cfg
echo "darkice" | sudo tee -a /etc/init.d/piRadioBoot.sh
fi
fi
echo "
Returning to the Darkice Menu in:"
eval "$_COUNTDOWN"
eval "$_BROADCASTING_DARKICE"
fi
if [ "$prompt" = "b" ];
then
eval "$_MENU_BROADCASTING"
fi
#!/usr/bin/env bash
# Ezstream
echo "
███████╗███████╗███████╗████████╗██████╗ ███████╗ █████╗ ███╗ ███╗
██╔════╝╚══███╔╝██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔══██╗████╗ ████║
█████╗ ███╔╝ ███████╗ ██║ ██████╔╝█████╗ ███████║██╔████╔██║
██╔══╝ ███╔╝ ╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══██║██║╚██╔╝██║
███████╗███████╗███████║ ██║ ██║ ██║███████╗██║ ██║██║ ╚═╝ ██║
╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Install |
| 2 - Configure |
| 3 - Sample Files |
| b - Broadcasting Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_BROADCASTING"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
read -p "
Do you want to install Ezstream? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install ezstream -y
echo "
Ezstream has been installed.
"
fi
sleep 1
echo "
Returning to the Ezstream Menu in:"
eval "$_COUNTDOWN"
eval "$_BROADCASTING_EZSTREAM"
fi
if [ "$prompt" = "2" ]
then
read -p "
Do you want to configure Ezstream? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
touch /etc/piRadio.xml
echo "
Please enter the mount point for your stream, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_MOUNT_POINT
echo "
Please enter the Source Password for your IceCast2 Server, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read ICECAST_SOURCE_PASS
echo "
Would like to shuffle the playlist? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_SHUFFLE_I
if [ "$EZSTREAM_SHUFFLE_I" = "y" ];
then
EZSTREAM_SHUFFLE_O="1"
else
EZSTREAM_SHUFFLE_O="0"
fi
echo "
Would like to repeat the playlist? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_REPEAT_I
if [ "EZSTREAM_REPEAT_I" = "y"]
then
EZSTREAM_REPEAT_O="0"
else
EZSTREAM_REPEAT_O="1"
fi
echo "
Enter a name for your stream, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_NAME
echo "
Enter the url for your stream (i.e. http://127/0.0.1), followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_URL
echo "
Enter the genre of your stream, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_GENRE
echo "
Enter the description for your stream, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_DESCRIPTION
echo "
Would like the stream to be publicly listed? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EZSTREAM_PUBLIC_I
if [ "EZSTREAM_PUBLIC_O" = "y" ]
then
EZSTREAM_PUBLIC_O="1"
else
EZSTREAM_PUBLIC_O="0"
fi
echo "<ezstream>
<url>http://localhost:8000/$EZSTREAM_MOUNT_POINT</url>
<sourcepassword>$ICECAST_SOURCE_PASS</sourcepassword>
<format>MP3</format>
<filename>/home/pi/Music/Ezstream/ezstream.m3u</filename>
<shuffle>$EZSTREAM_SHUFFLE_O</shuffle>
<stream_once>$EZSTREAM_REPEAT_O</stream_once>
<metadata_format>@s@</metadata_format>
<svrinfoname>$EZSTREAM_NAME</svrinfoname>
<svrinfourl>$EZSTREAM_URL</svrinfourl>
<svrinfogenre>$EZSTREAM_GENRE</svrinfogenre>
<svrinfodescription>$EZSTREAM_DESCRIPTION</svrinfodescription>
<svrinfobitrate>16</svrinfobitrate>
<svrinfochannels>2</svrinfochannels>
<svrinfosamplerate>22050</svrinfosamplerate>
<svrinfopublic>$EZSTREAM_PUBLIC</svrinfopublic>
</ezstream>" | sudo tee -a /etc/piRadio.xml
mkdir /home/pi/Music/Ezstream
touch /home/pi/Music/Ezstream/ezstream.m3u
echo "
Ezstream has been configured.
"
fi
sleep 1
echo "
Returning to the Ezstream Menu in:"
eval "$_COUNTDOWN"
eval "$_BROADCASTING_EZSTREAM"
fi
if [ "$prompt" = "3" ]
then
read -p "
Would you like to download sample files for your steam? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
wget https://www.brandoncorlett.com/resources/ezstream-demo/bensound-memories.mp3 -P /home/pi/Music/Ezstream
wget https://www.brandoncorlett.com/resources/ezstream-demo/bensound-goinghigher.mp3 -P /home/pi/Music/Ezstream
wget https://www.brandoncorlett.com/resources/ezstream-demo/bensound-energy.mp3 -P /home/pi/Music/Ezstream
echo "/home/pi/Music/Ezstream/bensound-memories.mp3
/home/pi/Music/Ezstream/bensound-goinghigher.mp3
/home/pi/Music/Ezstream/bensound-energy.mp3" | sudo tee -a /home/pi/Music/Ezstream/ezstream.m3u
fi
echo "/usr/bin/ezstream -c /etc/piRadio.xml &" | sudo tee -a /etc/init.d/piRadioBoot.sh
echo "
Ezstream demo files have been downloaded.
"
sleep 1
echo "
Returning to the Eztstream Menu in:"
eval "$_COUNTDOWN"
eval "$_BROADCASTING_EZSTREAM"
else
sleep 1
echo "
Returning to the Eztstream Menu in:"
eval "$_COUNTDOWN"
eval "$_BROADCASTING_EZSTREAM"
fi
sleep 1
echo "
Returning to the Broadcasting Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_BROADCASTING"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_BROADCASTING"
fi
#!/usr/bin/env bash
# IceCast2
echo "
██╗ ██████╗███████╗ ██████╗ █████╗ ███████╗████████╗██████╗
██║██╔════╝██╔════╝██╔════╝██╔══██╗██╔════╝╚══██╔══╝╚════██╗
██║██║ █████╗ ██║ ███████║███████╗ ██║ █████╔╝
██║██║ ██╔══╝ ██║ ██╔══██║╚════██║ ██║ ██╔═══╝
██║╚██████╗███████╗╚██████╗██║ ██║███████║ ██║ ███████╗
╚═╝ ╚═════╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝
"
read -p "
Do you want to install IceCast2? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install icecast2 -y
fi
echo "Returning to the Broadcasting Menu in:"
eval "$_COUNTDOWN"
eval "$_MENU_BROADCASTING"
#!/usr/bin/env bash
read -p "
Would you like to install the Thunderbird Email client? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu trusty main
" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BDB3D89CE49EC21 && sudo apt-get update && sudo apt-get install thunderbird -y
fi
#!/usr/bin/env bash
echo "
███████╗██████╗ ██╗████████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔══██╗██║╚══██╔══╝██╔═══██╗██╔══██╗██╔════╝
█████╗ ██║ ██║██║ ██║ ██║ ██║██████╔╝███████╗
██╔══╝ ██║ ██║██║ ██║ ██║ ██║██╔══██╗╚════██║
███████╗██████╔╝██║ ██║ ╚██████╔╝██║ ██║███████║
╚══════╝╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Chromium |
| 2 - Firefox |
| b - GUI Menu |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
echo "
If you are planning to install the PIXEL GUI you may want to also install one or more text/code editor(s)."
if [ "$prompt" = "h" ]
then
eval "$_HELP_GUI"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
read -p "
Would you like to install Chromium Web Browser? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install chromium-browser -y
fi
sleep 1
echo "
Returning to the Browsers Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI_BROWSERS"
fi
if [ "$prompt" = "2" ]
then
read -p "
Would you like to install Firefox Web Browser? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu trusty main
" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BDB3D89CE49EC21 && sudo apt-get update && sudo apt-get install firefox -y
fi
sleep 1
echo "
Returning to the Browsers Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI_BROWSERS"
fi
if [ "$prompt" = "m" ]
then
eval "$_GUI_BROWSERS"
fi
#!/usr/bin/env bash
echo "
███████╗██████╗ ██╗████████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔══██╗██║╚══██╔══╝██╔═══██╗██╔══██╗██╔════╝
█████╗ ██║ ██║██║ ██║ ██║ ██║██████╔╝███████╗
██╔══╝ ██║ ██║██║ ██║ ██║ ██║██╔══██╗╚════██║
███████╗██████╔╝██║ ██║ ╚██████╔╝██║ ██║███████║
╚══════╝╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Leafpad |
| 2 - Gedit |
| 3 - Geany |
| b - GUI Menu |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
echo "
If you are planning to install the PIXEL GUI you may want to also install one or more text/code editor(s)."
if [ "$prompt" = "h" ]
then
eval "$_HELP_GUI"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
read -p "
Would you like to install Leafpad? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install leafpad -y
fi
sleep 1
echo "
Returning to the Text Editors Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI_EDITORS"
fi
if [ "$prompt" = "2" ]
then
read -p "
Would you like to install Gedit? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install gedit -y
fi
sleep 1
echo "
Returning to the Text Editors Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI_EDITORS"
fi
if [ "$prompt" = "3" ]
then
read -p "
Would you like to install Geany? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install geany -y
fi
sleep 1
echo "
Returning to the Text Editors Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI_EDITORS"
fi
if [ "$prompt" = "b" ]
then
eval "$_GUI"
fi
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██╗██╗
██╔════╝ ██║ ██║██║
██║ ███╗██║ ██║██║
██║ ██║██║ ██║██║
╚██████╔╝╚██████╔╝██║
╚═════╝ ╚═════╝ ╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Install Xserver |
| 2 - Install PIXEL |
| 3 - Text Editors |
| 4 - Web Browsers |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != '4' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_GUI"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
echo "
██████╗ ██╗██╗ ██╗███████╗██╗ ██████╗ ██╗ ██╗██╗
██╔══██╗██║╚██╗██╔╝██╔════╝██║ ██╔════╝ ██║ ██║██║
██████╔╝██║ ╚███╔╝ █████╗ ██║ ██║ ███╗██║ ██║██║
██╔═══╝ ██║ ██╔██╗ ██╔══╝ ██║ ██║ ██║██║ ██║██║
██║ ██║██╔╝ ██╗███████╗███████╗ ╚██████╔╝╚██████╔╝██║
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝
"
read -p "
Would you like to install Xserver? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
for _ in once; do
if [ "$prompt" = "y" ];
then
apt-get install --no-install-recommends xserver-xorg -y
apt-get install --no-install-recommends xinit -y
echo ""
break
fi
done
echo "Returning to the GUI Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI"
fi
if [ "$prompt" = "2" ]
then
read -p "
Would you like to install the PIXEL GUI? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
for _ in once; do
if [ "$prompt" = "y" ];
then
eval "$_UTILTIY_UPDATE"
eval "$_UTILITY_UPGRADE"
apt-get install --no-install-recommends xserver-xorg -y
apt-get install --no-install-recommends xinit -y
apt-get install raspberrypi-ui-mods -y
echo ""
break
fi
done
echo "Returning to the GUI Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI"
fi
if [ "$prompt" = "3" ]
then
eval "$_GUI_EDITORS"
echo "Returning to the GUI Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI"
fi
if [ "$prompt" = "4" ]
then
eval "$_GUI_BROWSERS"
echo "Returning to the GUI Menu in:"
eval "$_COUNTDOWN"
eval "$_GUI"
fi
#!/usr/bin/env bash
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
echo "
Loading environament variables. This will take a little bit of time.
...
" &
#load file locations
HOST_URL="https://pinomite.ml/"
INDEX=$(curl -s ${HOST_URL}_index.sh)
eval "$INDEX"
###Check for Root user
eval "$_CHECK_ROOT"
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
eval "$_MENU_MAIN"
#!/usr/bin/env bash
# Kodi
echo "
██╗ ██╗ ██████╗ ██████╗ ██╗
██║ ██╔╝██╔═══██╗██╔══██╗██║
█████╔╝ ██║ ██║██║ ██║██║
██╔═██╗ ██║ ██║██║ ██║██║
██║ ██╗╚██████╔╝██████╔╝██║
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Install |
| 2 - Configure |
| b - Audio & Video Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_KODI"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
read -p "
Do you want to install Kodi? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install kodi kodi-eventclients-xbmc-send -y
fi
echo "Returning to the Kodi Menu in:"
eval "$_COUNTDOWN"
eval "$_KODI"
fi
if [ "$prompt" = "2" ]
then
read -p "
Would you like kodi to start on boot? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
if [ ! -f /etc/init.d/pinomiteBoot.sh ]; then
touch /etc/init.d/pinomiteBoot.sh
sudo chmod +x /etc/init.d/pinomiteBoot.sh
fi
echo "kodi" | sudo tee -a /etc/init.d/pinomiteBoot.sh
if [ ! -f /etc/init.d/pinomiteBoot.confirm ]; then
echo "/etc/init.d/piRadioBoot.sh" | sudo tee -a /home/pi/.config/lxsession/LXDE-pi/autostart
touch /etc/init.d/pinomiteBoot.confirm
echo "This file is just to indicate to pinomite that Pinomite's boot sctipt was already added to /home/pi/.config/lxsession/LXDE-pi/autostart" |sudo tee -a /etc/init.d/piNomiteBoot.confirm
fi
fi
if [ -e "/root/.kodi/userdata/guisettings.xml" ]
then
truncate -s 0 /root/.kodi/userdata/guisettings.xml
fi
kodi-send --action="Quit"
read -p "
Would you like to enable the Web GUI for Kodi? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
KODI_WEB_SERVER="true"
echo "
Please enter a password for accessing the Web GUI. Leave blank for no password.
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read KODI_WEB_SERVER_PASSWORD
echo "
What port would you like to use for the Web GUI? (i.e. 8080)
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read KODI_WEB_SERVER_PORT
echo "
What would you like to name your server? (i.e. Kodi)
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read KODI_WEB_SERVER_NAME
else
KODI_WEB_SERVER="false"
KODI_WEB_SERVER_PASSWORD=""
KODI_WEB_SERVER_PORT="8080"
KODI_WEB_SERVER_NAME="kodi"
fi
echo "<settings>
<accessibility>
<audiohearing default="true">false</audiohearing>
<audiovisual default="true">false</audiovisual>
<subhearing default="true">false</subhearing>
</accessibility>
<addons>
<unknownsources default="true">false</unknownsources>
</addons>
<audiocds>
<autoaction default="true">0</autoaction>
<ejectonrip default="true">true</ejectonrip>
<encoder default="true">audioencoder.xbmc.builtin.wav</encoder>
<recordingpath default="true"></recordingpath>
<trackpathformat default="true">%A/%A - %B/[%N. ][%A - ]%T</trackpathformat>
<usecddb default="true">true</usecddb>
</audiocds>
<audiooutput>
<ac3passthrough default="true">true</ac3passthrough>
<ac3transcode default="true">false</ac3transcode>
<atempothreshold default="true">2</atempothreshold>
<audiodevice default="true">ALSA:@:CARD=Loopback,DEV=0</audiodevice>
<boostcenter default="true">0</boostcenter>
<channels default="true">1</channels>
<config default="true">2</config>
<dspaddonsenabled default="true">false</dspaddonsenabled>
<dtshdpassthrough default="true">false</dtshdpassthrough>
<dtspassthrough default="true">false</dtspassthrough>
<eac3passthrough default="true">false</eac3passthrough>
<guisoundmode default="true">1</guisoundmode>
<maintainoriginalvolume default="true">true</maintainoriginalvolume>
<passthrough default="true">false</passthrough>
<passthroughdevice default="true">PI:HDMI</passthroughdevice>
<plladjust default="true">0</plladjust>
<processquality default="true">30</processquality>
<samplerate default="true">48000</samplerate>
<stereoupmix default="true">false</stereoupmix>
<streamnoise default="true">true</streamnoise>
<streamsilence default="true">1</streamsilence>
<truehdpassthrough default="true">false</truehdpassthrough>
<volumesteps default="true">90</volumesteps>
</audiooutput>
<bluray>
<playerregion default="true">1</playerregion>
</bluray>
<cache>
<harddisk default="true">256</harddisk>
</cache>
<cacheaudio>
<dvdrom default="true">256</dvdrom>
<internet default="true">256</internet>
<lan default="true">256</lan>
</cacheaudio>
<cachedvd>
<dvdrom default="true">2048</dvdrom>
<lan default="true">2048</lan>
</cachedvd>
<cacheunknown>
<internet default="true">4096</internet>
</cacheunknown>
<cachevideo>
<dvdrom default="true">2048</dvdrom>
<internet default="true">4096</internet>
<lan default="true">2048</lan>
</cachevideo>
<debug>
<extralogging default="true">false</extralogging>
<screenshotpath default="true"></screenshotpath>
<setextraloglevel default="true"></setextraloglevel>
<showloginfo default="true">false</showloginfo>
</debug>
<disc>
<playback default="true">0</playback>
</disc>
<dvds>
<automenu default="true">false</automenu>
<autorun default="true">false</autorun>
<playerregion default="true">0</playerregion>
</dvds>
<epg>
<daystodisplay default="true">3</daystodisplay>
<epgupdate default="true">120</epgupdate>
<hidenoinfoavailable default="true">true</hidenoinfoavailable>
<ignoredbforclient default="true">false</ignoredbforclient>
<preventupdateswhileplayingtv default="true">false</preventupdateswhileplayingtv>
<selectaction default="true">2</selectaction>
</epg>
<eventlog>
<enabled default="true">true</enabled>
<enablednotifications default="true">false</enablednotifications>
</eventlog>
<filelists>
<allowfiledeletion default="true">false</allowfiledeletion>
<browsearchives default="true">true</browsearchives>
<ignorethewhensorting default="true">true</ignorethewhensorting>
<showaddsourcebuttons default="true">true</showaddsourcebuttons>
<showextensions default="true">true</showextensions>
<showhidden default="true">false</showhidden>
<showparentdiritems default="true">true</showparentdiritems>
</filelists>
<general>
<addonbrokenfilter default="true">true</addonbrokenfilter>
<addonforeignfilter default="true">false</addonforeignfilter>
<addonnotifications default="true">false</addonnotifications>
<addonupdates default="true">0</addonupdates>
<settinglevel>1</settinglevel>
<eventlog>
<level>0</level>
<showhigherlevels>true</showhigherlevels>
</eventlog>
<systemtotaluptime>0</systemtotaluptime>
</general>
<input>
<asknewcontrollers default="true">true</asknewcontrollers>
<controllerpoweroff default="true">false</controllerpoweroff>
<enablemouse default="true">true</enablemouse>
<rumblenotify default="true">false</rumblenotify>
</input>
<locale>
<audiolanguage default="true">original</audiolanguage>
<charset default="true">DEFAULT</charset>
<country default="true">USA (12h)</country>
<keyboardlayouts default="true">English QWERTY</keyboardlayouts>
<language default="true">resource.language.en_gb</language>
<longdateformat default="true">regional</longdateformat>
<shortdateformat default="true">regional</shortdateformat>
<speedunit default="true">regional</speedunit>
<subtitlelanguage default="true">original</subtitlelanguage>
<temperatureunit default="true">regional</temperatureunit>
<timeformat default="true">regional</timeformat>
<timezone default="true">Etc/UTC</timezone>
<timezonecountry default="true"></timezonecountry>
<use24hourclock default="true">regional</use24hourclock>
</locale>
<lookandfeel>
<enablerssfeeds default="true">false</enablerssfeeds>
<font default="true">Default</font>
<rssedit default="true"></rssedit>
<skin default="true">skin.estuary</skin>
<skincolors default="true">SKINDEFAULT</skincolors>
<skintheme default="true">SKINDEFAULT</skintheme>
<skinzoom default="true">0</skinzoom>
<soundskin default="true">resource.uisounds.kodi</soundskin>
<startupwindow default="true">10000</startupwindow>
<stereostrength default="true">5</stereostrength>
</lookandfeel>
<masterlock>
<maxretries default="true">3</maxretries>
<startuplock default="true">false</startuplock>
</masterlock>
<musicfiles>
<findremotethumbs default="true">true</findremotethumbs>
<librarytrackformat default="true"></librarytrackformat>
<nowplayingtrackformat default="true"></nowplayingtrackformat>
<trackformat default="true">[%N. ]%A - %T</trackformat>
<usetags default="true">true</usetags>
</musicfiles>
<musiclibrary>
<albumsscraper default="true">metadata.album.universal</albumsscraper>
<artistsscraper default="true">metadata.artists.universal</artistsscraper>
<backgroundupdate default="true">false</backgroundupdate>
<downloadinfo default="true">false</downloadinfo>
<overridetags default="true">false</overridetags>
<showallitems default="true">true</showallitems>
<showcompilationartists default="true">true</showcompilationartists>
<updateonstartup default="true">false</updateonstartup>
</musiclibrary>
<musicplayer>
<autoplaynextitem default="true">true</autoplaynextitem>
<crossfade default="true">0</crossfade>
<crossfadealbumtracks default="true">true</crossfadealbumtracks>
<queuebydefault default="true">false</queuebydefault>
<replaygainnogainpreamp default="true">89</replaygainnogainpreamp>
<replaygainpreamp default="true">89</replaygainpreamp>
<replaygaintype default="true">1</replaygaintype>
<seekdelay default="true">750</seekdelay>
<seeksteps default="true">-60,-30,-10,10,30,60</seeksteps>
<visualisation default="true">visualization.spectrum</visualisation>
</musicplayer>
<mymusic>
<defaultlibview default="true"></defaultlibview>
<songthumbinvis default="true">false</songthumbinvis>
<playlist>
<repeat>false</repeat>
<shuffle>false</shuffle>
</playlist>
<needsupdate>0</needsupdate>
</mymusic>
<myvideos>
<extractchapterthumbs default="true">false</extractchapterthumbs>
<extractflags default="true">false</extractflags>
<extractthumb default="true">false</extractthumb>
<flatten default="true">false</flatten>
<replacelabels default="true">true</replacelabels>
<selectaction default="true">1</selectaction>
<stackvideos default="true">false</stackvideos>
<watchmodemovies>0</watchmodemovies>
<watchmodetvshows>0</watchmodetvshows>
<watchmodemusicvideos>0</watchmodemusicvideos>
<playlist>
<repeat>false</repeat>
<shuffle>false</shuffle>
</playlist>
<needsupdate>0</needsupdate>
</myvideos>
<network>
<bandwidth default="true">0</bandwidth>
<httpproxypassword default="true"></httpproxypassword>
<httpproxyport default="true">8080</httpproxyport>
<httpproxyserver default="true"></httpproxyserver>
<httpproxytype default="true">0</httpproxytype>
<httpproxyusername default="true"></httpproxyusername>
<usehttpproxy default="true">false</usehttpproxy>
</network>
<pictures>
<displayresolution default="true">14</displayresolution>
<generatethumbs default="true">true</generatethumbs>
<showvideos default="true">true</showvideos>
<usetags default="true">true</usetags>
</pictures>
<powermanagement>
<displaysoff default="true">0</displaysoff>
<shutdownstate default="true">0</shutdownstate>
<shutdowntime default="true">0</shutdowntime>
<wakeonaccess default="true">false</wakeonaccess>
</powermanagement>
<pvrmanager>
<backendchannelorder default="true">true</backendchannelorder>
<hideconnectionlostwarning default="true">false</hideconnectionlostwarning>
<syncchannelgroups default="true">true</syncchannelgroups>
<usebackendchannelnumbers default="true">false</usebackendchannelnumbers>
</pvrmanager>
<pvrmenu>
<closechannelosdonswitch default="true">true</closechannelosdonswitch>
<displaychannelinfo default="true">5</displaychannelinfo>
<iconpath default="true"></iconpath>
</pvrmenu>
<pvrparental>
<duration default="true">300</duration>
<enabled default="true">false</enabled>
<pin default="true"></pin>
</pvrparental>
<pvrplayback>
<channelentrytimeout default="true">0</channelentrytimeout>
<confirmchannelswitch default="true">false</confirmchannelswitch>
<enableradiords default="true">true</enableradiords>
<fps default="true">0</fps>
<playminimized default="true">true</playminimized>
<scantime default="true">10</scantime>
<signalquality default="true">true</signalquality>
<startlast default="true">0</startlast>
<trafficadvisory default="true">false</trafficadvisory>
<trafficadvisoryvolume default="true">10</trafficadvisoryvolume>
</pvrplayback>
<pvrpowermanagement>
<backendidletime default="true">15</backendidletime>
<dailywakeup default="true">false</dailywakeup>
<dailywakeuptime default="true">00:00:00</dailywakeuptime>
<enabled default="true">false</enabled>
<prewakeup default="true">15</prewakeup>
<setwakeupcmd default="true"></setwakeupcmd>
</pvrpowermanagement>
<pvrrecord>
<defaultlifetime default="true">99</defaultlifetime>
<defaultpriority default="true">50</defaultpriority>
<grouprecordings default="true">true</grouprecordings>
<instantrecordaction default="true">0</instantrecordaction>
<instantrecordtime default="true">120</instantrecordtime>
<marginend default="true">0</marginend>
<marginstart default="true">0</marginstart>
<preventduplicateepisodes default="true">0</preventduplicateepisodes>
<timernotifications default="true">true</timernotifications>
</pvrrecord>
<pvrtimers>
<hidedisabledtimers default="true">false</hidedisabledtimers>
</pvrtimers>
<scrapers>
<moviesdefault default="true">metadata.themoviedb.org</moviesdefault>
<musicvideosdefault default="true">metadata.local</musicvideosdefault>
<tvshowsdefault default="true">metadata.tvdb.com</tvshowsdefault>
</scrapers>
<screensaver>
<mode default="true">screensaver.xbmc.builtin.black</mode>
<time default="true">3</time>
<usedimonpause default="true">true</usedimonpause>
<usemusicvisinstead default="true">true</usemusicvisinstead>
</screensaver>
<services>
<airplay default="true">false</airplay>
<airplaypassword default="true"></airplaypassword>
<airplayvideosupport default="true">true</airplayvideosupport>
<airplayvolumecontrol default="true">true</airplayvolumecontrol>
<devicename default="true">Kodi</devicename>
<esallinterfaces default="true">false</esallinterfaces>
<escontinuousdelay default="true">25</escontinuousdelay>
<esenabled default="true">true</esenabled>
<esinitialdelay default="true">750</esinitialdelay>
<esmaxclients default="true">20</esmaxclients>
<esport default="true">9777</esport>
<esportrange default="true">10</esportrange>
<upnpannounce default="true">true</upnpannounce>
<upnpcontroller default="true">false</upnpcontroller>
<upnplookforexternalsubtitles default="true">false</upnplookforexternalsubtitles>
<upnprenderer default="true">false</upnprenderer>
<upnpserver default="true">false</upnpserver>
<useairplaypassword default="true">false</useairplaypassword>
<webserver default="true">$KODI_WEB_SERVER</webserver>
<webserverpassword default="true">$KODI_WEB_SERVER_PASSWORD</webserverpassword>
<webserverport default="true">$KODI_WEB_SERVER_PORT</webserverport>
<webserverusername default="true">$KODI_WEB_SERVER_NAME</webserverusername>
<webskin default="true">webinterface.default</webskin>
<zeroconf default="true">true</zeroconf>
</services>
<slideshow>
<displayeffects default="true">true</displayeffects>
<highqualitydownscaling default="true">false</highqualitydownscaling>
<shuffle default="true">false</shuffle>
<staytime default="true">5</staytime>
</slideshow>
<smb>
<winsserver default="true">0.0.0.0</winsserver>
<workgroup default="true">WORKGROUP</workgroup>
</smb>
<subtitles>
<align default="true">0</align>
<charset default="true">DEFAULT</charset>
<color default="true">1</color>
<custompath default="true"></custompath>
<downloadfirst default="true">false</downloadfirst>
<font default="true">arial.ttf</font>
<height default="true">28</height>
<languages default="true">English</languages>
<movie default="true"></movie>
<overrideassfonts default="true">false</overrideassfonts>
<parsecaptions default="true">false</parsecaptions>
<pauseonsearch default="true">true</pauseonsearch>
<stereoscopicdepth default="true">0</stereoscopicdepth>
<storagemode default="true">0</storagemode>
<style default="true">1</style>
<tv default="true"></tv>
</subtitles>
<system>
<playlistspath>special://profile/playlists/</playlistspath>
</system>
<videolibrary>
<actorthumbs default="true">true</actorthumbs>
<backgroundupdate default="true">false</backgroundupdate>
<flattentvshows default="true">1</flattentvshows>
<groupmoviesets default="true">false</groupmoviesets>
<groupsingleitemsets default="true">false</groupsingleitemsets>
<showallitems default="true">true</showallitems>
<showemptytvshows default="true">false</showemptytvshows>
<showunwatchedplots default="true">true</showunwatchedplots>
<tvshowsincludeallseasonsandspecials default="true">0</tvshowsincludeallseasonsandspecials>
<tvshowsselectfirstunwatcheditem default="true">0</tvshowsselectfirstunwatcheditem>
<updateonstartup default="true">false</updateonstartup>
</videolibrary>
<videoplayer>
<adjustrefreshrate default="true">0</adjustrefreshrate>
<autoplaynextitem default="true">false</autoplaynextitem>
<errorinaspect default="true">0</errorinaspect>
<hqscalers default="true">20</hqscalers>
<limitguiupdate default="true">10</limitguiupdate>
<preferdefaultflag default="true">true</preferdefaultflag>
<prefervaapirender default="true">true</prefervaapirender>
<quitstereomodeonstop default="true">true</quitstereomodeonstop>
<rendermethod default="true">0</rendermethod>
<seekdelay default="true">750</seekdelay>
<seeksteps default="true">-600,-300,-180,-60,-30,-10,10,30,60,180,300,600</seeksteps>
<stereoscopicplaybackmode default="true">0</stereoscopicplaybackmode>
<stretch43 default="true">0</stretch43>
<supportmvc default="true">true</supportmvc>
<teletextenabled default="true">true</teletextenabled>
<teletextscale default="true">true</teletextscale>
<useamcodec default="true">true</useamcodec>
<useamcodech264 default="true">0</useamcodech264>
<useamcodecmpeg2 default="true">0</useamcodecmpeg2>
<useamcodecmpeg4 default="true">800</useamcodecmpeg4>
<usedisplayasclock default="true">false</usedisplayasclock>
<usedxva2 default="true">true</usedxva2>
<usemediacodec default="true">true</usemediacodec>
<usemediacodecsurface default="true">true</usemediacodecsurface>
<usemmal default="true">true</usemmal>
<useomx default="true">true</useomx>
<useomxplayer default="true">false</useomxplayer>
<usevaapi default="true">true</usevaapi>
<usevaapimpeg2 default="true">true</usevaapimpeg2>
<usevaapimpeg4 default="true">true</usevaapimpeg4>
<usevaapivc1 default="true">true</usevaapivc1>
<usevdpau default="true">true</usevdpau>
<usevdpaumixer default="true">true</usevdpaumixer>
<usevdpaumpeg2 default="true">true</usevdpaumpeg2>
<usevdpaumpeg4 default="true">false</usevdpaumpeg4>
<usevdpauvc1 default="true">true</usevdpauvc1>
<usevtb default="true">true</usevtb>
</videoplayer>
<videoscreen>
<blankdisplays default="true">false</blankdisplays>
<cms3dlut default="true"></cms3dlut>
<cmsenabled default="true">false</cmsenabled>
<cmsgamma default="true">220</cmsgamma>
<cmsgammamode default="true">0</cmsgammamode>
<cmslutsize default="true">6</cmslutsize>
<cmsmode default="true">0</cmsmode>
<cmsprimaries default="true">0</cmsprimaries>
<cmswhitepoint default="true">0</cmswhitepoint>
<delayrefreshchange default="true">0</delayrefreshchange>
<displayprofile default="true"></displayprofile>
<dither default="true">false</dither>
<ditherdepth default="true">8</ditherdepth>
<fakefullscreen default="true">true</fakefullscreen>
<framepacking default="true">false</framepacking>
<limitedrange default="true">false</limitedrange>
<limitgui default="true">0</limitgui>
<monitor default="true">Default</monitor>
<noofbuffers default="true">2</noofbuffers>
<preferedstereoscopicmode default="true">100</preferedstereoscopicmode>
<resolution default="true">16</resolution>
<screen default="true">0</screen>
<screenmode default="true">DESKTOP</screenmode>
<stereoscopicmode default="true">0</stereoscopicmode>
<textures32 default="true">true</textures32>
</videoscreen>
<weather>
<addon default="true"></addon>
<currentlocation default="true">1</currentlocation>
</weather>
<window>
<height default="true">480</height>
<width default="true">720</width>
</window>
<viewstates>
<musicfiles>
<viewmode>720896</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</musicfiles>
<musiclastfm>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</musiclastfm>
<musicnavalbums>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</musicnavalbums>
<musicnavartists>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</musicnavartists>
<musicnavsongs>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</musicnavsongs>
<pictures>
<viewmode>720896</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</pictures>
<programs>
<viewmode>720896</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</programs>
<videofiles>
<viewmode>720896</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videofiles>
<videonavactors>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavactors>
<videonavepisodes>
<viewmode>720896</viewmode>
<sortmethod>23</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavepisodes>
<videonavgenres>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavgenres>
<videonavmusicvideos>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavmusicvideos>
<videonavseasons>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavseasons>
<videonavtitles>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavtitles>
<videonavtvshows>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavtvshows>
<videonavyears>
<viewmode>65536</viewmode>
<sortmethod>1</sortmethod>
<sortorder>1</sortorder>
<sortattributes>0</sortattributes>
</videonavyears>
</viewstates>
<resolutions />
<defaultvideosettings>
<interlacemethod>1</interlacemethod>
<scalingmethod>1</scalingmethod>
<noisereduction>0.000000</noisereduction>
<postprocess>false</postprocess>
<sharpness>0.000000</sharpness>
<viewmode>0</viewmode>
<zoomamount>1.000000</zoomamount>
<pixelratio>1.000000</pixelratio>
<verticalshift>0.000000</verticalshift>
<volumeamplification>0.000000</volumeamplification>
<outputtoallspeakers>false</outputtoallspeakers>
<showsubtitles>true</showsubtitles>
<brightness>50.000000</brightness>
<contrast>50.000000</contrast>
<gamma>20.000000</gamma>
<audiodelay>0.000000</audiodelay>
<subtitledelay>0.000000</subtitledelay>
<nonlinstretch>false</nonlinstretch>
<stereomode>0</stereomode>
</defaultvideosettings>
<defaultaudiosettings>
<masterstreamtype>7</masterstreamtype>
<masterstreamtypesel>7</masterstreamtypesel>
<masterstreambase>0</masterstreambase>
<masterprocess_0_0>0</masterprocess_0_0>
<masterprocess_0_1>0</masterprocess_0_1>
<masterprocess_0_2>0</masterprocess_0_2>
<masterprocess_0_3>0</masterprocess_0_3>
<masterprocess_0_4>0</masterprocess_0_4>
<masterprocess_0_5>0</masterprocess_0_5>
<masterprocess_0_6>0</masterprocess_0_6>
<masterprocess_0_7>0</masterprocess_0_7>
<masterprocess_0_8>0</masterprocess_0_8>
<masterprocess_0_9>0</masterprocess_0_9>
<masterprocess_0_10>0</masterprocess_0_10>
<masterprocess_1_0>0</masterprocess_1_0>
<masterprocess_1_1>0</masterprocess_1_1>
<masterprocess_1_2>0</masterprocess_1_2>
<masterprocess_1_3>0</masterprocess_1_3>
<masterprocess_1_4>0</masterprocess_1_4>
<masterprocess_1_5>0</masterprocess_1_5>
<masterprocess_1_6>0</masterprocess_1_6>
<masterprocess_1_7>0</masterprocess_1_7>
<masterprocess_1_8>0</masterprocess_1_8>
<masterprocess_1_9>0</masterprocess_1_9>
<masterprocess_1_10>0</masterprocess_1_10>
<masterprocess_2_0>0</masterprocess_2_0>
<masterprocess_2_1>0</masterprocess_2_1>
<masterprocess_2_2>0</masterprocess_2_2>
<masterprocess_2_3>0</masterprocess_2_3>
<masterprocess_2_4>0</masterprocess_2_4>
<masterprocess_2_5>0</masterprocess_2_5>
<masterprocess_2_6>0</masterprocess_2_6>
<masterprocess_2_7>0</masterprocess_2_7>
<masterprocess_2_8>0</masterprocess_2_8>
<masterprocess_2_9>0</masterprocess_2_9>
<masterprocess_2_10>0</masterprocess_2_10>
<masterprocess_3_0>0</masterprocess_3_0>
<masterprocess_3_1>0</masterprocess_3_1>
<masterprocess_3_2>0</masterprocess_3_2>
<masterprocess_3_3>0</masterprocess_3_3>
<masterprocess_3_4>0</masterprocess_3_4>
<masterprocess_3_5>0</masterprocess_3_5>
<masterprocess_3_6>0</masterprocess_3_6>
<masterprocess_3_7>0</masterprocess_3_7>
<masterprocess_3_8>0</masterprocess_3_8>
<masterprocess_3_9>0</masterprocess_3_9>
<masterprocess_3_10>0</masterprocess_3_10>
<masterprocess_4_0>0</masterprocess_4_0>
<masterprocess_4_1>0</masterprocess_4_1>
<masterprocess_4_2>0</masterprocess_4_2>
<masterprocess_4_3>0</masterprocess_4_3>
<masterprocess_4_4>0</masterprocess_4_4>
<masterprocess_4_5>0</masterprocess_4_5>
<masterprocess_4_6>0</masterprocess_4_6>
<masterprocess_4_7>0</masterprocess_4_7>
<masterprocess_4_8>0</masterprocess_4_8>
<masterprocess_4_9>0</masterprocess_4_9>
<masterprocess_4_10>0</masterprocess_4_10>
<masterprocess_5_0>0</masterprocess_5_0>
<masterprocess_5_1>0</masterprocess_5_1>
<masterprocess_5_2>0</masterprocess_5_2>
<masterprocess_5_3>0</masterprocess_5_3>
<masterprocess_5_4>0</masterprocess_5_4>
<masterprocess_5_5>0</masterprocess_5_5>
<masterprocess_5_6>0</masterprocess_5_6>
<masterprocess_5_7>0</masterprocess_5_7>
<masterprocess_5_8>0</masterprocess_5_8>
<masterprocess_5_9>0</masterprocess_5_9>
<masterprocess_5_10>0</masterprocess_5_10>
<masterprocess_6_0>0</masterprocess_6_0>
<masterprocess_6_1>0</masterprocess_6_1>
<masterprocess_6_2>0</masterprocess_6_2>
<masterprocess_6_3>0</masterprocess_6_3>
<masterprocess_6_4>0</masterprocess_6_4>
<masterprocess_6_5>0</masterprocess_6_5>
<masterprocess_6_6>0</masterprocess_6_6>
<masterprocess_6_7>0</masterprocess_6_7>
<masterprocess_6_8>0</masterprocess_6_8>
<masterprocess_6_9>0</masterprocess_6_9>
<masterprocess_6_10>0</masterprocess_6_10>
<masterprocess_7_0>0</masterprocess_7_0>
<masterprocess_7_1>0</masterprocess_7_1>
<masterprocess_7_2>0</masterprocess_7_2>
<masterprocess_7_3>0</masterprocess_7_3>
<masterprocess_7_4>0</masterprocess_7_4>
<masterprocess_7_5>0</masterprocess_7_5>
<masterprocess_7_6>0</masterprocess_7_6>
<masterprocess_7_7>0</masterprocess_7_7>
<masterprocess_7_8>0</masterprocess_7_8>
<masterprocess_7_9>0</masterprocess_7_9>
<masterprocess_7_10>0</masterprocess_7_10>
</defaultaudiosettings>
<audio>
<mute>false</mute>
<fvolumelevel>1.000000</fvolumelevel>
</audio>
</settings>" | sudo tee -a /root/.kodi/userdata/guisettings.xml
echo "Returning to the Kodi Menu in:"
eval "$_COUNTDOWN"
eval "$_KODI"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_AUDIO_VIDEO"
fi
#!/usr/bin/env bash
echo "
██╗ ██████╗ ██████╗ ██████╗ ██████╗ █████╗ ██████╗██╗ ██╗███████╗
██║ ██╔═══██╗██╔═══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝██║ ██╔╝██╔════╝
██║ ██║ ██║██║ ██║██████╔╝██████╔╝███████║██║ █████╔╝ ███████╗
██║ ██║ ██║██║ ██║██╔═══╝ ██╔══██╗██╔══██║██║ ██╔═██╗ ╚════██║
███████╗╚██████╔╝╚██████╔╝██║ ██████╔╝██║ ██║╚██████╗██║ ██╗███████║
╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Enable Loopback |
| b - Audio & Video Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_LOOPBACK"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
read -p "
Do you want to setup ALSA Loopbacks? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo 'snd-aloop' | sudo tee -a /etc/modules
echo 'alias snd-card-0 snd-aloop
options snd-aloop enable=1,1 pcm_substreams=0,0' | sudo tee -a /etc/modprobe.d/sound.conf
echo "
Two ALSA Loopbacks have been enabled. Reboot your device for them to activate.
"
sleep 2
fi
echo "Returning to the Loopback Menu in:"
eval "$_COUNTDOWN"
eval "$_LOOPBACK"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_AUDIO_VIDEO"
fi
#!/usr/bin/env bash
# Mummble/Mumble-Server
echo "
███╗ ███╗██╗ ██╗███╗ ███╗██████╗ ██╗ ███████╗
████╗ ████║██║ ██║████╗ ████║██╔══██╗██║ ██╔════╝
██╔████╔██║██║ ██║██╔████╔██║██████╔╝██║ █████╗
██║╚██╔╝██║██║ ██║██║╚██╔╝██║██╔══██╗██║ ██╔══╝
██║ ╚═╝ ██║╚██████╔╝██║ ╚═╝ ██║██████╔╝███████╗███████╗
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚══════╝╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Mumble Client |
| 2 - Mumble Server |
| b - Communications Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_MUMBLE"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ];
then
read -p "
Do you want to install the Mumble client? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install mumble -y
# echo "mumble" | sudo tee -a /etc/init.d/piRadioBoot.sh
fi
echo "Returning to the Mumble Menu in:"
eval "$_COUNTDOWN"
eval "$_MUMBLE"
fi
if [ "$prompt" = "2" ];
then
read -p "
Do you want to install the Mumble Server? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install mumble-server -y
# echo "mumble" | sudo tee -a /etc/init.d/piRadioBoot.sh
fi
echo "Returning to the Mumble Menu in:"
eval "$_COUNTDOWN"
eval "$_MUMBLE"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_COMMUNICATIONS"
fi
#!/usr/bin/env bash
echo "
██████╗ █████╗ ███████╗███████╗██╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗
██╔══██╗██╔══██╗██╔════╝██╔════╝██║ ██║██╔═══██╗██╔══██╗██╔══██╗██╔════╝
██████╔╝███████║███████╗███████╗██║ █╗ ██║██║ ██║██████╔╝██║ ██║███████╗
██╔═══╝ ██╔══██║╚════██║╚════██║██║███╗██║██║ ██║██╔══██╗██║ ██║╚════██║
██║ ██║ ██║███████║███████║╚███╔███╔╝╚██████╔╝██║ ██║██████╔╝███████║
╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝ ╚══╝╚══╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Pi |
| 2 - Root |
| 3 - Other |
| b - Security Menu |
|~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_PASSWORDS"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
read -p "
Do you want to change the password for the user Pi? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
sudo passwd pi
fi
echo "Returning to the Passwords Menu in:"
eval "$_COUNTDOWN"
eval "$_PASSWORDS"
fi
if [ "$prompt" = "2" ]
then
read -p "
Do you want to change the password for the Root user? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
sudo passwd root
fi
echo "Returning to the Passwords Menu in:"
eval "$_COUNTDOWN"
eval "$_PASSWORDS"
fi
if [ "$prompt" = "3" ]
then
echo "What user would you like to set the password for?
:"
read OTHER_USER
read -p "
Do you want to change the password for the user $OTHER_USER? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ]
then
sudo passwd $OTHER_USER
fi
echo "Returning to the Passwords Menu in:"
eval "$_COUNTDOWN"
eval "$_PASSWORDS"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_SECURITY"
fi
#!/usr/bin/env bash
echo "
██████╗ ███████╗██████╗ ██████╗ ██████╗ ████████╗
██╔══██╗██╔════╝██╔══██╗██╔═══██╗██╔═══██╗╚══██╔══╝
██████╔╝█████╗ ██████╔╝██║ ██║██║ ██║ ██║
██╔══██╗██╔══╝ ██╔══██╗██║ ██║██║ ██║ ██║
██║ ██║███████╗██████╔╝╚██████╔╝╚██████╔╝ ██║
╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚═════╝ ╚═╝
"
read -p "
You must restart for some of the changes to take effect. Would you like to restart your computer now? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
reboot
fi
echo "
Type the domain name, then press [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read DOMAIN
echo "
Type the admin's email, then press [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read EMAIL
echo "
Type the DocRoot (i.e. /var/www/html), then press [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read DOCROOT
sudo su
echo 'deb http://httpredir.debian.org/debian jessie-backports main contrib non-free' > /etc/apt/sources.list.d/jessie-backports.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
apt-get update
apt-get install dehydrated-apache2 -y
echo "$DOMAIN" > /etc/dehydrated/domains.txt
echo "CONTACT_EMAIL=$EMAIL" > /etc/dehydrated/conf.d/mail.sh
dehydrated -c
a2enmod ssl
cat >> /etc/apache2/sites-enabled/000-default.conf <<EOF
<VirtualHost *:443>
ServerAdmin $EMAIL
DocumentRoot $DOCROOT
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
SSLCertificateFile /var/lib/dehydrated/certs/$DOMAIN/fullchain.pem
SSLCertificateKeyFile /var/lib/dehydrated/certs/$DOMAIN/privkey.pem
</VirtualHost>
EOF
systemctl reload apache2
cat > /etc/cron.daily/dehydrated <<EOF
#!/bin/sh
exec /usr/bin/dehydrated -c >/var/log/dehydrated-cron.log 2>&1
EOF
chmod 0755 /etc/cron.daily/dehydrated
cat > /etc/logrotate.d/dehydrated <<EOF
/var/log/dehydrated-cron.log
{
rotate 12
monthly
missingok
notifempty
delaycompress
compress
}
EOF
#!/usr/bin/env bash
echo "
█████╗ ██████╗ █████╗ ██████╗██╗ ██╗███████╗██████╗
██╔══██╗██╔══██╗██╔══██╗██╔════╝██║ ██║██╔════╝╚════██╗
███████║██████╔╝███████║██║ ███████║█████╗ █████╔╝
██╔══██║██╔═══╝ ██╔══██║██║ ██╔══██║██╔══╝ ██╔═══╝
██║ ██║██║ ██║ ██║╚██████╗██║ ██║███████╗███████╗
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
read -p "
Would you like to install Apache2? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
if [ ! -f /var/log/pinomite.log ]; then
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release
touch /var/log/pinomite.log
echo "stretch-sources-added" | sudo tee -a /var/log/pinomite.log
apt-get update
apt-get upgrade
else
if grep -Fxq "stretch-sources-added" /var/log/pinomite.log
then
echo "stretch sources already configured"
else
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release
touch /var/log/pinomite.log
echo "stretch-sources-added" | sudo tee -a /var/log/pinomite.log
apt-get update
apt-get upgrade
fi
fi
apt-get install -t stretch apache2 -y
echo "apache2-installed" | sudo tee -a /var/log/pinomite.log
a2enmod proxy_fcgi setenvif
a2enconf php7.0-fpm
a2enmod ssl
a2ensite default-ssl
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime
systemctl restart apache2
mkdir -p /var/www/{public,private,logs,backup,vhosts}
chown -R www-data:www-data /var/www
chmod -R 775 /var/www
usermod -aG www-data pi
fi
#!/usr/bin/env bash
echo "
MONGO DB
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
read -p "
Would you like to install Mongo DB? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
wget http://andyfelong.com/downloads/core_mongodb.tar.gz
tar -zxvf core_mongodb.tar.gz
sudo adduser --ingroup nogroup --shell /etc/false --disabled-password --gecos "" \
--no-create-home mongodb
sudo chown root:root mongo*
sudo chmod 755 mongo*
sudo strip mongo*
sudo cp -p mongo* /usr/bin
sudo mkdir /var/log/mongodb
sudo chown mongodb:nogroup /var/log/mongodb
sudo mkdir /var/lib/mongodb
sudo chown mongodb:root /var/lib/mongodb
sudo chmod 775 /var/lib/mongodb
sudo touch /etc/mongodb.conf
echo "# /etc/mongodb.con"| sudo tee -a /etc/mongodb.conf
echo "# minimal config file (old style)"| sudo tee -a /etc/mongodb.conf
echo "# Run mongod --help to see a list of options"| sudo tee -a /etc/mongodb.conf
echo ""| sudo tee -a /etc/mongodb.conf
echo "bind_ip = 127.0.0.1"| sudo tee -a /etc/mongodb.conf
echo "quiet = true"| sudo tee -a /etc/mongodb.conf
echo "dbpath = /var/lib/mongodb"| sudo tee -a /etc/mongodb.conf
echo "logpath = /var/log/mongodb/mongod.log"| sudo tee -a /etc/mongodb.conf
echo "logappend = true"| sudo tee -a /etc/mongodb.conf
echo "storageEngine = mmapv1"| sudo tee -a /etc/mongodb.conf
sudo touch /lib/systemd/system/mongodb.service
echo "[Unit]"| sudo tee -a /lib/systemd/system/mongodb.service
echo "Description=High-performance, schema-free document-oriented database"| sudo tee -a /lib/systemd/system/mongodb.service
echo "After=network.target"| sudo tee -a /lib/systemd/system/mongodb.service
echo ""| sudo tee -a /lib/systemd/system/mongodb.service
echo "[Service]"| sudo tee -a /lib/systemd/system/mongodb.service
echo "User=mongodb"| sudo tee -a /lib/systemd/system/mongodb.service
echo "ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf"| sudo tee -a /lib/systemd/system/mongodb.service
echo ""| sudo tee -a /lib/systemd/system/mongodb.service
echo "[Install]"| sudo tee -a /lib/systemd/system/mongodb.service
echo "WantedBy=multi-user.target"| sudo tee -a /lib/systemd/system/mongodb.service
sudo service mongodb start
sudo service mongodb status
rm core_mongodb.tar.gz
fi
#!/usr/bin/env bash
read -p "
Would you like to add a user to a database? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
Type the name of the user, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read USR
echo "
Type the name of the database, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read DB
mysql -u root -e "GRANT ALL PRIVILEGES ON $DB.* TO '$USR'@'localhost';"
echo "
The user $USR has been added to the $DB database will all privleges."
fi
#!/usr/bin/env bash
read -p "
Would you like to install MySQL? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get -t stretch -y install mysql-server
#read -s -p "Type the password you just entered (MySQL): " mysqlPass
#mysql --user="root" --password="$mysqlPass" --database="mysql" --execute="GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '$mysqlPass'; FLUSH PRIVILEGES;"
service mysql restart
systemctl daemon-reload
echo "
The systemctl daemon has been reloaded
"
echo "
MySQL install complete!
"
fi
#!/usr/bin/env bash
read -p "
Would you like to create a new database? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
Type the name for your database, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read DB
read -p "
Would you like to create the database $DB? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
mysql -u root -e "CREATE DATABASE $DB;"
echo "MySQL Database created."
echo "Database: $DB"
fi
fi
#!/usr/bin/env bash
read -p "
Would you like to create a new MySQL user? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
Type the username for your database, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read USR
echo "
Type the password for your new user, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read PASS
mysql -u root -e "CREATE USER '$USR'@'localhost' IDENTIFIED BY '$PASS';
FLUSH PRIVILEGES;"
echo "MySQL user created."
echo "Username: $USR"
echo "Password: $PASS"
fi
#!/usr/bin/env bash
echo "
███╗ ██╗███████╗██╗ ██╗████████╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗
██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║ ╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Install |
| 2 - MySQL - New User |
| 3 - MySQL - New Database |
| 4 - MySQL - Grant Privileges |
| b - Servers Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != '4' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_NEXTCLOUD"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
wget https://download.nextcloud.com/server/releases/latest-12.zip
unzip -q latest-12.zip
mv nextcloud /var/www/html
rm latest-12.zip
sudo mkdir -p /var/www/html/nextcloud/data
chown -R www-data:www-data /var/www/html/nextcloud
sed -i 's/;opcache.enable=0/opcache.enable=1/g' /etc/php/7.0/apache2/php.ini
sed -i 's/;opcache.enable_cli=0/opcache.enable_cli=1/g' /etc/php/7.0/apache2/php.ini
sed -i 's/;opcache.interned_strings_buffer=4/opcache.interned_strings_buffer=8/g' /etc/php/7.0/apache2/php.ini
sed -i 's/;opcache.max_accelerated_files=2000/opcache.max_accelerated_files=10000/g' /etc/php/7.0/apache2/php.ini
sed -i 's/;opcache.memory_consumption=64/opcache.memory_consumption=128/g' /etc/php/7.0/apache2/php.ini
sed -i 's/;opcache.save_comments=1/opcache.save_comments=1/g' /etc/php/7.0/apache2/php.ini
sed -i 's/;opcache.revalidate_path=0/opcache.revalidate_freq=1/g' /etc/php/7.0/apache2/php.ini
sed -i 's/post_max_size = 8M/post_max_size = 2000M/g' /etc/php/7.0/apache2/php.ini
sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 2000M/g' /etc/php/7.0/apache2/php.ini
sed -i 's/max_file_uploads = 20/max_file_uploads = 200/g' /etc/php/7.0/apache2/php.ini
echo "<IfModule mod_headers.c>
Header always set Strict-Transport-Security 'max-age=15768000; preload'
</IfModule>" | sudo tee -a /etc/apache2/sites-available/000-default.conf
sudo mkdir -p /var/nextcloud
sudo mv -v /var/www/html/nextcloud/data /var/nextcloud/data
sudo cp -p /var/www/html/nextcloud/config/config.php /var/www/html/nextcloud/config/config.php.bk
sed -i 's/www\/html\///g' /var/www/html/nextcloud/config/config.php
sudo service apache2 restart
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
sudo mkdir -p /etc/apache2/ssl
sudo openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt
sudo a2enmod ssl
sed -i 's/\/etc/ssl\/certs\/ssl-cert-snakeoil.pem/\/etc\/apache2\/ssl\/apache.crt/g' /etc/apache2/sites-available/default-ssl.conf
sed -i 's/\/etc/ssl\/certs\/ssl-cert-snakeoil.key/\/etc\/apache2\/ssl\/apache.key/g' /etc/apache2/sites-available/default-ssl.conf
sudo a2ensite default-ssl.conf
sudo service apache2 restart
truncate -s 0 /etc/apache2/sites-available/000-default.conf
echo "<VirtualHost *:80>
ServerAdmin example@example
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security 'max-age=15768000; preload'
</IfModule>" | sudo tee -a /etc/apache2/sites-available/000-default.conf
sudo a2enmod rewrite
sudo service apache2 restart
fi
if [ "$prompt" = "2" ];
then
eval "$_SERVERS_MYSQL_NEW_USER"
sleep 2
echo "
Returning to the Nextcloud Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_NEXTCLOUD"
fi
if [ "$prompt" = "3" ];
then
eval "$_SERVERS_MYSQL_NEW_DATABASE"
sleep 2
echo "
Returning to the Nextcloud Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_NEXTCLOUD"
fi
if [ "$prompt" = "4" ];
then
read -p "
Would you like to grant a MySQL user access to a database? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
eval "$_SERVERS_MYSQL_GRANT_PRIVILEGES"
fi
sleep 2
echo "
Returning to the Nextcloud Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_NEXTCLOUD"
fi
#!/usr/bin/env bash
echo "
██████╗ ██╗ ██╗██████╗
██╔══██╗██║ ██║██╔══██╗
██████╔╝███████║██████╔╝
██╔═══╝ ██╔══██║██╔═══╝
██║ ██║ ██║██║
╚═╝ ╚═╝ ╚═╝╚═╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
read -p "
Would you like to install PHP7.0? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install -t stretch -y php7.0 php7.0-fpm php7.0-cli php7.0-opcache php7.0-mbstring php7.0-curl php7.0-zip php7.0-xml php7.0-gd php7.0-mysql libapache2-mod-php7.0
if [ ! -e /var/www/{public,private,logs,backup,vhosts} ]
then
mkdir -p /var/www/{public,private,logs,backup,vhosts}
#echo "<?php phpinfo();" > /var/www/public/index.php
fi
echo "
PHP7.0 has been installed!"
sleep 2
fi
#!/usr/bin/env bash
# PhpMyAdmin
echo "
██████╗ ██╗ ██╗██████╗ ███╗ ███╗██╗ ██╗ █████╗ ██████╗ ███╗ ███╗██╗███╗ ██╗
██╔══██╗██║ ██║██╔══██╗████╗ ████║╚██╗ ██╔╝██╔══██╗██╔══██╗████╗ ████║██║████╗ ██║
██████╔╝███████║██████╔╝██╔████╔██║ ╚████╔╝ ███████║██║ ██║██╔████╔██║██║██╔██╗ ██║
██╔═══╝ ██╔══██║██╔═══╝ ██║╚██╔╝██║ ╚██╔╝ ██╔══██║██║ ██║██║╚██╔╝██║██║██║╚██╗██║
██║ ██║ ██║██║ ██║ ╚═╝ ██║ ██║ ██║ ██║██████╔╝██║ ╚═╝ ██║██║██║ ╚████║
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝
"
read -p "
Do you want to install PhpMyAdmin? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install -t stretch -y phpmyadmin
ln -s /usr/share/phpmyadmin /var/www/piRadio/public
apt --fix-broken install -y
echo "http://192.168.XXX.XXX/phpmyadmin to enter PhpMyAdmin"
fi
#!/usr/bin/env bash
# Wordpress
echo "
██╗ ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██████╗ ███████╗███████╗███████╗
██║ ██║██╔═══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔════╝██╔════╝
██║ █╗ ██║██║ ██║██████╔╝██║ ██║██████╔╝██████╔╝█████╗ ███████╗███████╗
██║███╗██║██║ ██║██╔══██╗██║ ██║██╔═══╝ ██╔══██╗██╔══╝ ╚════██║╚════██║
╚███╔███╔╝╚██████╔╝██║ ██║██████╔╝██║ ██║ ██║███████╗███████║███████║
╚══╝╚══╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Install |
| 2 - Launch Chromium |
| 3 - MySQL - New User |
| 4 - MySQL - New Database |
| 5 - MySQL - Grant Privileges |
| b - Back to Servers Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != '4' ]] && [[ $prompt != '5' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_SERVERS_WORDPRESS"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_SERVERS"
fi
if [ "$prompt" = "1" ]
then
read -p "
Do you want to download the latest version of Wordpress? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
What would you like to name the root directory for your site? (i.e piRadio)
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read DOC_ROOT
echo "
What port would you like you WordPress site to be accesible throug?
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read DOC_PORT
mkdir /var/www/$DOC_ROOT
wget http://wordpress.org/latest.tar.gz
#mv latest.tar.gz /var/www/$DOC_ROOT
#tar xzf /var/www/$DOC_ROOT/latest.tar.gz
tar xzf latest.tar.gz
mv wordpress/* /var/www/$DOC_ROOT
rm -rf wordpress latest.tar.gz
chown -R www-data:www-data /var/www
adduser pi www-data
rm /var/www/$DOC_ROOT/index.html
touch /etc/apache2/sites-enabled/$DOC_ROOT.conf
echo "Listen $DOC_PORT
<VirtualHost *:$DOC_PORT>
DocumentRoot "/var/www/$DOC_ROOT"
# Other directives here
</VirtualHost>" | sudo tee -a /etc/apache2/sites-enabled/$DOC_ROOT.conf
set -e
fi
fi
if [ "$prompt" = "2" ];
then
chromium-browser -no-sandbox 127.0.0.1 &
sleep 2
echo "Returning to the Wordpress Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_WORDPRESS"
fi
if [ "$prompt" = "3" ];
then
eval "$_SERVERS_MYSQL_NEW_USER"
sleep 2
echo "
Returning to the Wordpress Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_WORDPRESS"
fi
if [ "$prompt" = "4" ];
then
eval "$_SERVERS_MYSQL_NEW_DATABASE"
sleep 2
echo "
Returning to the Wordpress Menu in:"
eval "$_COUNTDOWN"
eval "$_SERVERS_WORDPRESS"
fi
if [ "$prompt" = "5" ];
then
read -p "
Would you like to grant a MySQL user access to a database? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
eval "$_SERVERS_MYSQL_GRANT_PRIVILEGES"
fi
fi
#!/usr/bin/env bash
echo "
███████╗████████╗ █████╗ ████████╗██╗ ██████╗ ██╗██████╗
██╔════╝╚══██╔══╝██╔══██╗╚══██╔══╝██║██╔════╝ ██║██╔══██╗
███████╗ ██║ ███████║ ██║ ██║██║ ██║██████╔╝
╚════██║ ██║ ██╔══██║ ██║ ██║██║ ██║██╔═══╝
███████║ ██║ ██║ ██║ ██║ ██║╚██████╗ ██║██║
╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝╚═╝
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - eth0 |
| 2 - wlan0 |
| 3 - Other |
| b - Network Utility Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] && [[ $prompt != 'b' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_STATIC_IP"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
### ETH0 ###
if [ "$prompt" = "1" ];
then
read -p "
Do you want to set a static ip for eth0?
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
Please enter the ip address of your router (i.e. 192.168.0.1), followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read ROUTER_IP
echo "
Please enter the static ip address to be used for the interface eth0, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read ETH_IP
echo "interface eth0
static ip_address=$ETH_IP/24
static routers=$ROUTER_IP
static domain_name_servers=$ROUTER_IP"| sudo tee -a /etc/dhcpcd.conf
fi
sleep 2
echo "
Returning to the Static IP Menu in:"
eval "$_COUNTDOWN"
eval "$_STATIC_IP"
fi
### WLAN0 ###
if [ "$prompt" = "2" ];
then
read -p "
Do you want to set a static ip for wlan0?
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
Please enter the ip address of your router (i.e. 192.168.0.1), followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read ROUTER_IP
echo "
Please enter the static ip address to be used for the interface wlan0, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read WLAN_IP
echo "interface wlan0
static ip_address=$WLAN_IP/24
static routers=$ROUTER_IP
static domain_name_servers=$ROUTER_IP"| sudo tee -a /etc/dhcpcd.conf
fi
sleep 2
echo "
Returning to the Static IP Menu in:"
eval "$_COUNTDOWN"
eval "$_STATIC_IP"
fi
### OTHER ###
if [ "$prompt" = "3" ];
then
echo "
Please enter the name of the interface (i.e. wlan1), followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read OTHER_INTERFACE
read -p "
Do you want to set a static ip for $OTHER_INTERFACE?
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "
Please enter the static ip address to be used for the interface $OTHER_INTERFACE, followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read OTHER_INTERFACE_IP
echo "
Please enter the ip address of your router (i.e. 192.168.0.1), followed by [ENTER]
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:"
read ROUTER_IP
echo "interface $OTHER_INTERFACE
static ip_address=$OTHER_INTERFACE_IP/24
static routers=$ROUTER_IP
static domain_name_servers=$ROUTER_IP"| sudo tee -a /etc/dhcpcd.conf
fi
sleep 2
echo "
Returning to the Static IP Menu in:"
eval "$_COUNTDOWN"
eval "$_STATIC_IP"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_NETWORK_UTILITY"
fi
#!/usr/bin/env bash
# Transmission/Transmission-Daemon
echo "
████████╗██████╗ █████╗ ███╗ ██╗███████╗███╗ ███╗██╗███████╗███████╗██╗ ██████╗ ███╗ ██╗
╚══██╔══╝██╔══██╗██╔══██╗████╗ ██║██╔════╝████╗ ████║██║██╔════╝██╔════╝██║██╔═══██╗████╗ ██║
██║ ██████╔╝███████║██╔██╗ ██║███████╗██╔████╔██║██║███████╗███████╗██║██║ ██║██╔██╗ ██║
██║ ██╔══██╗██╔══██║██║╚██╗██║╚════██║██║╚██╔╝██║██║╚════██║╚════██║██║██║ ██║██║╚██╗██║
██║ ██║ ██║██║ ██║██║ ╚████║███████║██║ ╚═╝ ██║██║███████║███████║██║╚██████╔╝██║ ╚████║
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝
"
echo "
__ __
| \/ |
| \ / | ___ _ __ _ _
| |\/| | / _ \| '_ \ | | | |
| | | || __/| | | || |_| |
|_| |_| \___||_| |_| \__,_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| h - Help |
| m - Main Menu |
| 1 - Transmission |
| 2 - Transmission Daemon |
| 3 - Configure Daemon |
| b - Utility Menu |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
"
read -p "
What would you like to do?
:" prompt
while [[ $prompt != 'h' ]] && [[ $prompt != 'm' ]] && [[ $prompt != '1' ]] && [[ $prompt != '2' ]] && [[ $prompt != '3' ]] || [[ $prompt == '' ]]
do
read -p "Please enter a valid option: " prompt
done
if [ "$prompt" = "h" ]
then
eval "$_HELP_TRANSMISSION"
fi
if [ "$prompt" = "m" ]
then
eval "$_MENU_MAIN_RETURN"
fi
if [ "$prompt" = "1" ]
then
read -p "
Do you want to install Transmission? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install transmission -y
echo "
Transmission has been installed!
"
fi
sleep 1
echo "
Returning to the Tranmission Menu in:
"
eval "$_COUNTDOWN"
eval "$_TRANSMISSION"
fi
if [ "$prompt" = "2" ]
then
read -p "
Do you want to install Transmission Daemon? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install transmission-daemon -y
echo "
Transmission Daemon has been installed!
"
fi
sleep 1
echo "
Returning to the Tranmission Menu in:
"
eval "$_COUNTDOWN"
eval "$_TRANSMISSION"
fi
if [ "$prompt" = "3" ]
then
read -p "
Do you want to configure Transmission Daemon for Pinomite Radio? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
truncate -s 0 /etc/transmission-daemon/settings.json
service transmission-daemon stop
echo '{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/home/pi/Downloads",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 0,
"idle-seeding-limit-enabled": true,
"incomplete-dir": "/home/pi/Downloads",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "raspberry",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "admin",
"rpc-whitelist": "*.*.*.*",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": true,
"seed-queue-size": 0,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 0,
"speed-limit-up-enabled": true,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 2,
"upload-limit": 0,
"upload-limit-enabled": 1,
"upload-slots-per-torrent": 0,
"utp-enabled": true
}' | sudo tee -a /etc/transmission-daemon/settings.json
service transmission-daemon start
echo "service transmission-daemon restart" | sudo tee -a /etc/init.d/piRadioBoot.sh
echo "
Transmission has been configured!
"
fi
sleep 1
echo "
Returning to the Tranmission Menu in:
"
eval "$_COUNTDOWN"
eval "$_TRANSMISSION"
fi
if [ "$prompt" = "b" ]
then
eval "$_MENU_UTILITY"
fi
#!/usr/bin/env bash
read -p "
Do you want to install the Gparted? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install gparted -y
fi
#!/usr/bin/env bash
read -p "
Do you want to install the LibreOffice? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
apt-get install libreoffice -y
fi
echo ""| sudo tee -a /boot/config.txt
echo "# Rotate Display / Touch"| sudo tee -a /boot/config.txt
echo "lcd_rotate=2"| sudo tee -a /boot/config.txt
sudo reboot
#!/usr/bin/env bash
read -p "
Do you want to add the Raspbian Stretch Sources? <y/n>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
:" prompt
if [ "$prompt" = "y" ];
then
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release
echo "
Stretch sources have been added to /etc/apt/sources.list.d/stretch.list"
fi
#!/usr/bin/env bash
apt-get update
#!/usr/bin/env bash
apt-get upgrade -y
apt-get dist-upgrade -y
sudo touch /usr/bin/zram.sh
echo "#!/bin/bash"| sudo tee -a /usr/bin/zram.sh
echo "modprobe zram num_devices=4"| sudo tee -a /usr/bin/zram.sh
echo ""| sudo tee -a /usr/bin/zram.sh
echo "totalmem=`free | grep -e '^Mem:' | awk '{print $2}'`"| sudo tee -a /usr/bin/zram.sh
echo "mem=$(( ($totalmem / 4)* 1024))"| sudo tee -a /usr/bin/zram.sh
echo ""| sudo tee -a /usr/bin/zram.sh
echo "echo $mem > /sys/block/zram0/disksize"| sudo tee -a /usr/bin/zram.sh
echo "echo $mem > /sys/block/zram1/disksize"| sudo tee -a /usr/bin/zram.sh
echo "echo $mem > /sys/block/zram2/disksize"| sudo tee -a /usr/bin/zram.sh
echo "echo $mem > /sys/block/zram3/disksize"| sudo tee -a /usr/bin/zram.sh
echo ""| sudo tee -a /usr/bin/zram.sh
echo "mkswap /dev/zram0"| sudo tee -a /usr/bin/zram.sh
echo "mkswap /dev/zram1"| sudo tee -a /usr/bin/zram.sh
echo "mkswap /dev/zram2"| sudo tee -a /usr/bin/zram.sh
echo "mkswap /dev/zram3"| sudo tee -a /usr/bin/zram.sh
echo ""| sudo tee -a /usr/bin/zram.sh
echo "swapon -p 5 /dev/zram0"| sudo tee -a /usr/bin/zram.sh
echo "swapon -p 5 /dev/zram1"| sudo tee -a /usr/bin/zram.sh
echo "swapon -p 5 /dev/zram2"| sudo tee -a /usr/bin/zram.sh
echo "swapon -p 5 /dev/zram3"| sudo tee -a /usr/bin/zram.sh
sudo chmod +x /usr/bin/zram.sh
sudo sed -i 's/exit 0/\/usr\/bin\/zram.sh \&/g' /etc/rc.local
echo "exit 0"| sudo tee -a /etc/rc.local

How to make sure a valid menu option is selected

while [[ $prompt != '' ]] && [[ $prompt != '' ]] || [[ $prompt == '' ]] # While string is different from ___ or ___ or is empty... do read -p "Please enter a valid option: " prompt string # Ask the user to enter a string done

How to find and replace in a file - this exaple replaces 'html' with 'private'

sed -i 's/html/private/g' /var/www/html/nextcloud/config/config.php

Check log / add to log

if [ ! -f /var/log/pinomite.log ]; then $$$[ CODE GOES HERE ]$$$ touch /var/log/pinomite.log echo "$$$[ LOG TXT GOES HERE ]$$$" | sudo tee -a /var/log/pinomite.log $$$[ CODE GOES HERE ]$$$ else if grep -Fxq "$$$[ LOG TXT GOES HERE ]$$$" /var/log/pinomite.log then echo "$$$[ CONFIRMATION TXT GOES HERE ]$$$"
else $$$[ CODE GOES HERE ]$$$ touch /var/log/pinomite.log echo "$$$[ LOG TXT GOES HERE ]$$$" | sudo tee -a /var/log/pinomite.log $$$[ CODE GOES HERE ]$$$ fi fi

#This section is simply used for notes or code in process. The content will likely change often.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment