-
-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got "Couldn't add screen" while working with chroot #231
Comments
Read #44 .
It was renamed for a reason. Some programs try to connect wayland-0 and crash fake compositor. Use |
@ISNing Did you read it? Did it help? |
@ISNing did you root your devices? i just found a way to use termux-x11 with custom chroot(only rooted devices) |
Yes, but it doesn't help, I tried commands in comment, it makes no difference... If I misunderstood you, please tell me. P.S. Sorry for my late responding because I'm on high school and going to graduate months later |
Surely yes, I'm using chroot and debian. It obviously that I've rooted my device |
I am not sure if I can help here, because I have no rooted devices. I am working on something that will make process easier but I am not sure how much time it will take. |
if you want to use termux-x11 with chroot , |
sorry for bad english |
But if this can work, I think chmod 777 should also work... |
Yes, it still got failed to add screen... |
Hope it could help some🤣 |
don't know, i tried it a month ago (on rooted devices android v 12) and tried many methods but nothing works but when i tried to add user with same termux uid(with |
Still doesn't work..... |
When opening termux-x11 directly, does it create any file in |
It creates a socket there. |
oh , here is not any socket created when i open termux-x11 directly. |
It must be created, it is required for establishing connection to xwayland... |
ya, but it created when i exec |
It can not open anything in termux app's filesystem If you are talking about Termux:X11 which is android app... |
@ISNing Can you please try last available build? |
Sorry, but maybe I need to continue test it 90days later(as well as after the colledge entrance exam)... My devices has been taken away several years ago
|
@ask9027 in my way, it will create termux-x11 file in `/tmp/wayland`(As i was described in the issue)
|
I tried last available build in 2023-3-2. But It still didn`t work. |
@ISNing 会不会是TMOE的问题?我按照ask9027所说的把termux和chroot debian 的用户名、用户id、组id都统一了,但还是报那个错。ask9027用的是Linux deploy,我用的termux+TMOE |
Do |
I do not speak Chinese... |
@ask9027 Can you please check if it happens on the latest build? |
starting these from root #!/system/bin/sh
termux=/data/data/com.termux/files/usr
debian=/data/local/tmp/debian
export XKB_CONFIG_ROOT=${debian}/usr/share/X11/xkb
export TMPDIR=${termux}/tmp
export CLASSPATH=${termux}/libexec/termux-x11/loader.apk
/system/bin/app_process / com.termux.x11.Loader -ac :0 after this getting pointer error Pointer tag for 0x76d251a4c8 was truncated, see 'https://source.android.com/devices/tech/debug/tagged-pointers'.
(EE)
Fatal server error:
(EE) Caught signal 6 (Aborted). Server aborting
(EE) but without root it is working fine only if till desktop start otherwise getting same error if
|
|
It looks like that is caused by the way I am initializing GLX (without mesa code). |
Latest build should fix this. |
the issue is fixed in termux-app, In root, x server start with desktop but |
It should not change something in code, it only shows logcat of main apk if it is available. Unfortunately I can not reproduce this. |
What
|
Ok, I see something.
Socket is world-writable but for some reason X clients can not connect it.
|
Yeah, here lies a problem. For some reason clients can not connect this unix socket if server runs as root, even if a client runs as root. |
Signed-off-by: Twaik Yont <twaikyont@gmail.com>
It looks like I've found the root of a problem. Try again. @ask9027 |
in tried but not working with root. well, it is not necessary to use root to |
It is expected to work. Can you contact me in discord or telegram? |
ya sure at discord |
Cursor appearing means it is connected to the server. Try to open some application. |
You are likely doing something wrong... |
Why do you use termux's tmp while you are trying to connect chroot'ed environment? |
Edited it to this : But still the same issue |
I can try to connect your device and check what exactly happens, contact me in telegram or discord. |
are you trying in rooted devices? |
Yes rooted |
did you execute commonds from root shell? |
|
Closing this due to the lack of activity... |
I've been working on using this with a chroot container, I've checked issue#45, but found no one has mentioned how do they fix, just like they haven't done nothing but the problem disappeared...😓
I'm using artifacts from here: https://github.com/termux/termux-x11/actions/runs/4212225635
I'm using chroot container with debian Sid.
I've already done these:
"/data/data/com.termux/files/home/.wayland
(Both in termux-x11 app and termux).wayland
folder to/tmp/wayland
in chroot container(In chroot container) Install xwayland
sudo apt install xwayland
Set display number:
export DISPLAY=:1
Open
Termux:X11
app.6.5. (in termux)Process
termux-x11
(Got same result whether done this. In my view, this is not necessary)(In chroot container)Start xwayland:
Xwayland -noreset ${DISPLAY}
and got failure result(If success)(In chroot container)Start xfce4:
dbus-launch --exit-with-session startxfce4
I've also tried overriding mesa loader driver to avoid two warning, but got same result only with different warning.
MESA_LOADER_DRIVER_OVERRIDE=zink Xwayland -noreset ${DISPLAY}
Warning:
Refered to:
2moe/tmoe#113 (comment)
#45
Log is here:
The text was updated successfully, but these errors were encountered: