diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..b9029fb Binary files /dev/null and b/.DS_Store differ diff --git a/1click.install.sh b/1click.install.sh index d263c94..aa08ea6 100644 --- a/1click.install.sh +++ b/1click.install.sh @@ -1,14 +1,15 @@ #!/bin/bash -echo "#####################################################"; -echo "# _ _ ____ _ _ #"; -echo "# | | (_)_ __ _ ___ _| _ \ _ __ ___ (_) __| |#"; -echo "# | | | | '_ \| | | \ \/ / | | | '__/ _ \| |/ _` |#"; -echo "# | |___| | | | | |_| |> <| |_| | | | (_) | | (_| |#"; -echo "# |_____|_|_| |_|\__,_/_/\_\____/|_| \___/|_|\__,_|#"; -echo "# One-Click Installer #"; -echo "# by Vivek W #"; -echo "# Github.com/AryanVBW #"; -echo "#####################################################"; +echo "#####################################################" +echo "# _ _ ____ _ _ #" +echo "# | | (_)_ __ _ ___ _| _ \ _ __ ___ (_) __| |#" +echo "# | | | | '_ \| | | \ \/ / | | | '__/ _ \| |/ _` |#" +echo "# | |___| | | | | |_| |> <| |_| | | | (_) | | (_| |#" +echo "# |_____|_|_| |_|\__,_/_/\_\____/|_| \___/|_|\__,_|#" +echo "# One-Click Installer #" +echo "# by Vivek W #" +echo "# Github.com/AryanVBW #" +echo "#####################################################" + echo "Updating and upgrading packages..." pkg update -y && pkg upgrade -y @@ -33,3 +34,5 @@ echo "Downloading and running LinuxDroid script..." curl -O https://github.com/AryanVBW/LinuxDroid/releases/download/scripts/LinuxDroid.sh chmod +x LinuxDroid.sh bash LinuxDroid.sh + +echo "Installation completed! Run ./LinuxDroidmenu.sh to start." diff --git a/APT/.DS_Store b/APT/.DS_Store new file mode 100644 index 0000000..6d80880 Binary files /dev/null and b/APT/.DS_Store differ diff --git a/BETA/1click.install.sh b/BETA/1click.install.sh new file mode 100644 index 0000000..f391364 --- /dev/null +++ b/BETA/1click.install.sh @@ -0,0 +1,288 @@ +#!/bin/bash + +# Function to detect Android version +detect_android_version() { + local api_level=$(getprop ro.build.version.sdk) + local version_code=$(getprop ro.build.version.release) + echo "Android API Level: $api_level" + echo "Android Version Code: $version_code" +} + +# Function to detect device architecture +detect_device_architecture() { + local arch=$(getprop ro.product.cpu.abi) + echo "Device Architecture: $arch" +} + +# 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" +} + +# Function to install GUI version based on OS choice and Android version +install_gui_version() { + local os_choice="$1" + local cmd="" + + # Construct the appropriate command based on OS choice and Android version + case $os_choice in + 1) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install kali-xfce" + else + 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" + fi + ;; + 2) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install ubuntu22-xfce" + else + 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" + fi + ;; + 3) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install arch-xfce" + else + 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" + fi + ;; + 4) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install debian-xfce" + else + 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" + fi + ;; + 5) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install manjaro-xfce" + else + 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" + fi + ;; + 6) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install void-xfce" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Void/void-xfce.sh -O void-xfce.sh && chmod +x void-xfce.sh && bash void-xfce.sh" + fi + ;; + 7) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install alpine-xfce" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Alpine/alpine-xfce.sh -O alpine-xfce.sh && chmod +x alpine-xfce.sh && bash alpine-xfce.sh" + fi + ;; + 8) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install fedora-xfce" + else + 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" + fi + ;; + 9) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install nethunter-rootless" + else + cmd="termux-setup-storage && pkg install wget && wget -O install-nethunter-termux https://offs.ec/2MceZWr && chmod +x install-nethunter-termux && ./install-nethunter-termux" + fi + ;; + 10) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install parrot-xfce" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/main/Scripts/InstallScript/Cli/parrot.sh -O parrot.sh && chmod +x parrot.sh && bash parrot.sh -y" + fi + ;; + esac + + # Execute the constructed command + eval "$cmd" +} + +# Function to install CLI version based on OS choice and Android version +install_cli_version() { + local os_choice="$1" + local cmd="" + + # Construct the appropriate command based on OS choice and Android version + case $os_choice in + 1) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install kali" + else + 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" + fi + ;; + 2) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install ubuntu22" + else + 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" + fi + ;; + 3) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install arch" + else + 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" + fi + ;; + 4) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install debian" + else + 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" + fi + ;; + 5) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install manjaro" + else + 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" + fi + ;; + 6) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install void" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Void/void.sh -O void.sh && chmod +x void.sh && bash void.sh" + fi + ;; + 7) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install alpine" + else + 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" + fi + ;; + 8) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install fedora" + else + 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" + fi + ;; + 9) + color_text "Nethunter CLI is not available." "31" + exit 1 + ;; + 10) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install parrot" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/main/Scripts/InstallScript/Cli/parrot.sh -O parrot.sh && chmod +x parrot.sh && bash parrot.sh -y" + fi + ;; + esac + + # Execute the constructed command + eval "$cmd" +} + +# --- Main script --- + +# Display Android version and architecture +detect_android_version +detect_device_architecture + +# Display logo +display_logo + +# Update and upgrade packages +color_text "Updating and upgrading packages..." "32" +pkg update -y && pkg upgrade -y + +# Set up storage permissions +color_text "Setting up storage permissions..." "32" +termux-setup-storage + +# Download and install necessary packages based on Android version +if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + color_text "Installing proot-distro..." "32" + pkg install proot-distro -y +else + color_text "Installing proot..." "32" + pkg install proot -y +fi + +# Install wget and figlet +color_text "Installing wget and figlet..." "32" +pkg install wget -y && pkg install figlet -y + +# Download default bashrc +color_text "Downloading default bashrc..." "32" +curl -O https://github.com/AryanVBW/LinuxDroid/releases/download/A1/default.bashrc +chmod +x default.bashrc + +# Replace current .bashrc with default bashrc +color_text "Replacing current .bashrc with default bashrc..." "32" +rm -rf .bashrc && cp default.bashrc .bashrc + +# Display welcome message +color_text "Welcome to LinuxDroid!" "32" + +# Define array of supported operating systems +declare -a os_list=( + "Kali" + "Ubuntu 22" + "Arch" + "Debian" + "Manjaro" + "Void" + "Alpine" + "Fedora" + "Nethunter" + "Parrot" +) + +# 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 install +read -p "Enter the number of the OS you want to install: " 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" + + # Prompt user for GUI or CLI version + read -p "Do you want to install the GUI version? (y/n): " gui_choice + + # Install the selected OS version + if [[ "$gui_choice" == "y" ]]; then + install_gui_version "$os_number" + else + install_cli_version "$os_number" + fi +else + color_text "Invalid input. Please enter a valid number." "31" +fi + +# Display completion message +color_text "Installation completed successfully!" "32" diff --git a/BETA/LinuxDroidmenu.sh b/BETA/LinuxDroidmenu.sh new file mode 100644 index 0000000..a5e8188 --- /dev/null +++ b/BETA/LinuxDroidmenu.sh @@ -0,0 +1,86 @@ +#!/bin/bash + +# Function to detect Android version +detect_android_version() { + local api_level=$(getprop ro.build.version.sdk) + local version_code=$(getprop ro.build.version.release) + echo "Android API Level: $api_level" + echo "Android Version Code: $version_code" +} + +# Function to detect device architecture +detect_device_architecture() { + local arch=$(getprop ro.product.cpu.abi) + echo "Device Architecture: $arch" +} + +# 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" +} + +# --- Main script --- + +# Display Android version and architecture +detect_android_version +detect_device_architecture + +display_logo + +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 diff --git a/BETA/linuxdroid.sh b/BETA/linuxdroid.sh new file mode 100644 index 0000000..3df2683 --- /dev/null +++ b/BETA/linuxdroid.sh @@ -0,0 +1,154 @@ +#!/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" +} + +# Function to install GUI version based on OS choice and Android version +install_gui_version() { + local os_choice="$1" + local cmd="" + + # Construct the appropriate command based on OS choice and Android version + case $os_choice in + 1) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install kali-xfce" + else + 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" + fi + ;; + 2) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install ubuntu22-xfce" + else + 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" + fi + ;; + 3) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install arch-xfce" + else + 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" + fi + ;; + 4) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install debian-xfce" + else + 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" + fi + ;; + 5) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install manjaro-xfce" + else + 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" + fi + ;; + 6) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install void-xfce" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Void/void-xfce.sh -O void-xfce.sh && chmod +x void-xfce.sh && bash void-xfce.sh" + fi + ;; + 7) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install alpine-xfce" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Alpine/alpine-xfce.sh -O alpine-xfce.sh && chmod +x alpine-xfce.sh && bash alpine-xfce.sh" + fi + ;; + 8) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install fedora-xfce" + else + 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" + fi + ;; + 9) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install nethunter-rootless" + else + cmd="termux-setup-storage && pkg install wget && wget -O install-nethunter-termux https://offs.ec/2MceZWr && chmod +x install-nethunter-termux && ./install-nethunter-termux" + fi + ;; + 10) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install parrot-xfce" + else + cmd="pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/main/Scripts/InstallScript/Cli/parrot.sh -O parrot.sh && chmod +x parrot.sh && bash parrot.sh -y" + fi + ;; + esac + + # Execute the constructed command + eval "$cmd" +} + +# Function to install CLI version based on OS choice and Android version +install_cli_version() { + local os_choice="$1" + local cmd="" + + # Construct the appropriate command based on OS choice and Android version + case $os_choice in + 1) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install kali" + else + 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" + fi + ;; + 2) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install ubuntu22" + else + 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" + fi + ;; + 3) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install arch" + else + 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" + fi + ;; + 4) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install debian" + else + 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" + fi + ;; + 5) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install manjaro" + else + 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" + fi + ;; + 6) + if [[ $(getprop ro.build.version.sdk) -ge 30 ]]; then + cmd="proot-distro install void" + else diff --git a/Bootstrap/.DS_Store b/Bootstrap/.DS_Store new file mode 100644 index 0000000..3fc4742 Binary files /dev/null and b/Bootstrap/.DS_Store differ diff --git a/Fedora/.DS_Store b/Fedora/.DS_Store new file mode 100644 index 0000000..cad4672 Binary files /dev/null and b/Fedora/.DS_Store differ diff --git a/Installer/.DS_Store b/Installer/.DS_Store new file mode 100644 index 0000000..94381d5 Binary files /dev/null and b/Installer/.DS_Store differ diff --git a/LinuxDroid/.DS_Store b/LinuxDroid/.DS_Store new file mode 100644 index 0000000..1825208 Binary files /dev/null and b/LinuxDroid/.DS_Store differ diff --git a/Uninstall/.DS_Store b/Uninstall/.DS_Store new file mode 100644 index 0000000..46aab29 Binary files /dev/null and b/Uninstall/.DS_Store differ diff --git a/WM/.DS_Store b/WM/.DS_Store new file mode 100644 index 0000000..c9fb167 Binary files /dev/null and b/WM/.DS_Store differ diff --git a/XBPS/.DS_Store b/XBPS/.DS_Store new file mode 100644 index 0000000..287aa48 Binary files /dev/null and b/XBPS/.DS_Store differ diff --git a/new_readme.md b/new_readme.md new file mode 100644 index 0000000..88f5a26 --- /dev/null +++ b/new_readme.md @@ -0,0 +1,82 @@ +# LinuxDroid - Linux CLI + GUI for Android + +

+ +LinuxDroid

+ +## Overview + +LinuxDroid brings the power of Linux to your Android device, offering both Command Line Interface (CLI) and Graphical User Interface (GUI) experiences. Run your favorite Linux distributions directly on your Android device with ease and flexibility. + +

+ +LinuxDroid

+ +## Quick Installation + +### One-Click Installation +Copy and paste this command in Termux: +```bash +curl -sSL https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/1click.install.sh | bash +``` + +## Supported Operating Systems + +LinuxDroid supports a wide range of Linux distributions: + +- 🦜 Parrot OS +- Kali Linux +- Ubuntu +- Arch Linux +- Debian +- Manjaro +- Void Linux +- Alpine +- Fedora +- NethunterRootLess (Specialized for Security Testing) + +## Features + +- Easy one-click installation process +- Support for both CLI and GUI interfaces +- Wide range of Linux distributions +- Customized bash environment +- Regular updates and maintenance +- Active community support + +## Requirements + +- Android device (ARM64) +- Termux app installed +- Internet connection +- Minimum 4GB storage space +- 2GB RAM recommended + +## Usage + +1. Install Termux from F-Droid or Google Play Store +2. Run the one-click installation command +3. Choose your preferred Linux distribution +4. Start using Linux on your Android device! + +## Project Structure + +For detailed information about the project structure and organization, please refer to [structure.md](structure.md). + +## Contributing + +Contributions are welcome! Please feel free to submit pull requests. + +## Support + +If you encounter any issues or need help, please: +1. Check the [Issues](https://github.com/AryanVBW/LinuxDroid/issues) section +2. Create a new issue if your problem isn't already listed +3. Join our community discussions + +## License + +This project is open source and available under the MIT License. + +

Made with ❤️ By Vivek W

+

v1.1.3

diff --git a/structure.md b/structure.md new file mode 100644 index 0000000..1a906a8 --- /dev/null +++ b/structure.md @@ -0,0 +1,63 @@ +# LinuxDroid Project Structure + +## Overview +LinuxDroid is organized into several key components that work together to provide a seamless Linux experience on Android devices. + +## Directory Structure + +``` +LinuxDroid/ +├── LinuxDroid/ # Core assets directory +│ ├── Banner/ # Project banners and images +│ └── Icon/ # OS and application icons +│ +├── scripts/ # Installation and utility scripts +│ ├── LinuxDroidmenu.sh # Main menu interface +│ └── OS-specific/ # OS-specific installation scripts +│ +├── 1click.install.sh # One-click installation script +├── default.bashrc # Default bash configuration +├── README.md # Project documentation +└── structure.md # This file - project structure documentation +``` + +## Component Description + +### 1. Core Scripts +- `1click.install.sh`: Primary installation script that sets up the basic environment +- `LinuxDroidmenu.sh`: Interactive menu for OS selection and management +- `default.bashrc`: Customized bash configuration for optimal terminal experience + +### 2. Supported Operating Systems +LinuxDroid supports multiple Linux distributions: +- Parrot OS +- Kali Linux +- Ubuntu +- Arch Linux +- Debian +- Manjaro +- Void Linux +- Alpine +- Fedora +- NethunterRootLess + +### 3. Asset Management +- **Banner Directory**: Contains project branding and promotional images +- **Icon Directory**: Houses distribution-specific icons and logos + +### 4. Documentation +- `README.md`: Primary project documentation and setup instructions +- `structure.md`: Detailed project structure and organization + +## Installation Flow +1. User executes `1click.install.sh` +2. Script sets up Termux environment +3. Downloads and configures necessary components +4. Installs LinuxDroid menu interface +5. User can then select and install desired Linux distributions + +## Development Guidelines +- All scripts should maintain POSIX compliance +- New OS additions should follow the existing script structure +- Asset additions should maintain consistent naming conventions +- Documentation updates should be made for significant changes