-
Notifications
You must be signed in to change notification settings - Fork 29
/
LinuxDroid.sh
120 lines (109 loc) · 8.13 KB
/
LinuxDroid.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
#!/bin/bash
# Function to display LinuxDroid logo
display_logo()
{
echo -e "\033[96m+===================================================+\033[0m";
echo -e "\033[96m| _ _ ____ _ _ |\033[0m";
echo -e "\033[96m| | | (_)_ __ _ ___ _| _ \ _ __ ___ (_) __| ||\033[0m";
echo -e "\033[96m| | | | | _ \| | | \ \/ / | | | __/ _ \| |/ _ ||\033[0m";
echo -e "\033[96m| | |___| | | | | |_| |> <| |_| | | | (_) | | (_| ||\033[0m";
echo -e "\033[96m| |_____|_|_| |_|\__,_/_/\_\____/|_| \___/|_|\__,_||\033[0m";
echo -e "\033[96m| By Vivek W |\033[0m";
echo -e "\033[96m| |\033[0m";
echo -e "\033[96m| GitHub:- Github.com/AryanVBW |\033[0m";
echo -e "\033[96m| Site:- AryanVBW.github.io |\033[0m";
echo -e "\033[96m| Instagram:- Aryan_Technolog1es |\033[0m";
echo -e "\033[96m+===================================================+\033[0m";
}
# Function to display colored text
color_text() {
local text="$1"
local color="$2"
echo -e "\e[${color}m$text\e[0m"
}
while true; do
clear
display_logo # Display the logo initially
echo "Select operating system you want to install:"
echo "1. $(color_text 'Kali' '94')"
echo "2. $(color_text 'Ubuntu' '93')"
echo "3. $(color_text 'Arch' '94')"
echo "4. $(color_text 'Debian' '34')"
echo "5. $(color_text 'Manjaro' '92')"
echo "6. $(color_text 'Void' '95')"
echo "7. $(color_text 'Alpine' '92')"
echo "8. $(color_text 'Fedora' '91')"
echo "9. $(color_text 'Nethunter Rootless' '34')"
echo "10. $(color_text 'Parrot' '96')"
echo "11. Exit"
read -p "Enter your choice (1-11): " os_choice
case $os_choice in
1|2|3|4|5|6|7|8|9|10)
clear
echo "You selected: "
case $os_choice in
1) os_name="Kali";;
2) os_name="Ubuntu";;
3) os_name="Arch";;
4) os_name="Debian";;
5) os_name="Manjaro";;
6) os_name="Void";;
7) os_name="Alpine";;
8) os_name="Fedora";;
9) os_name="Nethunter Root less (Android specialize linux)";;
10) os_name="Parrot";;
esac
echo "1. GUI version"
echo "2. CLI version"
read -p "Enter version choice (1-2): " version_choice
# Hide the logo after GUI/CLI selection
clear
case $version_choice in
1)
echo "Installing GUI version of $os_name..."
case $os_choice in
1) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Kali/kali-xfce.sh -O kali-xfce.sh && chmod +x kali-xfce.sh && bash kali-xfce.sh";;
2) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Ubuntu22/ubuntu22-xfce.sh -O ubuntu22-xfce.sh && chmod +x ubuntu22-xfce.sh && bash ubuntu22-xfce.sh";;
3) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Arch/armhf/arch-xfce.sh -O arch-xfce.sh && chmod +x arch-xfce.sh && bash arch-xfce.sh";;
4) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Debian/debian-xfce.sh -O debian-xfce.sh && chmod +x debian-xfce.sh && bash debian-xfce.sh";;
5) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Manjaro/manjaro-xfce.sh -O manjaro-xfce.sh && chmod +x manjaro-xfce.sh && bash manjaro-xfce.sh";;
6) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Void/void-xfce.sh && chmod +x void-xfce.sh && bash void-xfce.sh";;
7) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Alpine/alpinexfce.sh -O alpinexfce.sh && chmod +x alpinexfce.sh && bash alpinexfce.sh";;
8) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Fedora/fedora-xfce.sh -O fedora-xfce.sh && chmod +x fedora-xfce.sh && bash fedora-xfce.sh";;
9) cmd="termux-setup-storage && pkg install wget && wget -O install-nethunter-termux https://offs.ec/2MceZWr && chmod +x install-nethunter-termux && ./install-nethunter-termux";;
10) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/main/Scripts/InstallScript/Cli/parrot.sh && chmod +x parrot.sh && bash parrot.sh -y";;
esac
;;
2)
echo "Installing CLI version of $os_name..."
case $os_choice in
1) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Kali/kali.sh -O kali.sh && chmod +x kali.sh && bash kali.sh";;
2) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Ubuntu22/ubuntu22.sh -O ubuntu22.sh && chmod +x ubuntu22.sh && bash ubuntu22.sh";;
3) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Arch/armhf/arch.sh -O arch.sh && chmod +x arch.sh && bash arch.sh";;
4) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Debian/debian.sh -O debian.sh && chmod +x debian.sh && bash debian.sh";;
5) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Manjaro/manjaro.sh -O manjaro.sh && chmod +x manjaro.sh && bash manjaro.sh";;
6) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Void/void.sh && chmod +x void.sh && bash void.sh";;
7) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Alpine/alpine.sh -O alpine.sh && chmod +x alpine.sh && bash alpine.sh";;
8) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/Installer/Fedora/fedora.sh -O fedora.sh && chmod +x fedora.sh && bash fedora.sh";;
9) cmd="termux-setup-storage && pkg install wget && wget -O install-nethunter-termux https://offs.ec/2MceZWr && chmod +x install-nethunter-termux && ./install-nethunter-termux";;
10) cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/main/Scripts/InstallScript/Cli/parrot.sh && chmod +x parrot.sh && bash parrot.sh -y";;
esac
;;
*)
echo "Invalid choice. Please enter 1 or 2."
continue
;;
esac
# Execute the selected command
eval "$cmd"
read -p "Press Enter to continue..."
;;
11)
echo "Exiting..."
exit 0
;;
*)
echo "Invalid choice. Please enter a number between 1 and 11."
;;
esac
done