geeks-r-us / anbox-playstore-installer

Install script that automates installation of googles playstore in anbox
MIT License
656 stars 155 forks source link

Version without snap/snapd? #16

Closed xoitx closed 4 years ago

xoitx commented 5 years ago

Hi, I was wondering if it's possible for a version without snap for those of us that like to build from source the normal way. That and also the aur packages have only the build version. Is there a way to edit the script such that I can use it without snap? Cause when I tried it, it said cannot find /snap ... Regards

LinArcX commented 5 years ago

I install anbox through aur in arch Linux. How to use your scripts? (without snap)

modo-j commented 5 years ago

I'll rewrite the script to work with AUR/possibly source built version when I get home.

Essentially, (mind you, I only looked it over for about ten seconds) you just have to change the directory for the android image to /var/lib/anbox/android.img and use systemctl restart instead of snap restart... That SHOULD be enough.

EDIT: it will take a little more than that, but hopefully not much. Just need to source where a few more things are arranged on the system vs snap version

EDIT#2: Until I can figure a way to implement rootfs-overlay, I'm going to revert to the initial way this script functioned. Once I'm home I'll get something test-worthy thrown together @LinArcX @xoitx

Saren-Arterius commented 5 years ago

https://gist.github.com/Saren-Arterius/ea10a323dd208a28b9463508af8343a4

Tested on Arch Linux with Anbox installation from AUR. This works by unsquashing the img, keep the routine and squashing into a new img. No overlayfs is used.

Arucard1983 commented 5 years ago

I also made a version that works with the Debian Contrib repositories.

timmyfromspace commented 5 years ago

@Arucard1983 would you mind sharing it? I see your fork, but no changes, thank you :-)

Arucard1983 commented 5 years ago

@Arucard1983 would you mind sharing it? I see your fork, but no changes, thank you :-)

It's on "debian" branch of my fork.

https://github.com/Arucard1983/anbox-playstore-installer/tree/debian