/
run
executable file
·356 lines (315 loc) · 7.29 KB
/
run
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
#!/bin/bash
clear
echo -e $MAGENTA" <= !!! Welcome to TNT we are testing your system to check the compatibility !!! =>"
echo -e $BLUE"#$NORMAL"
echo -e $BLUE"# Debug Return:"
echo -e $BLUE"#$NORMAL"
#Check root
source scripts/check_root
#Fixe Permission
sudo chmod -R 777 scripts/*
echo -e $GREEN"-> Permissions Verified"$NORMAL
#System Functions
source scripts/functions_system
echo -e $GREEN"-> Add All System Functions Verified"$NORMAL
#Color injection
source scripts/colors
echo -e $GREEN"-> Add Colorisation for Terminal Verified"$NORMAL
#Ajust Terminal Dimension
echo -ne '\e[8;13;93t'
echo -e $GREEN"-> Terminal Dimension Verified"$NORMAL
#Icone injection
source scripts/icones
echo -e $GREEN"-> Add some links to icone from system Verified"$NORMAL
#System info
source info_system
echo -e $GREEN"-> Add some links to icone from system Verified"$NORMAL
#Fonctions with update
source scripts/functions_with_update
echo -e $GREEN"-> Add All Functions With Update Verified"$NORMAL
#Function with reboot
source scripts/functions_with_reboot
echo -e $GREEN"-> Add All Functions With Reboot Verified"$NORMAL
#Fonctions
source scripts/functions
echo -e $GREEN"-> Add All others Functions Verified"$NORMAL
#Check Distro
source scripts/check_distro
#Check Architecture
source scripts/check_archi
#Check programm open
source scripts/check_open
#Check Internet connection
source scripts/check_connection
#Check needed Package
source scripts/check_package
#Check for update
source scripts/check_update
#Title TNT
source scripts/title
#Copyright
source scripts/copyright
#Update before continue
zenity --question --text="Updates your packages,\nMay be required before continuing...\n\nDo you wish to update?"
if [ $? == 0 ]
then
(
echo "# Update All Packages..." ;
sudo apt-get -qq update
) |
progressbar
echo -e $GREEN"-> Latest Package Version Verified"$NORMAL
fi
#Main menu
while :
do
ans=$(zenity --list \
--width=770 \
--height=670 \
--title "TNT $VERSION MAIN MENU" \
--text "Choose a options:" \
--cancel-label "Exit" \
--column "Actions" --column "Informations" \
"Install" "Add Mod/applications." \
"Remove" "Remove Mod/applications." \
"Android" "Add Tools for Android." \
"Clean" "Clean/Remove all old package/kernels." \
"Update" "Update all package or distribution." \
"Admin" "Use and execute spécial command administration." \
--separator=":"
)
if [ $? == 1 ]
then
quit
fi
menu=$(echo $ans | tr "\:" "\n")
for x in $menu
do
if [ $x = "Install" ]
then
ans=$(zenity --list \
--width=770 \
--height=670 \
--title "TNT $VERSION - Install - Add Mod/applications." \
--text "Select what you need:" \
--cancel-label "Back" \
--ok-label "Install Selected" \
--checklist \
--column "Select" --column "App. Name" --column "Informations" --column "Update?" --column "Reboot?" \
FALSE "LBreakout" "A clone of the classic game Breakout." "NO" "NO" \
FALSE "OpenArena" "Games Like Quake 3." "NO" "NO" \
FALSE "Cheese" "WebCam Application." "NO" "NO" \
FALSE "Gimp" "GNU Image Manipulation Program." "YES" "NO" \
FALSE "Google-Chrome" "A fast and free Web browser." "YES" "NO" \
FALSE "Nvidia" "Official owner of nvidia driver." "NO" "YES" \
FALSE "Google-Music-Manager" "Official Google Musique Uploader." "YES" "NO" \
FALSE "Skype" "Official Skype application." "YES" "NO" \
--separator=":"
)
if [ $? == 1 ]
then
echo
fi
arr=$(echo $ans | tr "\:" "\n")
if [ $? == 0 ]
then
echo -e $BLUE"#"
echo -e $BLUE"#$RED Installer Info:"
echo -e $BLUE"#$NORMAL"
fi
for x in $arr
do
if [ $x = "Gimp" ]
then
GimpPrep
fi
if [ $x = "Google-Chrome" ]
then
GoogleChromePrep
fi
done
if [ $UPDATEREQUIRED == YES ]
then
(
echo "# Update All Packages..." ;
sudo apt-get -qq update
) |
progressbar
echo -e $GREEN"-> Latest Package Version Verified"$NORMAL
fi
for x in $arr
do
if [ $x = "LBreakout" ]
then
LBreakout
fi
if [ $x = "OpenArena" ]
then
OpenArena
fi
if [ $x = "Cheese" ]
then
Cheese
fi
if [ $x = "Gimp" ]
then
Gimp
fi
if [ $x = "Google-Chrome" ]
then
GoogleChrome
fi
if [ $x = "Nvidia" ]
then
Nvidia
fi
if [ $x = "Google-Music-Manager" ]
then
GoogleMusicManager
fi
if [ $x = "Skype" ]
then
Skype
fi
done
fi
if [ $x = "Remove" ]
then
ans=$(zenity --list \
--width=770 \
--height=670 \
--title "TNT $VERSION - Remove - Remove Mod/applications." \
--text "Select what you want to remove:" \
--cancel-label "Back" \
--ok-label "Remove Selected" \
--checklist \
--column "Select" --column "App. Name" --column "Informations" --column "Update?" --column "Reboot?" \
FALSE "LBreakout" "A clone of the classic game Breakout." "NO" "NO" \
FALSE "OpenArena" "Games Like Quake 3." "NO" "NO" \
FALSE "Cheese" "WebCam Application." "NO" "NO" \
FALSE "Gimp" "GNU Image Manipulation Program." "YES" "NO" \
FALSE "Google-Chrome" "A fast and free Web browser." "YES" "NO" \
FALSE "Nvidia" "Official owner of nvidia driver." "NO" "YES" \
FALSE "Google-Music-Manager" "Official Google Musique Uploader." "YES" "NO" \
--separator=":"
)
if [ $? == 1 ]
then
echo
fi
arr=$(echo $ans | tr "\:" "\n")
if [ $? == 0 ]
then
echo -e $BLUE"#"
echo -e $BLUE"#$RED Remove Info:"
echo -e $BLUE"#$NORMAL"
fi
if [ $UPDATEREQUIRED == YES ]
then
(
echo "# Update All Packages..." ;
sudo apt-get -qq update
) |
progressbar
echo -e $GREEN"-> Latest Package Version Verified"$NORMAL
fi
for x in $arr
do
if [ $x = "LBreakout" ]
then
RMLBreakout
fi
if [ $x = "OpenArena" ]
then
RMOpenArena
fi
if [ $x = "Cheese" ]
then
RMCheese
fi
if [ $x = "Gimp" ]
then
RMGimp
fi
if [ $x = "Google-Chrome" ]
then
RMGoogleChrome
fi
if [ $x = "Nvidia" ]
then
RMNvidia
fi
if [ $x = "Google-Music-Manager" ]
then
RMGoogleMusicManager
fi
done
fi
if [ $x = "Android" ]
then
notify-send -i $ICO_INFO "INFO" "Coming soon"
fi
if [ $x = "Clean" ]
then
ans=$(zenity --list \
--width=770 \
--height=670 \
--title "TNT $VERSION - Clean - Clean/Remove all old package/kernels." \
--text "Select what you need:" \
--cancel-label "Back" \
--ok-label "Clean Selected" \
--checklist \
--column "Select" --column "App. Name" --column "Informations" --column "Update?" --column "Reboot?" \
FALSE "Oldpack" "Delete all old packages." "NO" "NO" \
FALSE "Cachepack" "Delete all packages in the cache." "NO" "NO" \
--separator=":"
)
if [ $? == 1 ]
then
echo
fi
arr=$(echo $ans | tr "\:" "\n")
if [ $? == 0 ]
then
echo -e $BLUE"#"
echo -e $BLUE"#$RED Cleanner Info:"
echo -e $BLUE"#$NORMAL"
fi
for x in $arr
do
if [ $x = "xxxxx" ]
then
xxxxx
fi
done
if [ $UPDATEREQUIRED == YES ]
then
(
echo "# Update All Packages..." ;
sudo apt-get -qq update
) |
progressbar
echo -e $GREEN"-> Latest Package Version Verified"$NORMAL
fi
for x in $arr
do
if [ $x = "Oldpack" ]
then
Oldpack
fi
if [ $x = "Cachepack" ]
then
Cachepack
fi
done
fi
if [ $x = "Update" ]
then
notify-send -i $ICO_INFO "INFO" "Coming soon"
fi
if [ $x = "Admin" ]
then
notify-send -i $ICO_INFO "INFO" "Coming soon"
fi
done
done