Skip to content
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

Libreoffice /proc not mounted #24

Closed
dsvilko opened this issue Nov 16, 2018 · 13 comments
Closed

Libreoffice /proc not mounted #24

dsvilko opened this issue Nov 16, 2018 · 13 comments
Labels
bug Something isn't working

Comments

@dsvilko
Copy link

dsvilko commented Nov 16, 2018

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
Copy link
Member

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.

@exalab999 exalab999 added the bug Something isn't working label Nov 18, 2018
@dsvilko
Copy link
Author

dsvilko commented Nov 18, 2018

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
Copy link
Author

dsvilko commented Nov 18, 2018

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
Copy link

It doesn't work for me too on Ubuntu.

@sujitvasanth
Copy link

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
Copy link

serovar commented Sep 8, 2019

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
Copy link

Is there any other option except rooting the device?

@Zin-Uru
Copy link

Zin-Uru commented Oct 17, 2019

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
Copy link

frpe98 commented Jan 20, 2020

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

@yunuskasla
Copy link

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
Copy link

khenty commented Jun 8, 2021

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

@krmanik
Copy link

krmanik commented Sep 14, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests