-
Notifications
You must be signed in to change notification settings - Fork 1
/
autidz_v1.0.sh
197 lines (177 loc) · 4.27 KB
/
autidz_v1.0.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#!/bin/bash
#
# AUTIDZ - Sofware utils installer alinko version.
# Author : shutdown57 < [email protected] >
# Date modified : 13 Mei 2018
# Version : 1.0
#
m="\033[1;31m"
k="\033[1;33m"
h="\033[1;32m"
b="\033[1;34m"
bl="\033[0;34m"
n="\033[1;0m"
s57_cekonek(){
clear
echo "Checking internet Connection..."
ping 8.8.8.8 -c 3 > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
echo -e $h"[+] Yokatta ! You Are Online !"$n
sleep 2
else
echo -e $m"[-] Gomennasai.. You Are Offline :( OR You internet to slow.."
sleep 3
s57_main__
fi
}
s57_alert()
{
echo ""
echo -e ${b}"[!]${n}[`date +%H:%m:%S`] ${1} ... ~ ${bl}./shutdown57${n}"
echo ""
}
s57_server_utils__()
{
s57_cekonek
s57_alert "Installing Apache2"
apt-get install apache2 -y
s57_alert "Checking apache2"
cat /etc/apache2/apache2.conf > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
echo -e ${h}"[+] Apache2 Installed."${n}
else
echo -e ${m}"[-] Apache2 Not installed."${n}
exit
fi
s57_alert "Adding Repository for php"
add-apt-repository ppa:ondrej/php
s57_alert "Updating system"
apt-get update -y
s57_alert "Installing PHP5.6 && PHP7.0 "
apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-mbstring php7.0-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0 -y
s57_alert "Creating info.php "
echo "<?php" >> /var/www/html/info.php
echo "phpinfo();" >> /var/www/html/info.php
echo "# by : alinko" >> /var/www/html/info.php
echo "?>" >> /var/www/html/info.php
xdg-open "http://localhost/info.php" >> /dev/null 2>&1
s57_alert "Installing mariadb-server"
apt-get install mariadb-server -y
s57_alert "MySQL Installation secure"
mysql_secure_installation
s57_alert "Installing phpmyadmin"
apt-get install phpmyadmin -y
s57_alert "Activating mod rewrite "
a2enmod rewrite
s57_alert "Restarting apache2"
/etc/init.d/apache2 restart
echo ""
echo "~ DONE ~"
sleep 2
}
s57_sublime__()
{
s57_cekonek
s57_alert "Downloading Repository Sublime Text"
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -
s57_alert "Installing dependencies"
apt-get install apt-transport-https -y
s57_alert "Adding Repository Sublime Text"
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
s57_alert "Updating system"
apt-get update -y
s57_alert "Installing sublime-text"
apt-get install sublime-text -y
echo ""
echo "~ DONE ~"
sleep 2
}
s57_atom__()
{
s57_cekonek
s57_alert "Downloading Repository Atom"
curl -L https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
s57_alert "Updating system"
apt-get update -y
s57_alert "Installing atom"
apt-get install atom -y
echo ""
echo "~ DONE ~"
sleep 2
}
s57_mv__()
{
s57_cekonek
s57_alert "Installing mpv from Repository"
apt-get install mpv -y
s57_alert "Installing moc from Repository"
apt-get install moc -y
echo ""
echo "~ DONE ~"
echo ""
sleep 2
}
s57_usu__()
{
s57_cekonek
s57_alert "Installing ubuntu-restricted-extras "
read -p "Ini akan memakan waktu yang cukup lama, apa anda ingin melanjutkan? [Y/n]" yn
if [[ $yn == "Y" || $yn == "" || $yn == "y" ]]; then
apt-get install ubuntu-restricted-extras -y
fi
echo ""
echo "~ DONE ~"
sleep 2
}
s57_banner()
{
clear
printf "${k}
_ _ _ _
/ \ _ _| |_(_) __| |____
/ _ \| | | | __| |/ _' |_ /
/ ___ \ |_| | |_| | (_| |/ /
/_/ \_\__,_|\__|_|\__,_/___|
${n}
+------ [ ${b}Alinko Priv8 Software utils.${n}
+----- [ ${k}Version :${n} 1.0
+---- [ ${m}Installer for fast work.${n}
+--- [ ${h}DEBIAN & UBUNTU BASED ${n}
=> { 1 } WebDB Server Full.
=> { 2 } Sublime Text
=> { 3 } Atom
=> { 4 } Music & Video Player (mpv,mocp)
=> { 5 } Ubuntu Software Utils.
"
}
s57_main__(){
s57_banner
read -p "shutdown57 >>" aut
if [[ $aut == 1 ]]; then
s57_server_utils__
s57_main__
elif [[ $aut == 2 ]]; then
s57_sublime__
s57_main__
elif [[ $aut == 3 ]]; then
s57_atom__
s57_main__
elif [[ $aut == 4 ]]; then
s57_mv__
s57_main__
elif [[ $aut == 5 ]]; then
s57_usu__
s57_main__
elif [[ $aut == 0 ]]; then
s57_init__
s57_main__
else
s57_main__
fi
}
if [[ `whoami` == "root" ]]; then
s57_main__
else
echo "[JALANKAN SCRIPT INI DENGAN SUPER USER / ROOT ]"
fi