[Android General] jenneh:
NOTICE:

THIS METHOD IS ONLY FOR

NON ROOTED

DEVICES

View attachment 5881211

Hello Friends!

This is a thread to house single line commands to install your choice of environment (Debian, Ubuntu, or pure Termux), with a GUI, and automatically set everything up so you can always load your environment with one word.

GitHub - 01101010110/proot-distro-scripts: A series of scripts to help users install Linux Distros on their phone, like Ubuntu and Debian. Installs inside of Termux by pasting one line of code. See the XDA thread below for more nuanced details.

A series of scripts to help users install Linux Distros on their phone, like Ubuntu and Debian. Installs inside of Termux by pasting one line of code. See the XDA thread below for more nuanced deta...

github.com

Features​

Minimalist builds in 3 different flavors, with nothing extra added.

All three environments are able to be installed, not just one.

Load the environment by typing one word, 'ubuntu', 'debian', or 'termux'.

Hardware acceleration is embedded into the alias.

Users are able to select their own username and password.

Automatically adds the new user to the sudoer's file.

Shared-tmp is enabled, allowing use of termux installed packages.

Working sound in all of the environments.

Plays Doom!

View attachment 6076492

Dependencies​

Termux needs to be installed. Termux Apk direct download link

Termux's x11 apk needs to be installed, choose the correct version for your device.

Arm64 x11 Apk - For android devices running arm64. Most modern devices will run this.

Armeabi-v7a x11 Apk - For devices running armeabi-v7a. Older devices usually.

Universal x11 Apk - When in doubt!

Installation​

Select an environment below, Ubuntu, Debian, or Termux, and copy it's code.

Paste your code into Termux and press enter. Set a user name and password.

You will then be asked to select a repository, just press enter twice. (Prevents a repo bug)

The script will install everything needed and prompt towards the end for language selection.

When the script completes, it will open the x11 app for us. The app will freeze the first run.

Force close Termux, then type in the alias of environment you installed, 'ubuntu', 'debian', or 'termux'.

Now the app will run without any problems and have hardware acceleration enabled always.

Spoiler content hidden.

Ubuntu Environment​

Builds an Ubuntu Mantic Minotaur proot-distro environment with an xfce4 provided GUI. Installs in about 30 minutes to an hour.

Copy and paste into Termux:

curl -sL https://raw.githubusercontent.com/01101010110/proot-distro-scripts/main/ubuntu-x11-app.sh -o ubuntu-x11-app.sh && chmod +x ubuntu-x11-app.sh && ./ubuntu-x11-app.sh

Debian Environment​

Builds a Debian Bookworm proot-distro environment with an xfce4 provided GUI. Installs in about 30 minutes to an hour.

Copy and paste into Termux:

curl -sL https://raw.githubusercontent.com/01101010110/proot-distro-scripts/main/debian-x11-app.sh -o debian-x11-app.sh && chmod +x debian-x11-app.sh && ./debian-x11-app.sh

Termux Environment​

Builds a pure Termux environment with an xfce4 provided GUI, and no proot-distro. Installs in about 5-10 minutes.

Copy and paste into Termux:

curl -sL https://raw.githubusercontent.com/01101010110/proot-distro-scripts/main/termux-x11-app.sh -o termux-x11-app.sh && chmod +x termux-x11-app.sh && ./termux-x11-app.sh

Fix For Samsung users missing audio:

View attachment 6114648

Will fix missing audio problem for Samsung users, only need to run this code in Termux once, and it will fix the issue for all three environments at once (force close termux when done, then open the environment):

Copy and paste into Termux:

echo -e 'LD_PRELOAD=/system/lib64/libskcodec.so\npulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1' | tee -a ../usr/etc/bash.bashrc

This fix is thanks to the GH link @zincro3 shared!

Optional XRDP Support:

Adds xrdp to the environment and automatically configures it so you can easily remote into your environment with your PC using Windows Remote Desktop or whatever software you prefer.

Copy and paste into your environment (For Ubuntu and Debian Environments Only):

curl -sL https://raw.githubusercontent.com/01101010110/proot-distro-scripts/main/xrdp-setup.sh -o xrdp-setup.sh && chmod +x xrdp-setup.sh && source xrdp-setup.sh

Copy and paste into Termux (For pure Termux Environments Only):

curl -sL https://raw.githubusercontent.com/01101010110/proot-distro-scripts/main/xrdp-setup-termux.sh -o xrdp-setup-termux.sh && chmod +x xrdp-setup-termux.sh && source xrdp-setup-termux.sh

Optional VNC Support ---Scripts will be added later, needs more work.​

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

Please note the environments aren't perfect, there's a lot to be discovered and learned here. The way this is built, as improvements are made, the scripts can be updated to reflect those changes. Please please do share if you understand how to improve anything or if you know anything about this stuff you want to share. I love learning from you all!

A Very Special Thank You to @ze7zez for taking the time to test the prebuilt, as well as educate us!!

And another very special thank you to @BookCase for sharing the repo in the SOURCES tab, it helped take us to the next level. Thank you soooo much!!