pastebin

Paste Search Dynamic
workstation to launch cuttlefi
  1. Here's a set of commands which worked on my Ubuntu 20.04 workstation to launch cuttlefish. YMMV.
  2.  
  3. # Check python major version is 2 due to incompatibility in acloud-dev which python3
  4. python_major_ver=$(python -V 2>&1 | sed s/Python\ // | cut -c 1)
  5. if [ -z "${python_major_ver}" ]; then
  6.   echo "no Python installed. Exiting"
  7.   exit 1
  8. fi
  9. if [ ${python_major_ver} -ne 2 ]; then
  10.   echo "Python version is "${python_major_version} " but must be 2. Exiting"
  11.   exit 1
  12. fi
  13.  
  14. cd ../../../../..
  15. . build/envsetup.sh
  16. lunch aosp_cf_x86_phone-userdebug
  17. m
  18. # build and use acloud-dev due to acloud python errors on Ubuntu 20.04
  19. # (it uses python 3 even if python 2 version is active)
  20. m acloud
  21. # set memory to 2GB
  22. # default 6GB fails to boot on Ubuntu 20.04 due to crosvm errors (see Launcher log)
  23. acloud-dev create --yes --verbose --local-instance --local-image --hw-property memory:2g
  24.  
Parsed in 0.002 seconds