EXALAB / AnLinux-App

AnLinux allow you to run Linux on Android without root access.
Apache License 2.0
1.76k stars 250 forks source link

Libreoffice /proc not mounted #24

Closed dsvilko closed 2 years ago

dsvilko commented 6 years ago

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.

exalab999 commented 6 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.

dsvilko commented 6 years ago

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?

dsvilko commented 6 years ago

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)

emidiomorgia commented 6 years ago

It doesn't work for me too on Ubuntu.

sujitvasanth commented 5 years ago

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.

serovar commented 5 years ago

Issue solvable either via setenforce 0 or running program under "tsu". Both variants require device to be rooted.

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.

DarthZedd commented 5 years ago

Is there any other option except rooting the device?

Zin-Uru commented 5 years ago

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.

frpe98 commented 4 years ago

Zin-Uru's solution worked awesome for me on Andronix Modded Ubuntu version. Thanks so much!

yunuskasla commented 4 years ago

Zin-Uru.. sir i have tried this method but it says something like permission denied please help sir here is screenshOt Screenshot_20200710-115059_VNC Viewer

khenty commented 3 years ago

Or just edit /usr/lib/libreoffice/program/oosplash with emacs, then create /prod/version. What a hack! Thanks, Zin-Uru.

krmanik commented 3 years ago

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
freebrowser1 commented 6 months ago

Four years later... this patch works in Andronix on a non-rooted Android !