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

Install on Termux (without sudo privilages)? #17

Open
danielkrajnik opened this issue Jul 17, 2023 · 2 comments
Open

Install on Termux (without sudo privilages)? #17

danielkrajnik opened this issue Jul 17, 2023 · 2 comments

Comments

@danielkrajnik
Copy link

danielkrajnik commented Jul 17, 2023

I'm trying to install pass coffin on a non-rooted Android device via termux. I'm stuck on sudo make install step. It complains that it can't find /etc/bash_completion.d directory:

install: creating directory '/data/data/com.termux/files/usr/lib/password-store'
install: creating directory '/data/data/com.termux/files/usr/lib/password-store/extensions'
install: cannot change permissions of ‘/etc/bash_completion.d’: No such file or directory
make: *** [Makefile:18: install] Error 1

There may be two things here:

  1. no sudo access
  2. location is wrong (by default termux uses $PREFIX - /data/data/com.termux/files/usr)

Any advice would be really appreciated.

@danielkrajnik
Copy link
Author

danielkrajnik commented Jul 17, 2023

Okay, I think make install DESTDIR=$PREFIX works, although now pass open complains that:
Error: coffin is not in the password store.

even though it's clearly there... (.password-store/.coffin/coffin.tar.gpg)

@danielkrajnik
Copy link
Author

danielkrajnik commented Jul 17, 2023

It turns out that PREFIX variables got messed up and scripts landed in

/data/data/com.termux/files/usr/data/data/com.termux/files/usr/lib/password-store/extensions/

instead of

/data/data/com.termux/files/usr/lib/password-store/extensions/

However, even after moving them to the correct location pass open still gives the same error as above.

Also termux doesn't use systemd so automatic timers won't work after opening the coffin, so it may make more sense to just extract coffin manually and close it via cron job every 10 minutes or so.

If anyone have managed to get this to work though please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant