23xvx / Termux-Proot-Custom-Installer

A script to install any distro by yourself in Termux
Apache License 2.0
31 stars 8 forks source link

Proot Warning, Can't Sanitize Bindings #1

Closed Yonko12345678 closed 1 year ago

Yonko12345678 commented 1 year ago

~/ubuntu-in-termux $ ./startubuntu.sh proot warning: can't sanitize binding "ubuntu-fs/tmp": No such file or directory proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory proot info: default working directory is now "/" proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/ubuntu-in-termux/ubuntu-fs, cwd = /, $PATH=(null))

How do I fix this?

23xvx commented 1 year ago

Sorry, do you mean ubuntu-in-termux ? This repository is about custom proot installer , which is not the same . Also, I am not the person who contribute that repository If you have issue, you can go to https://github.com/MFDGaming/ubuntu-in-termux

Yonko12345678 commented 1 year ago

I resolved this problem, but I have another question.. is: can I use Termux X11 with Termux-Proot-Custom, I want to use Termux X11 as VNC server.

in XFCE4 desktop, Termux X11 work fine by using: export DISPLAY=:0 dbus-launch --exit-with-session startxfce4 &

I tried export DISPLAY=:0 dbus-launch --exit-with-session gnome-session &

but doesn't work...

23xvx commented 1 year ago

Gnome-session requires systemd , which doesn't work in proot linux. However, gnome shell works fine since it doesn't require systemd. Therefore , you can start gnome desktop with

export DISPLAY=:0 dbus-launch --exit-with-session gnome-shell --x11 &

Yonko12345678 commented 1 year ago

Yes yes, I succedded in that day using:

export DISPLAY=:1

export PULSE_SERVER=127.0.0.1

export XDG_CURRENT_DESKTOP=GNOME service dbus start gnome-shell --x11

Thank you so much