SHARE
TWEET

AUTIDZ v1.1 - Software installer

shutdown57 Sep 16th, 2019 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #
  3. # AUTIDZ - Sofware utils installer alinko version.
  4. # Author : shutdown57 < alinkokomansuby@gmail.com >
  5. # Date modified : 16 September 2019
  6. # Version : 1.1
  7. # Tested ubuntu 18.04 LTS
  8.  
  9. m="\033[1;31m"
  10. k="\033[1;33m"
  11. h="\033[1;32m"
  12. b="\033[1;34m"
  13. bl="\033[0;34m"
  14. n="\033[1;0m"
  15.  
  16. s57_cekonek(){
  17. clear
  18. echo "Checking internet Connection..."
  19. ping 8.8.8.8 -c 3 > /dev/null 2>&1
  20. if [[ $? -eq 0 ]]; then
  21. echo -e $h"[+] Yokatta ! You Are Online !"$n
  22. sleep 2
  23. else
  24. echo -e $m"[-] Gomennasai.. You Are Offline :( OR You internet to slow.."
  25. sleep 3
  26. s57_main__
  27. fi
  28. }
  29. s57_alert()
  30. {
  31.     echo ""
  32.     echo -e ${b}"[!]${n}[`date +%H:%m:%S`] ${1} ... ~ ${bl}./shutdown57${n}"
  33.     echo ""
  34. }
  35. s57_server_utils__()
  36. {
  37.     s57_cekonek
  38.     s57_alert "Updating system..."
  39.     apt-get update -y
  40.     s57_alert "Installing Apache2 & PHP ..."
  41.     apt-get install apache2 libapache2-mod-php php php-common php-curl php-zip php-mysql php-mbstring -y
  42.    
  43.     s57_alert "Creating info.php "
  44.     echo "<?php" >> /var/www/html/info.php
  45.     echo "phpinfo();" >> /var/www/html/info.php
  46.     echo "# by : alinko" >> /var/www/html/info.php
  47.     echo "?>" >> /var/www/html/info.php
  48.     xdg-open "http://localhost/info.php" >> /dev/null 2>&1
  49.     s57_alert "Installing mariadb-server"
  50.     apt-get install mariadb-server -y
  51.     s57_alert "MySQL Installation secure"
  52.     mysql_secure_installation
  53.     s57_alert "Installing phpmyadmin"
  54.     apt-get install phpmyadmin -y
  55.     s57_alert "Activating mod rewrite "
  56.     a2enmod rewrite
  57.     s57_alert "Restarting apache2"
  58.     /etc/init.d/apache2 restart
  59.     echo ""
  60.     echo "~ DONE ~"
  61.     sleep 2
  62. }
  63. s57_sublime__()
  64. {
  65.     s57_cekonek
  66.     s57_alert "Downloading Repository Sublime Text"
  67.     wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -
  68.     s57_alert "Installing dependencies"
  69.     apt-get install apt-transport-https -y
  70.     s57_alert "Adding Repository Sublime Text"
  71.     echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  72.     s57_alert "Updating system"
  73.     apt-get update -y
  74.     s57_alert "Installing sublime-text"
  75.     apt-get install sublime-text -y
  76.     echo ""
  77.     echo "~ DONE ~"
  78.     sleep 2
  79. }
  80. s57_brackets__()
  81. {
  82.     s57_cekonek
  83.     s57_alert "Adding repository Brackets .."
  84.     sudo add-apt-repository ppa:webupd8team/brackets
  85.     s57_alert "Updating system"
  86.     apt-get update -y
  87.     s57_alert "Installing Brackets"
  88.     apt-get install brackets -y
  89.     echo ""
  90.     echo "~ DONE ~"
  91.     sleep 2
  92. }
  93. s57_mv__()
  94. {
  95.     s57_cekonek
  96.     s57_alert "Installing mpv from Repository"
  97.     apt-get install mpv -y
  98.     s57_alert "Installing moc from Repository"
  99.     apt-get install moc -y
  100.     echo ""
  101.     echo "~ DONE ~"
  102.     echo ""
  103.     sleep 2
  104. }
  105. s57_usu__()
  106. {
  107.     s57_cekonek
  108.     s57_alert "Installing ubuntu-restricted-extras "
  109.     read -p "Ini akan memakan waktu yang cukup lama, apa anda ingin melanjutkan? [Y/n]" yn
  110.     if [[ $yn == "Y" || $yn == "" || $yn == "y" ]]; then
  111.         apt-get install ubuntu-restricted-extras -y
  112.     fi
  113.     echo ""
  114.     echo "~ DONE ~"
  115.     sleep 2
  116. }
  117. s57_pmod__()
  118. {
  119.     read -p "Module >>" module
  120.     cek=$(apt-cache search --names-only "php-${module}")
  121.     if [[ $cek =~  $module ]]; then
  122.         apt-get install php-${module} -y
  123.     else
  124.         s57_alert "Module php-${module} not exists in repository !"
  125.         exit
  126.     fi
  127. }
  128. s57_banner()
  129. {
  130.     clear
  131.     printf "${k}
  132.  
  133.    _         _   _     _    
  134.   / \  _   _| |_(_) __| |____
  135.  / _ \| | | | __| |/ _' |_  /
  136. / ___ \ |_| | |_| | (_| |/ /
  137. /_/   \_\__,_|\__|_|\__,_/___|
  138. ${n}
  139.  
  140. +------ [ ${b}Alinko Priv8 Software utils.${n}
  141. +----- [ ${k}Version :${n} 1.1 2019 Ubuntu 18.x or latest.
  142.  +---- [ ${m}Installer for fast work.${n}
  143.   +--- [ ${h}DEBIAN & UBUNTU BASED ${n}
  144.  
  145. [1] Lampp
  146. [2] Sublime Text
  147. [3] Brackets
  148. [4] Music & Video Player (mpv,mocp)
  149. [5] Ubuntu Software Utils.
  150. [6] PHP Module
  151. [7] Programming Package
  152. "
  153. }
  154. s57_main__(){
  155.  
  156. s57_banner
  157.  
  158. read -p "shutdown57 >>" aut
  159. if [[ $aut == 1 ]]; then
  160.  
  161.     s57_server_utils__
  162.     s57_main__
  163.  
  164. elif [[ $aut == 2 ]]; then
  165.  
  166.     s57_sublime__
  167.     s57_main__
  168.  
  169. elif [[ $aut == 3 ]]; then
  170.  
  171.     s57_brackets__
  172.     s57_main__
  173.  
  174. elif [[ $aut == 4 ]]; then
  175.  
  176.     s57_mv__
  177.     s57_main__
  178.  
  179. elif [[ $aut == 5 ]]; then
  180.  
  181.     s57_usu__
  182.     s57_main__
  183.  
  184. elif [[ $aut == 6 ]]; then
  185.    
  186.     s57_pmod__
  187.     s57_main__
  188.  
  189. elif [[ $aut == 0 ]]; then
  190.  
  191.     s57_init__
  192.     s57_main__
  193. elif [[ $aut == 7 ]]; then
  194.     s57_server_utils__
  195.     s57_sublime__
  196.     s57_brackets__
  197.     s57_main__
  198.  
  199. else
  200.     s57_main__
  201. fi
  202. }
  203.  
  204. if [[ `whoami` == "root" ]]; then
  205.     s57_main__
  206. else
  207.     echo "[JALANKAN SCRIPT INI DENGAN SUPER USER / ROOT ]"
  208. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top