oracle cloud arm64 ubuntu 24.04 redroidのインストール
概要 Oracle Cloudでは、arm64サーバーを簡単に作成できる。 Ubuntu 24.04 arm64を作成し、redroidをインストールする方法を説明する。 (<https://github.com/remote android/redroid doc ) Dockerのインストール ポート80への外部接
GGAMI
概要 Oracle Cloudでは、arm64サーバーを簡単に作成できる。 Ubuntu 24.04 arm64を作成し、redroidをインストールする方法を説明する。 (<https://github.com/remote android/redroid doc ) Dockerのインストール ポート80への外部接
目次
Oracle Cloudでは、arm64サーバーを簡単に作成できる。
Ubuntu 24.04 arm64を作成し、redroidをインストールする方法を説明する。 (https://github.com/remote-android/redroid-doc)
apt update
apt-get install -y apt-transport-https ca-certificates
docker run -d --restart unless-stopped -p 80:80 traefik/whoamicat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logoapt install adbmkdir -p /dev/binderfs
mount -t binder binder /dev/binderfs
ls -l /dev/binderfsapt install linux-modules-extra-`uname -r`
modprobe binder_linux devices="binder,hwbinder,vndbinder"
modprobe ashmem_linux
(error => modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/6.8.0-1012-oracle)
https://github.com/remote-android/redroid-doc/issues/647modprobe ashmem_linuxは有効化できないだろう。 カーネル5.18から削除されたとのこと。また、ashmem_linuxモジュールはオプションとのこと。
docker run -itd --rm --privileged \
--pull always \
-v ~/redroid/data-v15:/data \
-p 5555:5555 \
redroid/redroid:15.0.0-latestadb devices
List of devices attached
emulator-5554 device
localhost:5555 deviceadb connect localhost:5555
adb -s localhost:5555 shell getprop ro.product.cpu.abi
arm64-v8aadb connect 10.10.10.10:5555
scrcpy -s 10.10.10.10:5555このようにすると、インストールが完了し、Dockerイメージとして起動したredroidエミュレーターを確認できる。

後ほど、adb関連のコマンドをすべて書いてみようと思う。
dmesg | grep binderもしかして……binder_linuxとAndroidが正しく接続されているか確認したい場合は、このコマンドでログを確認できる。