# Roid: an easy Void Linux installation toolkit for Termux environments on top of Android OS
The Roid toolkit allows you to turn any Android device that can run Termux (and Termux-X11, if you need a GUI desktop) into a full-featured [Void Linux](https://voidlinux.org/) PC.
Only tested on ARM64. Other hardware platforms may or may not work.
## Features
* Full (glibc-based) Void Linux installation for your smartphone/tablet architecture (usually ARM64)
* Convenient shell aliases inside the environment (see [.roidrc](.roidrc))
* Sound support out of the box (via PulseAudio)
* A set of development tools out of the box (GCC, Make, Autotools, Perl, Tcl, Python, Janet, S-Lang, Lua, Expect etc)
* [Termux](https://termux.dev/en/) installed and prepared with `termux-change-repo` and `termux-setup-storage`. It's also strongly recommended to select "Acquire wakelock" in the notification bar before starting the installation.
* [Termux-X11](https://github.com/termux/termux-x11) installed from GH releases in case you need a GUI desktop. **Note**: not all Android flavors are supported by Termux-X11.
In case you don't need a GUI desktop, run `NOX=y sh ~/roid/install` instead.
After the process completes, you need to fully exit the Termux shell and re-enter it before you can start Void.
## CLI usage
From the Termux environment, just type `void` to enter the Void Linux shell. You're ready to go. Your original Termux home path is available in the `$TERMUX_HOME` environment variable.
Alternatively, if you don't want to enter the shell but just run a command inside Void Linux and then return to Termux, type `voidrun [command]` instead.
## Desktop GUI usage (requires Termux-X11)
1. Open Termux-X11 in the background.
2. Switch to Termux (make sure the wakelock is on!) and type `void` to enter the shell.
3. Type `gui` to start the desktop environment.
4. Switch to Termux-X11 to start using the environment.
Having at least an external keyboard connected to your device is highly recommended for better desktop experience.
After exiting the Void Linux shell and before exiting Termux, it's advisable to run the `roidclean` command to stop the PulseAudio and 3D acceleration servers.
## Uninstallation
To fully uninstall Void Linux set up by Roid, exit the Void shell and then run either this: