|
| 1 | +# Auto-Linux (Rust Edition) |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +-green) |
| 6 | + |
| 7 | + |
| 8 | +**Auto-Linux** is a standalone, lightweight, and blazing fast Linux installer/manager for Android, written entirely in **Rust**. It provides a beautiful Terminal User Interface (TUI) to install, configure, and manage Ubuntu chroots without requiring Termux, Busybox, or external dependencies. |
| 9 | + |
| 10 | +> **Built for speed, stability, and ease of use.** |
| 11 | +
|
| 12 | +--- |
| 13 | + |
| 14 | +## Key Features |
| 15 | + |
| 16 | +* **Native & Standalone:** Compiled as a static binary (`musl`). Zero dependencies. No Termux needed. |
| 17 | +* **Beautiful TUI:** Powered by `ratatui`. Keyboard-driven dashboard. |
| 18 | +* **Instant Launch:** Switch users and enter Chroot directly from the dashboard. |
| 19 | +* **Auto-Configuration:** |
| 20 | + * **Network:** Auto-detects DNS and fixes connection issues inside chroot. |
| 21 | + * **Users:** Auto-creates User & Password during setup. |
| 22 | + * **Sudo:** Auto-configures `sudo` (wheel group) privileges. |
| 23 | + * **Mounts:** Handles `/dev`, `/proc`, `/sys`, `/sdcard` binding automatically. |
| 24 | +* **Distribution Support:** Ubuntu 20.04 LTS up to 26.04. |
| 25 | +* **Root Detection:** Supports Magisk, KernelSU, and APatch natively. |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +## Screenshots |
| 30 | + |
| 31 | +Preview: |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +--- |
| 40 | + |
| 41 | +## Installation |
| 42 | + |
| 43 | +### Option 1: One-Line Install. |
| 44 | +Run this command in **Termux**, **ADB Shell**, or any Terminal Emulator: |
| 45 | + |
| 46 | +```bash |
| 47 | +curl -sL https://raw.githubusercontent.com/HanSoBored/Auto-Linux/master/install.sh | sh |
| 48 | +``` |
| 49 | + |
| 50 | +> **Note:** This script automatically detects if you have Termux installed and creates a shortcut. You can then simply type `autolinux` to start. |
| 51 | +
|
| 52 | +### Option 2: Manual Install |
| 53 | +1. Download the latest binary from [Releases](https://github.com/HanSoBored/Auto-Linux/releases). |
| 54 | +2. Push to device: `adb push autolinux-aarch64 /data/local/tmp/autolinux` |
| 55 | +3. Permission: `chmod +x /data/local/tmp/autolinux` |
| 56 | +4. Run: `/data/local/tmp/autolinux` |
| 57 | + |
| 58 | +--- |
| 59 | + |
| 60 | +## Build from Source |
| 61 | + |
| 62 | +You need **Rust** and **Cross** (for cross-compiling to Android/ARM64 Musl). |
| 63 | + |
| 64 | +1. **Install Prerequisites**: |
| 65 | + ```bash |
| 66 | + cargo install cross |
| 67 | + ``` |
| 68 | +2. **Build Release**: |
| 69 | + ```bash |
| 70 | + # Static binary (Musl) ensures it runs on any Android version |
| 71 | + cross build --target aarch64-unknown-linux-musl --release |
| 72 | + ``` |
| 73 | +3. **Locate Binary**: |
| 74 | + The binary will be in `target/aarch64-unknown-linux-musl/release/autolinux`. |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +## Contributing |
| 79 | + |
| 80 | +Contributions are welcome! |
| 81 | +1. Fork the project |
| 82 | +2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) |
| 83 | +3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) |
| 84 | +4. Push to the Branch (`git push origin feature/AmazingFeature`) |
| 85 | +5. Open a Pull Request |
| 86 | + |
| 87 | +--- |
| 88 | + |
| 89 | +## Disclaimer |
| 90 | + |
| 91 | +This tool modifies system partitions (mounting) and creates files in `/data`. While safe, **I am not responsible for any bricked devices or data loss.** Always backup your data. |
| 92 | + |
| 93 | +--- |
| 94 | + |
| 95 | +## License |
| 96 | + |
| 97 | +Distributed under the MIT License. See `LICENSE` for more information. |
0 commit comments