[Solved] Questions about running Anbox...

Everything about X, Gnome, KDE, ... and everything running on it

[Solved] Questions about running Anbox...

Postby andoru » 2018-12-29 01:38

So, seeing as Anbox is available in the Sid repos, I decided to give it a go. I've read the sparse manpage, which referred me to the README.Debian file (which is also pretty sparse).
In it I get this confusing bit:

Then start the anbox-container-manager.service and the
anbox-session-manager.service, anbox-session-manager.service is a systemd
user service.


The former I could start, but the latter, systemd reported it doesn't exist. Am I doing something wrong?
I could not connect adb to Anbox, so I'm guessing the fact that not starting the session manager service causes this.

Also:

Android application can be started from desktop menu.


Since I'm using OpenBox, I have to add entries manually to the menu. Can any kind soul give me the specific command to start this?
Last edited by andoru on 2019-01-01 15:53, edited 2 times in total.
andoru
 
Posts: 257
Joined: 2014-03-14 16:59

Re: Questions about running Anbox...

Postby Head_on_a_Stick » 2018-12-29 09:40

andoru wrote:
Then start the anbox-container-manager.service and the
anbox-session-manager.service, anbox-session-manager.service is a systemd
user service.


The former I could start, but the latter, systemd reported it doesn't exist. Am I doing something wrong?

How did you try to start it?

I would use
Code: Select all
systemctl enable --now --user anbox-session-manager

If that fails then check the UnitPath:
Code: Select all
systemctl show --property=UnitPath

/usr/lib/systemd/user/anbox-session-manager.service can be copied to any of the directories in that list to be picked up by the `systemctl` command.

andoru wrote:I'm using OpenBox, I have to add entries manually to the menu. Can any kind soul give me the specific command to start this?

Try
Code: Select all
/usr/bin/anbox

Source: https://packages.debian.org/sid/amd64/anbox/filelist
User avatar
Head_on_a_Stick
 
Posts: 10380
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Questions about running Anbox...

Postby andoru » 2018-12-30 02:12

Thanks HoaS for your help! Glad to see you're still around :)

I wasn't aware that user scripts were a thing of their own, nor that they needed a special switch.
Either way, I did what you suggested, but even when copying the script to UnitPath, I get this when trying to start:
Code: Select all
 
Failed to connect to bus: No such file or directory
andoru
 
Posts: 257
Joined: 2014-03-14 16:59

Re: Questions about running Anbox...

Postby Head_on_a_Stick » 2018-12-30 09:43

andoru wrote:
Code: Select all
Failed to connect to bus: No such file or directory

Can you enable any other unit files as your normal user?

What is the output of
Code: Select all
loginctl user-status
User avatar
Head_on_a_Stick
 
Posts: 10380
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Questions about running Anbox...

Postby andoru » 2019-01-01 12:48

Ah, therein lies the confusion, I was launching the user service with root. It now works, so thanks for the help!
andoru
 
Posts: 257
Joined: 2014-03-14 16:59

Re: Questions about running Anbox...

Postby Head_on_a_Stick » 2019-01-01 13:56

Good news indeed :)

Always remember to never run commands as root unless you absolutely have to:

https://en.wikipedia.org/wiki/Principle ... _privilege

For future reference I always prepend any commands to be run as root with a # symbol, like this:
Code: Select all
# apt update

If there is no # then the command(s) should be run as the normal user.

Anyway, please add [SOLVED] to the thread title to help others who may encounter this problem, thanks!
User avatar
Head_on_a_Stick
 
Posts: 10380
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable