-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
182 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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/AndronixApp/AndronixOrigin/master/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
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"; | ||
|
||
echo -e "\e[1m\e[32mWelcome to the LinuxDroid!\e[0m" | ||
declare -a os_list=() | ||
|
||
# Find and extract OS names | ||
for file in start-*.sh; do | ||
os_name=$(echo "$file" | sed 's/start-\(.*\)\.sh/\1/') | ||
os_list+=("$os_name") | ||
done | ||
|
||
# Add "Termux" option | ||
os_list+=("Termux") | ||
|
||
# Display OS options | ||
for ((i=0; i<${#os_list[@]}; i++)); do | ||
echo "$((i+1)). ${os_list[i]}" | ||
done | ||
|
||
# Prompt user for the number of the OS they want to run | ||
read -p "Enter the number of the OS you want to run: " os_number | ||
|
||
# Validate user input | ||
if [ "$os_number" -ge 1 ] && [ "$os_number" -le "${#os_list[@]}" ]; then | ||
selected_os="${os_list[$((os_number-1))]}" | ||
|
||
# Display the selected number and OS name | ||
echo "You selected OS number $os_number: $selected_os" | ||
|
||
# Execute the corresponding script or exit for Termux | ||
case $selected_os in | ||
"Termux") | ||
echo "Exiting Termux." | ||
exit | ||
;; | ||
*) | ||
script_name="start-$selected_os.sh" | ||
if [ -f "$script_name" ]; then | ||
echo "Executing ./$script_name" | ||
./"$script_name" | ||
else | ||
echo "Script $script_name not found." | ||
fi | ||
;; | ||
esac | ||
else | ||
echo "Invalid input. Please enter a valid number." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
clear | ||
bash LinuxDroidmenu.sh |