feat: add script that automates install steps

This commit is contained in:
Hammed Oyedele 2020-03-04 10:23:32 +01:00
parent e0a237e571
commit 083cc573b6
No known key found for this signature in database
GPG Key ID: B8E2CB30A8D8071C
1 changed files with 19 additions and 0 deletions

19
INSTALL.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# First install the configuration files:
sudo cp anbox.conf /etc/modules-load.d/
sudo cp 99-anbox.rules /lib/udev/rules.d/
# Then copy the module sources to /usr/src/:
sudo cp -rT ashmem /usr/src/anbox-ashmem-1
sudo cp -rT binder /usr/src/anbox-binder-1
# Finally use dkms to build and install:
sudo dkms install anbox-ashmem/1
sudo dkms install anbox-binder/1
# Verify by loading these modules and checking the created devices:
sudo modprobe ashmem_linux
sudo modprobe binder_linux
lsmod | grep -e ashmem_linux -e binder_linux
ls -alh /dev/binder /dev/ashmem