Closed dsvilko closed 2 years ago
The start-ubuntu.sh in Termux mount Android local /proc in the distro, you can try to uncomment that line of code to see if it works.
It doesn't. The problem is not that the /proc filesystem is mounted but that it's not fully mounted. Has anyone got the libreoffice to run through proot on Oreo?
On my PC ubuntu 18.04, libreoffice accesses these files: /proc/filesystems (not accessible) /proc/self/exe (ok) /proc/version (not accessible) /proc/self/maps (exists?) /proc/10670/exe /proc/10669/exe /proc /proc/10669 /proc/self/status (ok) /proc/modules (not accessible) /proc/driver/nvidia/params /proc/meminfo (ok)
It doesn't work for me too on Ubuntu.
Hi I had the same problem when trying to install open office on ubuntu mate running on an oreo based phone. I switched to kali linux on Android 6.0 and works fine. the problem is access permission on Android 8 and above.
For me setting SELinux mode to Permissive via setenforce 0
on Termux (after gaining root permission, in a rooted device, through su
) did the trick.
Is there any other option except rooting the device?
I've found a way. You can edit file /usr/lib/libreoffice/program/oosplash with any HEX editor (bless for example). Just find text "/proc/version" (LibreOffice checks this file) and change to for example "/prod/version". Then you can create fake empty "/prod/version" file in the filesystem, then Office starts and works well (source code says /proc is very important but I can't find any issue, maybe because /proc partially accessible since it is "mounted" with proot to the guest system). Not very fine method but now is the only one without root.
Zin-Uru's solution worked awesome for me on Andronix Modded Ubuntu version. Thanks so much!
Zin-Uru.. sir i have tried this method but it says something like permission denied please help sir here is screenshOt
Or just edit /usr/lib/libreoffice/program/oosplash with emacs, then create /prod/version. What a hack! Thanks, Zin-Uru.
I have created a python script fix-libreoffice.py to automate this process for Arch base distro.
Copy and run in Arch based distro
wget https://raw.githubusercontent.com/infinyte7/manjaro-fs-arm64/main/scripts/fix-libreoffice.py && python fix-libreoffice.py
Four years later... this patch works in Andronix on a non-rooted Android !
Is there any workaround? Libreoffice fails to start on ubuntu complaining that the /proc is not mounted. It is but I guess on Oreo some virtual files are not accessible.