You are not logged in.
New to systemd. Isn't this strange? I'm sure I must be making a noob mistake.
[brian@archlinux ~]$ systemctl enable anbox-session-manager.service
Failed to enable unit: Unit file anbox-session-manager.service does not exist.
[brian@archlinux ~]$ ls -l /etc/systemd/user/anbox-session-manager.service
lrwxrwxrwx 1 root root 51 Jul 15 11:54 /etc/systemd/user/anbox-session-manager.service -> /usr/lib/systemd/user/anbox-session-manager.service
[brian@archlinux ~]$ ls -l /usr/lib/systemd/user/anbox-session-manager.service
-rw-r--r-- 1 root root 128 Jul 15 11:28 /usr/lib/systemd/user/anbox-session-manager.service
Last edited by biscotty666 (2022-07-16 06:55:02)
Offline
Maybe systemctl enable --user anbox-session-manager.service?
From Systemd wiki page:
The commands in the below table operate on system units since --system is the implied default for systemctl. To instead operate on user units (for the calling user), use systemctl --user without root privileges.
Last edited by Adriik (2022-07-16 03:50:32)
Solo soy un loco más. Please use [code] [/code] tags.
Command cheatsheet ♠ Command not found?
If I write something wrong in English, please correct me.
Offline
Thanks. For some reason I thought user was the default if not running with sudo. So that did advance me a bit but now I'm getting
systemctl enable --user anbox-session-manager.service
Failed to enable unit: Refusing to operate on alias name or linked unit file: anbox-session-manager.service
FWIW I installed everything with yay.
Offline
Offline
That got me a little further maybe:
sudo modprobe binder_linux devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder
[sudo] password for brian:
[brian@archlinux ~]$ sudo modprobe ashmem_linux
[brian@archlinux ~]$ sudo mkdir -p /dev/binderfs
[brian@archlinux ~]$ sudo mount -t binder binder /dev/binderfs
Segmentation fault (core dumped)
[brian@archlinux ~]$ lsmod | grep binder
binder_linux 233472 0
[brian@archlinux ~]$ lsmod | grep ashmem
ashmem_linux 20480 0
This actually was the original guide I tried to follow.
Offline
Like you, I have no idea what you are doing. The link I provided tells you what service to actually enable.
Offline
Failed to enable unit: Refusing to operate on alias name or linked unit file: anbox-session-manager.service
lrwxrwxrwx 1 root root 51 Jul 15 11:54 /etc/systemd/user/anbox-session-manager.service -> /usr/lib/systemd/user/anbox-session-manager.service
How did that symlink come there to be?
Offline
But these are the steps from the link you posted. It just doesn't work. Anyway since the original issue is solved I'll create a new topic for this one.
Offline
systemctl wrote:Failed to enable unit: Refusing to operate on alias name or linked unit file: anbox-session-manager.service
You wrote:lrwxrwxrwx 1 root root 51 Jul 15 11:54 /etc/systemd/user/anbox-session-manager.service -> /usr/lib/systemd/user/anbox-session-manager.service
How did that symlink come there to be?
Just saw this. I put it there. Was it wrong?
Here's some more information. I thought enabling anbox-container-manager I get the same as above. When I try to run the command in the session-manager service file I get:
[brian@archlinux ~]$ anbox session-manager
[ 2022-07-16 06:29:59] [daemon.cpp:61@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory
So I think I need to solve the problem in post #5
Last edited by biscotty666 (2022-07-16 06:38:15)
Offline
I will mark this as solved since the titled issue is solved and create a new post with a more descriptive title of the current problem.
Offline
I put it there. Was it wrong?
It's wrong in the sense that systemctl told you that's it's not gonna operate on this shady thing you put there.
So "bad idea" kinda "wrong".
I thought enabling anbox-container-manager I get the same as above.
You thought what what?
Did you enable anbox-container-manager or did you try to run sth. else instead thinking it was equivalent and getting you … what??
What?
Failed to connect to socket /run/anbox-container.socket: No such file or directory
systemctl status anbox-container-manager
Offline
I have no idea what you are saying. What shady what what? I posted all my commands so I really don't get your point.
Offline
I thought enabling anbox-container-manager I get the same as above.
Is completely unintelligible.
And I pointed out that systemd told you that it's not gonna operate on /etc/systemd/user/anbox-session-manager.service because it's a symlink.
And you didn't post the status of "anbox-container-manager".
Offline
I thought about enabling it.
Offline
Thinking about enabling it won't cut it.
You actually got to do it…
Offline
I'm sorry you have so much trouble understanding me. I obviously did try otherwise I couldn't have said what the error message was. Thanks for your help but I found a solution: Android Studio. Easy peasy. (disambiguation: does not refer to the legume but is a common expression.)
Offline