yashsingh1/xdaforums huggingface dataset:
[Windows 10, 8, 7, XP etc.] jenneh:
Update: See this thread to install Ubuntu or Debian with one line of code:

[GUIDE][NO-ROOT]How to install Debian or Ubuntu Environments on Android, in Termux, using proot-distro.

NOTICE: THIS METHOD IS ONLY FOR NON ROOTED DEVICES 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...

xdaforums.com

You can then customize your machines to look like the picture below

View attachment 5889515

Some other guides:

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] moku160:
Looks great, will give it a try later. Thanks for the time & effort! 🤙🏽
[Windows 10, 8, 7, XP etc.] jenneh:
========================

SOURCES

==========

==================​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
========================

PREMADES

==========

==================​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
TERMUX AND REPO KNOWLEDGE​

Spoiler content hidden.

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
QEMU-SYSTEM-X86_64 7.0 USER MANUAL PART 1​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
X86_64 USER MANUAL PART 2​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
EXECUTABLE SCRIPTS​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
PROGRAMMER'S NOTES​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
PROGRAMMER'S NOTES​
[Windows 10, 8, 7, XP etc.] jenneh:
QEMU-IMG (QEMU UTILITIES)​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
QEMU-SYSTEM-X86_64 CPU LIST​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
QEMU-SYSTEM-ARM 7.0 USER MANUAL PART 1​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
ARM USER MANUAL PART 2​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
QEMU-SYSTEM-AARCH64(ARM64)USER MANUAL ​

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
AARCH64 USER MANUAL PART 2​

Spoiler content hidden.

Working on this build now. The very first step involves us using an efi driver. This has been added to the programming notes. The beginner code I am building with has been added to the SOURCES tree. Starting with figuring out WIN11ARM then we build android

If anyone makes anything cool feel free to share, it can be any of the qemu systems.

Spoiler content hidden.

taking a break on this for a few days to focus on the shield again. will be back~! <3
[Windows 10, 8, 7, XP etc.] jenneh:
David Bombal has a good guide up how to get Kali Linux Nethunter on any android device (no root needed) using termux, and in it he showcases a different vnc app. I will investigate this share in the future. Just saving it and sharing it <3 https://davidbombal.com/kali-linux-nethunter-android-install-in-5-minutes-rootless/
[Windows 10, 8, 7, XP etc.] tehdomic:
Have been looking for a proper guide to actually emulate x86-based Windows on modern ARM64 Snapdragon chips for years, and somehow you descended from xda heaven. Thank you, I'll be having a fun few weeks of spare time now. I will report any progress or issues I encounter down the road.
[Windows 10, 8, 7, XP etc.] tehdomic:
Hi. I'm trying to find the guide to use a pre-made image (Tiny7.img) instead of creating a new for starters to get a grip on stuff, but I can't find it.

Could you help me? @jenneh
[Windows 10, 8, 7, XP etc.] jenneh:
@tehdomic sorry it got buried in everything. the direct google link is here https://drive.google.com/file/d/12uP_rIEoPzqHqh0UqbsLDw6IqYbtNY4K/view

the comment the info is under here with the instructions, they are in the download area.

https://xdaforums.com/t/how-to-inst...ices-windows-10-nox-lab.4481613/post-87308901

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] tehdomic:
1. I managed to boot the pre-made image by changing the -hda command :)

2. But, inside the "VM" it says it's a 1 GHz CPU. Would it matter if I tried running a different -cpu option?

I have a Snapdragon 865+ SoC and there's quite a lot of power in this chip.

3. Also, the Windows mouse cursor in the VNC connection isn't quite on par with the VNC cursor. It's often out of sync. (I will likely install TigerVNC server (or similar inside Windows to get around that problem), alternatively try a "-vga vmware" setting. (Do you know which vga settings would work fine on Snapdragon 865? I don't plan on running 3D applications on it.)
[Windows 10, 8, 7, XP etc.] jenneh:
@tehdomic,

1. This makes me really happy!

2. you can def use different options! it doesn't hurt anything to edit the script, you can always revert back if needed. Just make sure to close termux first or force stop it and you can either rewrite the script on your pc and repush it or you can edit the script in termux. To edit it in termux see these steps

https://xdaforums.com/t/how-to-inst...ices-windows-10-nox-lab.4481613/post-87312613

Spoiler content hidden.

3. The vnc app problem is in need of a solution unfortunately. I have the same troubles. I linked a thread in the comments above with an article by David Bombal, in it he is talking about a Linux machine, however they use a different VNC app, it may work better I just haven't had the time to test it
[Windows 10, 8, 7, XP etc.] tehdomic:
I'll report any useful successes I find.
[Windows 10, 8, 7, XP etc.] lentas:
i cant get any video out, i get only the console
[Windows 10, 8, 7, XP etc.] jenneh:
Hi there! Is the video missing in termux or in the vnc app?
[Windows 10, 8, 7, XP etc.] lentas:
i get "guest has not initialized display (yet)"
[Windows 10, 8, 7, XP etc.] lentas:
View attachment 5819531
[Windows 10, 8, 7, XP etc.] jenneh:
@lentas which os are you trying to install? are you using one of the premades or trying to build from scratch? i can try to help but i need to know which steps or the code you used
[Windows 10, 8, 7, XP etc.] lentas:
scratch
[Windows 10, 8, 7, XP etc.] lentas:
same happens on limbo arm emulator (it uses qemu arm 5.10)
[Windows 10, 8, 7, XP etc.] jenneh:
okay next question, are you using qemu arm or aarch64 version or the x86/64 version and next question the iso you want to use is it arm or x86 /64?
[Windows 10, 8, 7, XP etc.] lentas:
aarch64
[Windows 10, 8, 7, XP etc.] jenneh:
@lentas okay I am trying to get some stuff going on an actual arm device before speaking on anything. I need to see how the different qemu versions behave on the shield and try installing some isos. Will report back findings bare with me
[Windows 10, 8, 7, XP etc.] lentas:
i used p11 plus all time
[Windows 10, 8, 7, XP etc.] lentas:
lenovo
[Windows 10, 8, 7, XP etc.] Billybobjoe13245:
I've been following and I'm trying to ger Win11 Arm running on my Galaxy Tabs S7+, have you had success with it?
[Windows 10, 8, 7, XP etc.] lentas:
no
[Windows 10, 8, 7, XP etc.] anthonycolucci:
Currently working on this build. The first step calls for the use of an efi driver. The programming notes have been updated to include this. The SOURCES tree now includes the novice code I'm using to build. WIN11ARM must first be understood before building Android.
[Windows 10, 8, 7, XP etc.] jenneh:
P.S. this guide can kinda help give some starter code on an AARCH64 qemu build as well and helps evidence what Anthony said about how the efi driver comes into play

Spoiler content hidden.

Thanks to anyone who shares anything big or small!

Here's the efi driver:

QEMU_EFI.fd

drive.google.com

Here's a copy of win11arm if anyone would like to help solve this problem!

win11arm.ISO

drive.google.com
[Windows 10, 8, 7, XP etc.] Billybobjoe13245:
After some trial and error, I found a little bit of success with the count being 16 on the flash0 and 1 imgs, but I run into this error when tring to start the machine
[Windows 10, 8, 7, XP etc.] jenneh:
So my android device doesn't have enough space for me to test a full build (with iso from scratch, could likely push a premade to it for testing or in a few days get a secondary storage option). So for now... Enter the emulators for premade building..

You may or may not know that Nox cannot run aarch64 qemu and at the time I did not know why. (I theorize now it is due to nox being android 9 and wsa 12, so firmware related, but don't Know) Fast forward a year later, WSA is running better and now is able to run termux and install qemu-aarch64 without failing to the sys-NDK package.

I'm using this version of wsa but I think you could do it on regular? Anywho. Since we don't have full system read and write, we need to install termux storage module to be able to access the downloads folder on the device with code.

The code used below was able to boot past the board, in fact on termux it sees the iso and prompts for you to press any key (i think we can mod these isos with MODWIN once we figure out how to use them properly.. lol. I know how to switch the efi binary on the disk to no prompt)

pkg install x11-repo
pkg upgrade
pkg install qemu-system-aarch64 qemu-utils libslirp
qemu-img create -f qcow2 win11.img 100G
termux-setup-storage
adb push win11arm.iso /sdcard/Download
adb push QEMU_EFI.fd /sdcard/Download

qemu-system-aarch64 -m 2048 -cpu cortex-a72 -smp 4 -M virt -nographic -bios storage/downloads/QEMU_EFI.fd -drive if=none,file=win11.img,id=hd0 -device virtio-blk-device,drive=hd0 -netdev user,id=n0 -vnc 127.0.0.1:3 -cdrom storage/downloads/win11arm.iso

Spoiler content hidden.

If anyone is able to expand upon this in any fashion please do so!

--edit just realized I can test on a phone now that I know how to do this without Root. So derp. Haha "termux-setup-storage" opens up the world

Here's the efi driver:

QEMU_EFI.fd

drive.google.com

Here's a copy of win11arm if anyone would like to help solve this problem!

win11arm.ISO

drive.google.com

If you download these from your device you can skip the adb code.

So we need the -display code now and i think the nic code is not right so that too. (-netdev user,id=n0)

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
Kali Linux Nethunter, ARM64 Termux Machine:

VERIFIED WORKING, NO ROOT NEEDED

View attachment 5825839

This is how to install ARM Kali Linux in Termux with Kex Vnc.

This machine runs amazing on my Potato Nokia G20 :D

Download the Termux apk for your device

https://f-droid.org/repo/com.termux_118.apk

pkg install x11-repo
pkg upgrade
pkg install wget

wget -O install-nethunter-termux https://offs.ec/2MceZWr
chmod +x install-nethunter-termux
./install-nethunter-termux

exit

Spoiler content hidden.

In a browser on your android device, go to this link to download and install the "NetHunterStore"

https://store.nethunter.com/NetHunterStore.apk

Search in the app for "kex" and install.

Spoiler content hidden.

In termux setup kex:

nethunter kex passwd
nethunter kex

Spoiler content hidden.

Then open the kex app and set the port (usually 5901) and it should boot

Spoiler content hidden.

From now on you can use:

nethunter kex

and then open the kex apk with port 1 to boot into a normal user machine. See below for Root.

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
Okay here is how to solve the Android 12 Termux Process error, it's very simple. Do whatever you have to, to get an adb connection on your device. Send this code:

adb shell device_config put activity_manager max_phantom_processes 2147483647

take note of this, you may have to repeat this command --i just had to after 2 days use.

thanks to this reddit poster -- ladb is not needed just any adb connection is fine

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

just a demo of the machine working. this is me using my finger, no mouse. the vnc is amazing <3

Try it out, it's Super Fun~!
[Windows 10, 8, 7, XP etc.] jenneh:
So Kali Linux Nethunter (ARM 64) version is verified working in android on an unrooted device with all the bugs worked out.

(See the two comments above)

Trying to see if it can run the windows arm iso, but of course that can't just be easy. The Gdrive link kept failing in firefox, not sure if there is another setting to be amended or what.

So that being said, here's how to get UUPDUMP to work in this machine after you have fixed the dpkging errors.

Download the Win11arm script from UUPDUMP

Select language for Windows 11, version 22H2 (22621.1194) arm64

Select language for Windows 11, version 22H2 (22621.1194) arm64 on UUP dump. UUP dump lets you download Unified Update Platform files, like Windows Insider updates, directly from Windows Update.

uupdump.net

Extract it into your downloads folder or whereever you like

apt install aria2 cabextract wimtools chntpw genisoimage mkisofs
cd Downloads
chmod 777 uup_download_linux.sh
./uup_download_linux.sh

View attachment 5826357as you see it was able to start the script and should have the iso built on the machine shortly. Will see what can be done with the iso tomorrow

if anyone knows how to just download the iso off gdrive with this machine please share how. that would be preferable since in theory one could run mods
[Windows 10, 8, 7, XP etc.] :
[Deleted Comment]
[Windows 10, 8, 7, XP etc.] jenneh:
@furrioustorrus I tried too in the past without success x.x idk why it just made sense finally. I just really think the possibilities are endless considering how well it runs. Maybe as more people learn more and more about termux and building arm machines on here, maybe this is a new modding / os building funzies thing for the community to enjoy. It can only get better honestly (and easier too)

----so it looks like apt install qemu-system-arm installs aarch64 and the efi driver on this machine
[Windows 10, 8, 7, XP etc.] jenneh:
Day 3 of the VMLand journey... Trying to get virt-manager to run in this machine so we can "easy mode" qemu, or at least maybe learn more about it in another way.. Also have some more fixes for the machine.

Spoiler content hidden.

Spoiler content hidden.

Then to install qemu and virt-manager run this code:

apt install qemu-system-arm virt-manager

Now the next problem:

View attachment 5827733

virt-manager is not seeing the libvirt daemon. working on this now just wanted to get my notes up before I got lost.

Spoiler content hidden.

---Tip about enabling use of extra keys. It is advised to remember to minimize this feature after use, else you can cause yourself a bug when using the screen keyboard and swiping it off... Sometimes this action causes the tab key to auto engage and with no solution other than to force close termux and reopen.

That being said, this is the fastest way I know to close termux, maybe someone knows a good app or widget that could close it even faster.

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
Spoiler content hidden.

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] jenneh:
UPDATE:

Finally got Windows 10 arm to load in termux, using qemu and an insider image. So what was going wrong before was I was being dumb and adding too much ram to the machine and that would force close termux at a certain point in the boot. (so keep in mind you can change the ram values but if it is too much it will just crash termux)

Now it will run like a potato unless you have kvm, but it works. This is using a modified efi driver and a premade win10 arm image from archive.org (an old windows 10 arm insider image)

qemu-system-aarch64 -m 2048M -smp 8 -device VGA -M virt -cpu max -monitor stdio -device nec-usb-xhci -device usb-kbd -device usb-mouse -usb -bios QEMU_EFI.img -vnc :3 -hda windows10arm64.qcow2 -accel tcg,thread=multi

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] OldNoobOne:
Nice to see that screen on an Android :)

does everything run same as Win10 PC with your emulator?

I'm using Win10 v1709, I think 1709 is even better than v.1809 or 22H2 or even Win11 in some ways. Its great experiment this seems good but is 6 inch screen go with it?
[Windows 10, 8, 7, XP etc.] jenneh:
I am unable to test too much because I don't think my phones CPU allows kvm support. Therefore it runs awful. It looks similar but I am unsure whether executables would work natively or anything yet. Someone who would likely have more luck testing would be a Google phone owner. That's the phone I will look into getting next but it will be some time https://www.xda-developers.com/android-13-dp1-google-pixel-6-kvm-virtual-machine/
[Windows 10, 8, 7, XP etc.] jenneh:
I ran into a lot of videos peddling modded winxp as win10 or 11 arm and decided to try to install xp in qemu.

It's taking forever to install on the phone so I decided to try to install it in qemu on windows to see if that would be any faster..

It is but it wasn't as much faster as I had thought it would be... So if you ever wanted to know how to install things in qemu on windows (without nox, lol) here's how.

Spoiler content hidden.

Spoiler content hidden.

As a note, if you use any of the code above, the -net code needs to be replaced. Winxp needs this code instead:

-net user -net nic,model=rtl8139 ref

Premade winxp hard drive:

winxp.img

drive.google.com
[Windows 10, 8, 7, XP etc.] lentas:
i got grub on debian arm64 iso
[Windows 10, 8, 7, XP etc.] Zai23:
What are the limitations of what you can do on it, though? Do you have internet functioning? USB through OTG? Thank you in advance!
[Windows 10, 8, 7, XP etc.] jenneh:
It does have internet, the terminal is able to install whatever you like (i didnt personally have trouble installing programs). You have su access in the terminal as well, so really the only limitations will be computational power of your phone for whatever it is you want to do. That nethunter version of kali was the best running OS on my generic phone so it makes me question if it is 32 bit arm or 64? This documentation may have the answer https://www.kali.org/docs/nethunter/installing-nethunter/

USB through OTG still needs to be tested, I don't have one of these yet for my keyboard / mouse, just used it natively
[Windows 10, 8, 7, XP etc.] Zai23:
If you can use it like a local machine then, theoretically, you would be able to use this emulated Linux to do anything, even get other Android devices rooted or flashing them with a custom ROM through Fastboot. Am I correct? If you try this, please let me know. I have been asking about this for a while now. Thanks!
[Windows 10, 8, 7, XP etc.] jenneh:
@Zai23 "even get other Android devices rooted or flashing them with a custom ROM through Fastboot" You are Correct In Theory (i say in theory cause i can only confirm adb works right now --wirelessly, but fastboot would need the otg cable to try)

edit-- my shield is flashable via usb-c cable, so i need to reinstall kali to see if the phone detects the shield in fastboot, will let you know

results-- So it doesn't natively see the shield plugged into the phone's usb-c port by typing fastboot devices, going to see if there would be a way to get it to post on the phone and will pick up a otg cable for testing tomorrow

Termux-usb - Termux Wiki

wiki.termux.com
[Windows 10, 8, 7, XP etc.] Zai23:
Ok, I'm sorry for not being specific enough but when I said Fastboot I meant using an OTG cable. Same as using USB on Linux running on a desktop. Thanks for the update. I'm anxious to see if there is a specific distro that would show your Shield when you type in the command. There's so many mobile linux out there but I mentioned Ubuntu Touch because it seems to be the most widely used in mobile from what I've been reading.
[Windows 10, 8, 7, XP etc.] jenneh:
@Zai23 I couldn't get ahold of an actual OTG cable because, Modern Retail, but managed to purchase a USB-C hub with 4 female usb-a ports. It's this exact model though likely any other usbc hub should work https://www.bestbuy.com/site/insignia-4-port-usb-c-hub-black/6417290.p?skuId=6417290 tbh i am gonna return it for one which has hdmi, ethernet, and a power supply, so you could literally turn the phone into a computer https://www.bestbuy.com/site/j5crea...ller-space-gray-black/6519681.p?skuId=6519681 edit--so i got this one and it doesn't work out of the gate. the walmart onn 7.1 one works fine though

I plugged in a cheapo wireless keyboard and mouse into the usbc hub and it worked out of the gate on the phone itself, as well as in the nethunter machine without any setup. So yes flashing from any linux distro on our phones to a separate android device is possible :D but with the right hardware haha
[Windows 10, 8, 7, XP etc.] Zai23:
That's great to hear, man! I want to get a Pixel 3A XL, as this is the model UBports promotes as having 100% functionality. Do you think that I can get Android Tools on this and flash my little brother's tablet? I can access the menu that says:

Recovery <===

Fastboot

Normal Boot

Have you tried something like this?
[Windows 10, 8, 7, XP etc.] jenneh:
Yes but for me it fails to see my device when I run fastboot devices. This may be something related to just the nvidia shield, not sure. When I have another device that will let me flash images normally, will report back. That or maybe someone who has tried before could share their experience with us

Spoiler content hidden.
[Windows 10, 8, 7, XP etc.] Zai23:
Keep me up to speed, please. And thank you again!
[Windows 10, 8, 7, XP etc.] jenneh:
Working Ubuntu ARM 64 for Termux with GUI

Spoiler content hidden.

If you encounter any interesting Termux scripts in your travels, please do share!
[Windows 10, 8, 7, XP etc.] jenneh:
Hi there.

I want to explain better what these termux scripts are doing, as it pertains to something I am trying to figure out how to do. (PS I did not create any of the scripts I shared above and everything being shared below is theory right now)

These scripts are using the termux package called proot-distro to download, build, and maintain the distro. Proot-distro is storing and managing everything in the /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ directory.

I want to be able to take a fully built machine and copy it and be able to easily reinstall it, instead of having to spend an hour installing. I also want to be able to share these prebuilt machines with others. I tried in a couple of terminal emulators a couple of different ways to copy the Ubuntu directory from the installed-rootfs directory but it spits out symbolic link errors.

Upon reading the github page for the proot-distro, it appears they have their own methods built in for backup which I think is due to the fact that proot shares the kernel with our android device that we are running it on, therefore it inherits all selinux / other security parameters, thus creating the symlinks. Not sure? Maybe someone can explain this part better

GitHub - termux/proot-distro: An utility for managing installations of the Linux distributions in Termux.

An utility for managing installations of the Linux distributions in Termux. - termux/proot-distro

github.com

Backup:

View attachment 5875199

and here is how to restore:

View attachment 5875201

This is just a knowledge dump for now. Waiting on phone to charge more and will start with the ubuntu machine and see if it can be backed up and restored as imagined.

PS I think if I am reading the restore instructions correctly, it is saying if you already had an Ubuntu distro installed, if you were to "restore" using a backed up tar archive, that the archive will completely override the old machine's values fully with the backup's values. So there would be no need to uninstall the current distro if I am understanding correctly.

--edit yes I understood correctly, but here is the missing part, you Must have an ubuntu distro installed in order to restore a backup. It doesn't have to be populated with anything, just simply proot-distro install ubuntu must be ran prior to the restore command if you didn't already have ubuntu installed.

Spoiler content hidden.

👾👾👾👾