Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Need xhost for opening GUI apps installed in proot-env from termux vnc #167

Closed
octalfish opened this issue Oct 26, 2019 · 10 comments
Closed
Labels
package request A new package was requested.

Comments

@octalfish
Copy link

octalfish commented Oct 26, 2019

I was looking for a way to open gimp installed inside an alpinelinux proot-env from inside termux's default vnc when i found this :

https://help.ubuntu.com/community/BasicChroot

(check the "Accessing graphical applications inside the chroot" part)

But for this "xhost" is required which i couldn't find in the x11 packages. So does it exist under any package? if not then i guess this is a package request.

@ghost
Copy link

ghost commented Oct 26, 2019

Are you sure that xhost is needed ?
Do you getting some error or just "following tutorial" ?

@octalfish
Copy link
Author

Pretty much just "following tutorial".

@ghost
Copy link

ghost commented Oct 26, 2019

I will add a package, however it is not really necessary if you bind your home and tmp directories inside chroot.

ghost pushed a commit that referenced this issue Oct 26, 2019
ghost pushed a commit that referenced this issue Oct 26, 2019
@octalfish
Copy link
Author

Thanks! Also, how would i bind my home and temp dirs inside chroot though?

@octalfish
Copy link
Author

Proot to be specific, i am running a non-rooted phone

@ghost
Copy link

ghost commented Oct 26, 2019

proot has option -b. Use like -b $PREFIX/tmp:/tmp.

@ghost
Copy link

ghost commented Oct 26, 2019

Closing as xhost is now available via package xorg-xhost.
If you decide to use xhost make sure that DISPLAY is set to 127.0.0.1:1 and vncserver is running with -listen tcp.

@ghost ghost closed this as completed Oct 26, 2019
@ghost ghost added the package request A new package was requested. label Oct 26, 2019
@octalfish
Copy link
Author

The proot command throws an error :

proot error: '/bin/sh' not found (root = /, cwd = /data/data/com.termux/files/home, $PATH=(null))
fatal error: see proot --help.

@ghost
Copy link

ghost commented Oct 26, 2019

Your proot command is probably wrong.

I use something like

proot --link2symlink -b /dev:/dev -b /proc:/proc -b /sys:/sys -b $HOME:/root -b $PREFIX/tmp:/tmp -r ./alpine -w / -0 /bin/su -l

@octalfish
Copy link
Author

That worked, thanks

ghost pushed a commit that referenced this issue Nov 22, 2020
@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package request A new package was requested.
Projects
None yet
Development

No branches or pull requests

1 participant