-
Notifications
You must be signed in to change notification settings - Fork 2
/
Linux-distro
310 lines (302 loc) · 8.76 KB
/
Linux-distro
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
#!/bin/bash
R="\033[1;31m"
G="\033[1;32m"
Y="\033[1;33m"
PU="\033[1;34m"
PI="\033[1;35m"
B="\033[1;36m"
W="\033[1;37m"
BL="\033[1;30m"
Purple="\e[38;5;93m"
Teal="\e[38;5;37m"
Pink="\e[38;5;206m"
Gold="\e[38;5;220m"
DarkGreen="\e[38;5;28m"
SkyBlue="\e[38;5;111m"
command -v proot-distro > /dev/null 2>&1 || { echo -e >&2 "${R}Error ${W}: proot-distro in package not Installed on Your System please install and run"; exit 1; }
command -v curl > /dev/null 2>&1 || { echo -e >&2 "${R}Error ${W}: curl in package not Installed on Your System please install and run"; exit 1; }
command -v wget > /dev/null 2>&1 || { echo -e >&2 "${R}Error ${W}: wget in package not Installed on Your System please install and run"; exit 1; }
clear
banner() {
echo -e "\033[1;31m"
echo -e "\t _| _|_|_| _| _| _| _| _| _| "
echo -e "\t _| _| _|_| _| _| _| _| _| "
echo -e "\t _| _| _| _| _| _| _| _| "
echo -e "\t _| _| _| _|_| _| _| _| _| "
echo -e "\t _|_|_|_| _|_|_| _| _| _|_| _| _| "
for ((i=1; i<=4; i++))
do
echo
done
echo -e "\t _|_|_| _|_|_| _|_|_| _|_|_|_|_| _|_|_| _|_| "
echo -e "\t _| _| _| _| _| _| _| _| _| "
echo -e "\t _| _| _| _|_| _| _|_|_| _| _| "
echo -e "\t _| _| _| _| _| _| _| _| _|"
echo -e "\t _|_|_| _|_|_| _|_|_| _| _| _| _|_| "
echo
}
banner
echo -e "\t\t\t\t\t\t\t${Teal}Version 11.O"
for ((i=1; i<=2; i++))
do
echo
done
echo -e "\t\t\t${SkyBlue}Code ${W}By ${Gold}Manjunath"
for ((i=1; i<=2; i++))
do
echo
done
echo -e "\t${PU}[ ${PI}1 ${PU}] ${G}Install Ubuntu Linux\n"
echo -e "\t${PU}[ ${PI}2 ${PU}] ${G}Install Debian Linux\n"
echo -e "\t${PU}[ ${PI}3 ${PU}] ${G}Install Alpine Linux\n"
echo -e "\t${PU}[ ${PI}4 ${PU}] ${G}Install Manjaro-aarch64 Linux\n"
echo -e "\t${PU}[ ${PI}5 ${PU}] ${G}Install Arch Linux\n"
echo -e "\t${PU}[ ${PI}6 ${PU}] ${G}Install OpenSuse Linux\n"
echo -e "\t${PU}[ ${PI}7 ${PU}] ${G}Install Fedora Linux\n"
echo -e "\t${PU}[ ${PI}8 ${PU}] ${G}Install Pardus Linux\n"
echo -e "\t${PU}[ ${PI}9 ${PU}] ${G}Install Viod Linux\n"
echo -e "\t${PU}[ ${PI}10 ${PU}] ${G}Install Kali Linux\n"
echo -e "\t${PU}[ ${PI}11 ${PU}] ${G}Install Deepin Linux\n"
echo -e "\t${PU}[ ${PI}12 ${PU}] ${G}Install Artix Linux\n"
echo -e "\t${PU}[ ${PI}13 ${PU}] ${G}Install All Linux Distros In One Click\n"
echo -e "\t${PU}[ ${PI}14 ${PU}] ${G}Install Backbox Linux\n"
echo -e "\t${PU}[ ${PI}15 ${PU}] ${G}Install Parrot Linux\n"
echo -e "\t${PU}[ ${PI}16 ${PU}] ${G}Install RaspberryPI Linux\n"
echo -e "\t${PU}[ ${PI}17 ${PU}] ${G}Remove Linux-Distro Info\n"
echo -e "\t${PU}[ ${PI}18 ${PU}] ${G}How To Run Linux-Distro Info\n"
echo -e "\t${PU}[ ${PI}00 ${PU}] ${G}Exit\n"
echo -e "\033[1;33m"
read -p "Enter Your Linux Distro : " Use
if [[ -z "$Use" || ! "$Use" =~ ^[0-9]+$ ]]; then
echo -e "\t${R}InvalidError : please Enter a valid Linux Distro Number..."
exit 1
fi
if [ $Use -eq 1 ]; then
clear
echo -e "\033[1;32m"
echo
proot-distro install ubuntu
touch $PATH/ubuntu
echo "proot-distro login ubuntu" > $PATH/ubuntu
chmod +x $PATH/ubuntu
echo
echo
elif [ $Use -eq 2 ]; then
clear
echo
proot-distro install debian
touch $PATH/debian
echo "proot-distro login debian" > $PATH/debian
chmod +x $PATH/debian
echo
elif [ $Use -eq 3 ]; then
clear
echo
proot-distro install alpine
touch $PATH/alpine
echo "proot-distro login alpine" > $PATH/alpine
chmod +x $PATH/alpine
echo
echo
elif [ $Use -eq 4 ]; then
clear
echo
proot-distro install manjaro-aarch64
touch $PATH/manjaro-aarch64
echo "proot-distro login manjaro-aarch64" > $PATH/manjaro-arrch64
chmod +x $PATH/manjaro-aarch64
echo
elif [ $Use -eq 5 ]; then
clear
echo
proot-distro install archlinux
touch $PATH/Archlinux
echo "proot-distro login archlinx" > $PATH/Archlinux
chmod +x $PATH/Archlinux
echo
elif [ $Use -eq 6 ]; then
clear
echo
proot-distro install opensuse
touch $PATH/opensuse
echo "proot-distro login opensuse" > $PATH/opensure
chmod +x $PATH/opensuse
echo
elif [ $Use -eq 7 ]; then
clear
echo
proot-distro install fedora
touch $PATH/fedora
echo "proot-distro login fedora" > $PATH/fedora
chmod +x $PATH/fedora
echo
elif [ $Use -eq 8 ]; then
clear
echo
proot-distro install pardus
touch $PATH/pardus
echo "proot-distro login pardus" > $PATH/pardus
chmod +x $PATH/pardus
echo
elif [ $Use -eq 9 ]; then
clear
echo
proot-distro install void
touch $PATH/void
echo "proot-distro login void" > $PATH/void
chmod +x $PATH/void
echo
elif [ $Use -eq 10 ]; then
termux-setup-storage
clear
pkg install wget -y
wget -O install-nethunter-termux https://offs.ec/2MceZWr
chmod +x install-nethunter-termux
./install-nethunter-termux
elif [ $Use -eq 11 ]; then
clear
echo
proot-distro install deepin
touch $PATH/Deepin
echo "proot-distro login Deepin" > $PATH/Deepin
chmod +x $PATH/Deepin
echo
elif [ $Use -eq 12 ]; then
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install artix
touch $PATH/Artix
echo "proot-distro login artix" > $PATH/Artix
chmod +x $PATH/Artix
echo
elif [ $Use -eq 13 ]; then
clear
echo
echo -e "\t${G}Start To Install 10 Linux Distro Now" | pv -qL 20
echo
echo
proot-distro install ubuntu
touch $PATH/ubuntu
echo "proot-distro login ubuntu" > $PATH/ubuntu
chmod +x $PATH/ubuntu
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install debian
touch $PATH/debian
echo "proot-distro login debian" > $PATH/debian
chmod +x $PATH/debian
echo
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install alpine
touch $PATH/alpine
echo "proot-distro login alpine" > $PATH/alpine
chmod +x $PATH/alpine
echo
echo
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install manjaro-aarch64
touch $PATH/manjaro-aarch64
echo "proot-distro login manjaro-aarch64" > $PATH/manjaro-arrch64
chmod +x $PATH/manjaro-aarch64
echo
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install archlinux
touch $PATH/Archlinux
echo "proot-distro login archlinx" > $PATH/Archlinux
chmod +x $PATH/Archlinux
echo
for ((i=1; i<=5; i++))
do
echo
done
echo
proot-distro install opensuse
touch $PATH/opensuse
echo "proot-distro login opensuse" > $PATH/opensure
chmod +x $PATH/opensuse
echo
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install void
touch $PATH/void
echo "proot-distro login void" > $PATH/void
chmod +x $PATH/void
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install pardus
touch $PATH/pardus
echo "proot-distro login pardus" > $PATH/pardus
chmod +x $PATH/pardus
for ((i=1; i<=5; i++))
do
echo
done
termux-setup-storage
pkg install wget -y
wget -O install-nethunter-termux https://offs.ec/2MceZWr
chmod +x install-nethunter-termux
for ((i=1; i<=5; i++))
do
echo
done
echo
proot-distro install fedora
touch $PATH/fedora
echo "proot-distro login fedora" > $PATH/fedora
chmod +x $PATH/fedora
echo
for ((i=1; i<=5; i++))
do
echo
done
proot-distro install artix
touch $PATH/Artix
echo "proot-distro login artix" > $PATH/Artix
chmod +x $PATH/Artix
echo -e "\033[1;32m"
cd ~
bash .backbox
echo -e "\n${G}Successfully Installed Backbox Linux Distro\n"
elif [ $Use -eq 14 ]; then
clear
banner
echo -e "${G}Starting To Backbox Linux Distro\n\n"
bash .backbox.sh
elif [ $Use -eq 15 ]; then
clear
banner
bash .parrot.sh
elif [ $Use == 16 ]; then
echo -e "\n${G}RaspberryPi Only For 32-bit\n"
sleep 2
mv .raspberrypi.sh raspberrypi.sh
sleep 1
mv raspberrypi.sh /data/data/com.termux/files/usr/etc/proot-distro
sleep 1
proot-distro install raspberrypi
touch $PATH/raspberrypi
chmod +x $PATH/raspberrypi
elif [ $Use == 17 ]; then
bash .remove-distro
elif [ $Use == 18 ]; then
bash linux-distro --help
elif [ $Use == 00 ]; then
exit 0
fi