Prerequisite:
- Ubuntu 20.04
- Lantern
Steps:
- Make sure virtualization with KVM is available.This should return a non-zero value.
grep -c -w "vmx\|svm" /proc/cpuinfo
- Install dependency modules
$sudo apt-get install devscripts config-package-dev debhelper-compat
- Download, build, and install the host cuttlefish-common package
$git clone https://github.com/google/android-cuttlefish $cd android-cuttlefish $debuild -i -us -uc -b $sudo dpkg -i ../cuttlefish-common_*_amd64.deb || sudo apt-get install -f
Power off and power on again will trigger installing additional kernel modules and applying udev rules.
Please check whether the capability_query.py and unpack_boot_image.py scripts are installed.$ubuntu-server:~$ ls /usr/lib/cuttlefish-common/bin/ capability_query.py unpack_boot_image.py
Notice:Reboot sometimes not effect.
-
Go to http://ci.android.com/
-
Enter a branch name. Start with `aosp-master`
-
Navigate to `aosp_cf_x86_64_phone` and click on `userdebug` for the latest build
-
Click on `Artifacts` and download these files
`aosp_cf_x86_64_phone-img-xxxxxx.zip`
`cvd-host_package.tar.gz` -
On your local system, combine the packages
$mkdir cf $cd cf $tar xvf /path/to/cvd-host_package.tar.gz $unzip /path/to/aosp_cf_x86_64_phone-img-xxxxxx.zip
-
Add current user to cvdnetwork and kvm group.
$sudo usermod -aG cvdnetwork $USER $sudo usermod -aG kvm $USER
Logout and re-login again.
- Launch cuttlefish
$HOME=$PWD ./bin/launch_cvd --start_webrtc
- Install chrome brower
$wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb $sudo apt install ./google-chrome-stable_current_amd64.deb
Notice:Firefox is not work
-
Open chrome and input https://0.0.0.0:8443