ZhymabekRoman / Exagear-For-Termux

Non official modified version of Exagear for Termux and proot based environemnts - Anlinux, AndroNix, UserLand and etc. No root access required
GNU General Public License v2.0
175 stars 15 forks source link

Can i swap debian root fs to ubuntu root fs? #9

Closed Dawimpy closed 2 years ago

Dawimpy commented 3 years ago

this is just a simple question.

Can i swap the debian rootfs to ubuntu rootfs?

cause i more like ubuntu :)

if can , please teach me how to do it. :)

ZhymabekRoman commented 2 years ago

Yes of course, just extract Ubuntu rootfs to exagear-fs folder. In the next few days I will add an Ubuntu roootfs image to the repository

ghost commented 2 years ago

please support proot-distro + termux-X11 version

ghost commented 2 years ago

proot-distro installed rootfs path $PREFIX/var/lib/proot-distro/installed-rootfs/ubuntu

ZhymabekRoman commented 2 years ago

please support proot-distro

Exactly what do you want? Do you want Exagear for Termux to run in proot-distro? Or the ability to run proot-distro distributions in Exagear For Termux?

termux-X11 version

Most likely not to implement such

ghost commented 2 years ago

the ability to run proot-distro distributions in Exagear For Termux

ghost commented 2 years ago
diff --git a/start-exagear.sh b/start-exagear.sh
index 7762537..6d7924d 100755
--- a/start-exagear.sh
+++ b/start-exagear.sh
@@ -9,7 +9,7 @@
 PROGRAM_NAME="ExaGear for Termux"
 PROGRAM_VERSION="2.4"
 CURRENT_WORK_FOLDER=$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)
-DEFAULT_ROOTFS_FOLDER="exagear-fs/"
+DEFAULT_ROOTFS_FOLDER="$PREFIX/var/lib/proot-distro/installed-rootfs/ubuntu"
ghost commented 2 years ago
[Starting x86 environment]

proot warning: can't sanitize binding "/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/sys/fs/selinux/": No such file or directory
lkv_SubstitutedPathsListEntry::create: substitution of the directory '/dev' is requested,
but in the guest image there is no directory named '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/dev'.
ZhymabekRoman commented 2 years ago

@nagasawa Lol, do you really think that this way you can run x86 distribution on arm system? By default, proot-distro downloads the arm version of distributions (if host system arch is arm), we need to have x86, so the above proposed method will not suit us, and even more so the proposed method does not allow you to run your custom distributions from the exagear-fs folder

ZhymabekRoman commented 2 years ago

@nagasawa Try to download proot-distro's distribution archives and exctract it to exagear-fs folder

ghost commented 2 years ago

Do you mean running wine on x86 linux?

ghost commented 2 years ago

I want to run windows.

ZhymabekRoman commented 2 years ago

Do you mean running wine on x86 linux?

Yes

I want to run windows.

No way. Only UNIX like OS only you can run on Android with minimal overhead. If you want run Windows application use Wine (fast), or emulate Windows in QEMU (veryyyyyy slowwww)

ghost commented 2 years ago

If I want to run windows applications, does that mean that arm64 wine is sufficient?

ZhymabekRoman commented 2 years ago

@nagasawa No, you need to user x86 Wine, because ARM version of Wine emulates Windows RT - in nutshell, this is a specialized version of Windows for arm, that can not to run a regular Windows application.

ghost commented 2 years ago

There seems to be a project that has made it possible to move it. https://github.com/AndreRH/hangover

ghost commented 2 years ago

@nagasawa It was a simple app, but it looked like a test project that didn't work.

ghost commented 2 years ago

It would be helpful to be able to pass proot options. I want to use --bind.

ghost commented 2 years ago

/sdcard & $HOME I want to bind.

ghost commented 2 years ago

I'd like to see support for more than just bash.

ghost commented 2 years ago
grep "root" exagear-fs/etc/passwd | rev | cut -d ':' -f 1 | rev

/bin/zsh
ghost commented 2 years ago
    passwd=`grep "root" $DIST_PATH/etc/passwd`
    shell=${passwd##*:}
    shell_name=${shell##*/}
ghost commented 2 years ago

Is amd64 supported?

ZhymabekRoman commented 2 years ago

Is amd64 supported ?

I tried to add amd64 support using the latest Exagear from Huawei, but seems no way

ZhymabekRoman commented 2 years ago

There seems to be a project that has made it possible to move it. https://github.com/AndreRH/hangover

It is very slow, because it uses QEMU to emulate the x86 architecture

ZhymabekRoman commented 2 years ago

It would be helpful to be able to pass proot options. I want to use --bind.

I'd like to see support for more than just bash.

Well, I'll think about these functions as soon as I find the time. By the way PR is welcome

ZhymabekRoman commented 2 years ago

After Ubuntu 18.04 Canonical decided to stop supporting i386 (x86) systems, so it doesn't makes sense to install Ubuntu in Exagear today.

So, I close this issue, thanks everybody!