Artix Linux Forum

Artix Linux => Tutorials and HOWTOs => Topic started by: Arch_user on 19 September 2021, 13:03:22

Title: Anbox without systemd
Post by: Arch_user on 19 September 2021, 13:03:22
Note: This will work on OpenRC, Runit, Dinit and Suite66
Requirements:
Kernelbinderfsashmem_linuxbinder_linux
linux-zen
linux
linux-lts

Installation:
        Runit: anbox-runit (https://github.com/Luciogi/artix_pkg/tree/main/anbox-runit)
        Openrc: anbox-openrc (https://github.com/Luciogi/artix_pkg/tree/main/anbox-openrc)   
        Dinit: anbox-dinit (https://github.com/Luciogi/artix_pkg/tree/main/anbox-dinit)         
        *[Incomplete][Need Testing]] Suite66: anbox-suite66 (https://git.sr.ht/~strahinja/anbox-suite66) (Give Feedback (https://forum.artixlinux.org/index.php/topic,3051.msg24786.html#msg24786))
   
   
Credits:
A huge thanks to Antoine Fontaine Maintainer of anbox at Alpine package repository (https://pkgs.alpinelinux.org/package/edge/community/x86_64/anbox-openrc)
Arch wiki anbox page got updated information for more infomation go to https://wiki.archlinux.org/title/Anbox

Screenshot:
(https://i.imgur.com/iPWbeW8.png)
[/list][/list][/list]
Title: Re: Anbox on Artix Linux
Post by: dreieck on 21 September 2021, 15:28:54
Wow, thanks!

The anbox-container initscript also needs openrc-fuse, this should be added to the depends array.

And in case someone makes an Arch package out of it: If the abovementioned PKGBUILD is used, the package is called anbox-git (provides a full anbox), and it should be added anbox-openrc to the provides array.

Thanks again for that thing!
Title: Re: Anbox on Artix Linux
Post by: Arch_user on 22 September 2021, 16:04:26
And in case someone makes an Arch package out of it: If the abovementioned PKGBUILD is used, the package is called anbox-git (provides a full anbox), and it should be added anbox-openrc to the provides array.
Can you elaborate more this line?
Edit: I guess you saying that create separate package for services file
Title: Re: Anbox on Artix Linux
Post by: dreieck on 28 September 2021, 18:35:05
And in case someone makes an Arch package out of it: If the abovementioned PKGBUILD is used, the package is called anbox-git (provides a full anbox), and it should be added anbox-openrc to the provides array.
Can you elaborate more this line?
Edit: I guess you saying that create separate package for services file

No, I mean:


I am currently making an AUR package, and I will call it anbox-nosystemd-for-openrc-git with corresponding provides entries. If it works I will try to split it up into a anbox-nosystemd-git and a anbox-openrc.

Does this answer your question(s), provide clarification for you?
Title: Re: Anbox on Artix Linux
Post by: Arch_user on 29 September 2021, 08:13:51
I m so confused with package naming for anbox

 I guess splitting package will work fine.


Title: Re: Anbox on Artix Linux
Post by: Arch_user on 29 September 2021, 08:28:43
Code: [Select]
 sudo rc-service anbox-container start -v

fuse              |fuse              | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/in
it.d/fuse start
fuse              | * Starting fuse ...                                                                                [ ok ]
anbox-container   |anbox-container   | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/in
it.d/anbox-container start
anbox-container   | * Creating anbox0 network interface ...                                                            [ ok ]
anbox-container   | * Starting Anbox container manager ...
anbox-container   | * supervise-daemon: fopen `/var/run/anbox-container.pid': No such file or directory
anbox-container   | * Detaching to start `/usr/bin/anbox'

Code: [Select]
 sudo rc-service anbox-session start -v
anbox-session     |anbox-session     | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/anbox-session start
anbox-session     | * Starting anbox-session ...
anbox-session     | * start-stop-daemon: fopen `/var/run/anbox-session.pid': No such file or directory
anbox-session     | * Detaching to start `/usr/bin/anbox' ...

Do  you know why anbox-session.pid and  anbox-container.pid not found?
I checked paths , these file exist

Title: Re: Anbox without systemd | Artix Linux (This post is not complete)
Post by: Arch_user on 07 October 2021, 14:45:24
Update:
Anbox is working on Artix Linux (runit)
Title: Re: Anbox without systemd
Post by: Arch_user on 08 October 2021, 16:07:59
Update:
Anbox-openrc link added again
Title: Re: Anbox without systemd
Post by: Arch_user on 20 February 2022, 08:06:27
Update:
Version matched with AUR pkg (https://aur.archlinux.org/packages/anbox-git)
Title: Re: Anbox without systemd
Post by: mobin2008 on 18 March 2022, 11:04:41
Hello.
anbox-dinit is available at:
https://git.mobintestserver.ir/mobin2008/anbox-dinit
Title: Re: Anbox without systemd
Post by: strajder on 23 March 2022, 13:11:15
I have made the unofficial anbox service for 66. It is currently at:
https://git.sr.ht/~strahinja/anbox-suite66

Disclaimer: In my experience, Anbox itself is rather unstable. It could be due to the Android image I tested with, anbox-image-gapps or the fact that I don't use elogind but seatd. Anbox Application Manager starts, but applications just crash randomly.

In any case, this service (https://git.sr.ht/~strahinja/anbox-suite66/tree/master/item/anbox) is pretty straightforward, as with other inits, so if Anbox is working for you, it will add support for starting container-manager as a 66 service.
Title: Re: Anbox without systemd
Post by: Arch_user on 24 March 2022, 16:05:28
I used this image at the time which give much better experience than other images
 https://aur.archlinux.org/packages/anbox-image-nocsd

Title: Re: Anbox without systemd
Post by: Arch_user on 26 March 2022, 09:31:04
Hello.
anbox-dinit is available at:
https://git.mobintestserver.ir/mobin2008/anbox-dinit
Hi! I liked your work for anbox-dinit.
Title: Re: Anbox without systemd
Post by: Arch_user on 27 June 2022, 12:07:39
Update: ashmem is removed from kernel version 5.18.
solution is https://aur.archlinux.org/packages/anbox-modules-dkms https://aur.archlinux.org/packages/anbox-modules-dkms-git
Title: Re: Anbox without systemd
Post by: Arch_user on 06 February 2023, 16:51:59
Anbox is retired

https://github.com/anbox#important---hi-there-
Title: Re: Anbox without systemd
Post by: trizt on 07 February 2023, 11:57:21
Darn
Title: Re: Anbox without systemd
Post by: crinum_ornatum on 04 March 2023, 00:28:08
Shucks, I remember wanting to try Anbox some years back; the dependency on systemb was a show-stopper. Now I find this but too late.  :o