termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
783 stars 160 forks source link

can't mount /dev/shm #83

Closed seisdr closed 4 years ago

seisdr commented 4 years ago

I get this while launching enlightenment

currently unimplemented ecore_x_image_get without shm

I tried this

root@localhost:~# mkdir /dev/shm && mount -t shm tmpfs /dev/shm
mount: /dev/shm: cannot mount tmpfs read-only.

proot has --mount option that gonna help?

oxr463 commented 4 years ago

Can you provide the command used for executing PRoot?

seisdr commented 4 years ago

Screenshot_2019-12-02-18-02-13 .

michalbednarski commented 4 years ago

In general, you cannot use mount inside proot, you'd have to specify mounts in proot command line.

Easiest way to do so is adding following to launcher script (taken from here)

command+=" -b ubuntu-fs/tmp:/dev/shm"

(/dev/shm should be some writable directory, reusing same directory as guest /tmp appears to be ok)

seisdr commented 4 years ago

Still

currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
currently unimplemented ecore_x_image_get without shm
michalbednarski commented 4 years ago

I've found that this error is not about /dev/shm, but about MIT-SHM X server extension

Looks like Enlightenment can run without that if you uncheck Enable Compositing during initial Enlightenment setup (Do rm -rf ~/.e to wipe Enlightenment settings and start over)

MIT-SHM is based on SysV Shared Memory which is unsupported on Android and as Xserver usually runs outside proot support would require changes to both proot and Xserver being used

seisdr commented 4 years ago

oh wow thanks I can't open programs but it launched!