目的:运行Redroid
VPS:天翼云电脑
环境:Ubuntu 22.04
与甲骨文的系统不同的是,
很多Ubuntu没有自带或启用ashmem_linux和binder_linux的内核,需要自己添加。
步骤
- 安装 DMKS:
sudo apt install dkms
- 安装 Git and Clone:
sudo apt install git
git clone https://github.com/anbox/anbox-modules.git
cd anbox-modules
- 复制文件:
sudo cp anbox.conf /etc/modules-load.d/
sudo cp 99-anbox.rules /lib/udev/rules.d/
sudo cp -rT ashmem /usr/src/anbox-ashmem-1
sudo cp -rT binder /usr/src/anbox-binder-1
- 使用DKMS安装:
sudo dkms install anbox-ashmem/1
sudo dkms install anbox-binder/1
- 最后启用他们:
modprobe binder_linux devices="binder,hwbinder,vndbinder"
modprobe ashmem_linux
感谢:https://www.youtube.com/watch?v=k_eMzlHBXiA
https://github.com/anbox/anbox-modules
https://github.com/remote-android/redroid-doc
不错,感谢分享
我隐约记得我用https://github.com/anbox/anbox-modules 装上了,但是waydroid还是用不了
@luofengyuan #2 那就用redroid