-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux-installer.sh
More file actions
137 lines (114 loc) · 5.2 KB
/
linux-installer.sh
File metadata and controls
137 lines (114 loc) · 5.2 KB
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
#!/bin/bash
clear
cd $HOME
echo -e "\e[92m __ _ ____ __ ____ "
echo -e " / / (_)___ __ ___ __ / _/___ _____/ /_____ _/ / /__ _____ "
echo -e " / / / / __ \/ / / / |/_/ / // __ \/ ___/ __/ __ '/ / / _ \/ ___/ "
echo -e " / /___/ / / / / /_/ /> < _/ // / / (__ ) /_/ /_/ / / / __/ / "
echo -e " /_____/_/_/ /_/\__,_/_/|_| /___/_/ /_/____/\__/\__,_/_/_/\___/_/ \e[0m"
echo " Version 0.5"
echo -e "\e[91mCredits To:\e[0m\e[92m AnLinux\e[0m"
echo -e "\e[91mCoded By:\e[0m\e[92m zeCh\e[0m"
echo -e "\e[34m\"If you are too lazy to type a single command,"
echo -e " Allow my program to do it for you.\"\e[0m"
echo -e " -\e[90m(https://github.com/ZechBron)\e[0m"
echo -e "\n"
echo -e "\e[92mWhat do you want to install?\e[0m"
echo -e "\e[34m 1. Ubuntu"
echo -e " 2. Debian"
echo -e " 3. Kali Linux"
echo -e " 4. Kali NetHunter"
echo -e " 5. BlackBox"
echo -e " 6. Fedora"
echo -e " 7. Cent OS"
echo -e " 8. openSUSE Leap"
echo -e " 9. openSUSE Tumbleweed"
echo -e " 10. Arch Linux"
echo -e " 11. BlackArch Linux"
echo -e " 12. Alpine"
echo -e " 13. Parrot OS\e[34m"
echo -e "\e[31m[\e[0m\e[32mZ\e[0m\e[31m]\e[0m \e[32mPlease Choose:\e[0m \e[34m"
read zch
echo -e "\e[0m"
if [ $zch = 1 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh && bash ubuntu.sh
./start-ubuntu.sh
elif [ $zch = 2 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Debian/debian.sh && bash debian.sh
./start-debian.sh
elif [ $zch = 3 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Kali/kali.sh && bash kali.sh
./start-kali.sh
# Kali net hunter need 5GB space
elif [ $zch = 4 ]; then
echo -e "\e[92mInstalling Kali NetHunter needs 5GB space. Do you still want to continue (y/n)? \e[0m"
read ChB
if [ "$ChB" = "y" ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Nethunter/nethunter.sh && bash nethunter.sh
./start-nethunter.sh
elif [ "$ChB" = "n" ]; then
exit
else
echo -e "\e[91mWrong input. Try running the program again and type small letter y or n\e[0m"
fi
elif [ $zch = 5 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/BackBox/backbox.sh && bash backbox.sh
./start-backbox.sh
elif [ $zch = 6 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Fedora/fedora.sh && bash fedora.sh
./start-fedora.sh
elif [ $zch = 7 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/CentOS/centos.sh && bash centos.sh
./start-centos.sh
elif [ $zch = 8 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/openSUSE/Leap/opensuse-leap.sh && bash opensuse-leap.sh
./start-leap.sh
elif [ $zch = 9 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/openSUSE/Tumbleweed/opensuse-tumbleweed.sh && bash opensuse-tumbleweed.sh
./start-tumbleweed.sh
# Needed 2GB Space
elif [ $zch = 10 ]; then
echo -e "\e[92mInstalling Arch Linux needs 2GB Space. Do you want to continue (y/n)? \e[0m"
read ChB
if [ "$ChB" = "y" ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Arch/armhf/arch.sh && bash arch.sh
./start-arch.sh
./additional.sh
elif [ "$ChB" = "n" ]; then
exit
else
echo -e "\e[91mWrong input. Try running the program again and type only small letter y or n.\e[0m"
fi
# Arch Linux Need to install first
elif [ $zch = 11 ]; then
# if start-arch.sh exist
if [ -e "start-arch.sh" ];then
./start-arch.sh
pacman-key --init && pacman-key --populate archlinuxarm && pacman -Sy --noconfirm curl && curl -O https://blackarch.org/strap.sh && chmod +x strap.sh && ./strap.sh
# if start-arch.sh does not exist
elif [ ! -e "start-arch.sh" ]; then
echo -e "\e[91mYou cannot install 'Black Arch Linux' without installing 'Arch Linux' first. However, Installing Arch Linux requires 2GB Space. Do you want to install anyway (y/n)? \e[0m"
read ChB
if [ "$ChB" = "y" ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Arch/armhf/arch.sh && bash arch.sh
./start-arch.sh
./additional.sh
pacman-key --init && pacman-key --populate archlinuxarm && pacman -Sy --noconfirm curl && curl -O https://blackarch.org/strap.sh && chmod +x strap.sh && ./strap.sh
elif [ "$ChB" = "n" ]; then
exit
else
echo -e "\e[91mWrong input. Try runnning the program again and type small letter y or n.\e[0m"
fi
fi
elif [ $zch = 12 ]; then
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Alpine/alpine.sh && bash alpine.sh
./start-alpine.sh
# Parrot
elif [ $zch = 13 ]; then
hash -r && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Parrot/parrot.sh && bash parrot.sh
./start-parrot.sh
else
echo -e "\e[91mWrong input. Please try again.\[e0m"
clear
./linux-installer.sh
fi