From 43b3e3a788e77ec305df32c6289502871efdd8b2 Mon Sep 17 00:00:00 2001 From: Bhavesh0327 Date: Mon, 30 Mar 2020 18:57:14 +0530 Subject: [PATCH 1/3] [ADD] Added installer script for installing mysql-server --- installers/mysql-server/installer.sh | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 installers/mysql-server/installer.sh diff --git a/installers/mysql-server/installer.sh b/installers/mysql-server/installer.sh new file mode 100644 index 0000000..87bf3bd --- /dev/null +++ b/installers/mysql-server/installer.sh @@ -0,0 +1,35 @@ +# Download and Install the Latest Updates for the OS +apt-get update && apt-get upgrade -y + +# Install essential packages +apt-get -y install zsh htop + +# Install MySQL Server in a Non-Interactive mode. Default root password will be "root" +echo "mysql-server-8.0 mysql-server/root_password password root" | sudo debconf-set-selections +echo "mysql-server-8.0 mysql-server/root_password_again password root" | sudo debconf-set-selections +apt-get -y install mysql-server-8.6 + +#This utility prompts you to define the mysql root password and other security-related options, including removing remote access to the root user and setting the root password. +mysql_secure_installation utility + +# Enable Ubuntu Firewall and allow SSH & MySQL Ports +ufw enable +ufw allow 22 +ufw allow 3306 + +# Run the MySQL Secure Installation wizard +mysql_secure_installation + +#start the mysql service +systemctl start mysql +systemctl enable mysql + +#configure interfaces +sed -i 's/127\.0\.0\.1/0\.0\.0\.0/g' /etc/mysql/my.cnf +mysql -uroot -p -e 'USE mysql; UPDATE `user` SET `Host`="%" WHERE `User`="root" AND `Host`="localhost"; DELETE FROM `user` WHERE `Host` != "%" AND `User`="root"; FLUSH PRIVILEGES;' + +#restarting the service mysql +service mysql restart + +#running mysql +/usr/bin/mysql -u root -p From 4dedac159269317fe3524ae48d7b63f6ba342da4 Mon Sep 17 00:00:00 2001 From: Bhavesh0327 Date: Mon, 30 Mar 2020 19:41:12 +0530 Subject: [PATCH 2/3] [ADD] Added installer script for installing ffmpeg --- installers/ffmpeg/installer.sh | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 installers/ffmpeg/installer.sh diff --git a/installers/ffmpeg/installer.sh b/installers/ffmpeg/installer.sh new file mode 100755 index 0000000..f7839aa --- /dev/null +++ b/installers/ffmpeg/installer.sh @@ -0,0 +1,35 @@ +#!/bin/sh + + +APT_GET_CMD=$(which apt-get) # apt package manager for Ubuntu & other Debian based distributions +DNF_CMD=$(which dnf) # dnf package manager for new RHEL & CentOS +YUM_CMD=$(which yum) # yum package manager for RHEL & CentOS +PACMAN_CMD=$(which pacman) # pacman package manager for ArchLinux +APK_CMD=$(which apk) # apk package manager for Alpine + + if [ ! -z $APT_GET_CMD ]; then + sudo apt-get update + sudo apt-get upgrade + sudo apt-get install ffmpeg ffmpeg-devel + elif [ ! -z $DNF_CMD ]; then + sudo dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm + sudo dnf localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm + sudo dnf install --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm + sudo dnf install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm + sudo dnf install ffmpeg + sudo dnf -y install ffmpeg-devel + elif [ ! -z $YUM_CMD ]; then + sudo yum install epel-release + sudo rpm -v --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro + sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm + sudo yum install ffmpeg ffmpeg-devel + elif [ ! -z $PACMAN_CMD ]; then + pacman -Syu ffmpeg + elif [ ! -z $APK_CMD ]; then + sudo apk add --no-cache ffmpeg + else + echo "Couldn't install package" + exit 1; + fi + +ffmpeg -version \ No newline at end of file From e2846e56acff5b8f75fccd54ba507ed9b2dfd6f2 Mon Sep 17 00:00:00 2001 From: Bhavesh0327 Date: Mon, 30 Mar 2020 20:07:39 +0530 Subject: [PATCH 3/3] [ADD] Added installer script for installing halyard --- installers/halyard/installer.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 installers/halyard/installer.sh diff --git a/installers/halyard/installer.sh b/installers/halyard/installer.sh new file mode 100644 index 0000000..0de1153 --- /dev/null +++ b/installers/halyard/installer.sh @@ -0,0 +1,14 @@ +#!/bin/sh + + +#Downloading the installer file directly from official repo of halyard +curl -O https://raw.githubusercontent.com/spinnaker/halyard/master/install/debian/InstallHalyard.sh + +#Running the bash script +sudo bash InstallHalyard + +#Verifying the install +hal -v + +#To enable command completion +. ~/.bashrc \ No newline at end of file