-
Notifications
You must be signed in to change notification settings - Fork 9
/
nZEDb-1.sh
73 lines (63 loc) · 2.01 KB
/
nZEDb-1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
# Script Name: nZEDb Setup - Part 1
# Author: PREngineer - [email protected]
# License: Personal Use (1 device)
# IMPORTANT: RUN THIS SCRIPT FIRST!
# This Script contains the Pre-requisites
# Before the first reboot.
#############################################
# Color definition variables
YELLOW='\e[33;3m'
RED='\e[91m'
BLACK='\033[0m'
CYAN='\e[96m'
GREEN='\e[92m'
# Make sure to clear the Terminal
clear
# Display the Title Information
echo
echo -e $RED
echo -e " nZEDb"
echo -e "╦╔╗╔╔═╗╔╦╗╔═╗╦ ╦ ╔═╗╦═╗"
echo -e "║║║║╚═╗ ║ ╠═╣║ ║ ║╣ ╠╦╝"
echo -e "╩╝╚╝╚═╝ ╩ ╩ ╩╩═╝╩═╝╚═╝╩╚═"
echo -e $CYAN
echo -e "Brought to you by PREngineer"
echo
echo -e $GREEN'nZEDb Server Setup - Part 1'$BLACK
echo
echo -e $RED'1. This script has been tested on Ubuntu (Server & Desktop).'
echo -e '2. The author(s) cannot be held accountable for any problems that might occur if you run this script.'
echo -e '3. Proceed only if you authorize this script to make changes to your system.'$BLACK
echo
echo -e $YELLOW
echo -e "---> [Installing VMware Tools...]"$BLACK
sudo apt-get install open-vm-tools -y > /dev/null
echo -e $GREEN
echo -e "DONE!"
echo -e $YELLOW
echo -e "---> [Removing App Armor...]"$BLACK
sudo /etc/init.d/apparmor stop > /dev/null
sudo /etc/init.d/apparmor teardown > /dev/null
sudo update-rc.d -f apparmor remove
echo -e $GREEN
echo -e "DONE!"
echo -e $YELLOW
echo -e "---> [Installing Pyton 3...]"$BLACK
sudo apt-get install python3-setuptools python3-pip -y > /dev/null
sudo python3 -m easy_install pip > /dev/null
sudo easy_install3 cymysql > /dev/null
echo -e $GREEN
echo -e "DONE!"
echo -e $YELLOW
echo -e "---> [Updating System & Apps...]"$BLACK
sudo apt-get update -y > /dev/null
sudo apt-get upgrade -y > /dev/null
echo -e $GREEN
echo -e "DONE!"
echo -e $YELLOW
echo -e "---> [Rebooting...]"$BLACK
read -p "Press [Enter] to Reboot..."
sudo reboot now
echo -e $GREEN
echo -e "DONE!"$BLACK