Posts

Showing posts from April, 2020

Ubuntu 18.04 - Install Android Emulator

Android Emulator on Linux Download https://developer.android.com/studio/index.html?hl=sk Extract sudo mkdir /opt/android-studio sudo tar xvzf ~/Downloads/android-studio-ide-192.6308749-linux.tar.gz -C /opt/ Install requirments for 64-bit machine sudo apt update && sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 Optional KVM Install sudo apt install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils sudo adduser `id -un` libvirtd sudo adduser `id -un` kvm sudo reboot #./emulator64-x86 -avd < your AVD name> -qemu -m 2047 -enable-kvm Configure Android Studio cd /opt/android-studio/bin/ ./studio.sh Create desktop/App shortcuts echo '#!/usr/bin/env xdg-open' > ~/Desktop/AndroidStudio.desktop echo '[Desktop Entry]' >> ~/Desktop/AndroidStudio.desktop echo 'Version=1.0' >> ~/Desktop/AndroidStudio.desktop echo 'Type=Application' >> ~/Desktop/AndroidStudio.desktop echo ...

Ubuntu 18.04 - Run Android Apps

Ubuntu 18.04 - Run Android Apps Install prerequisites sudo add-apt-repository ppa:morphis/anbox-support sudo apt update sudo apt install anbox-modules-dkms Method 2 - Disable Secure Boot in shim-signed sudo mokutil --disable-validation sudo reboot # Change Secure Boot state # Enter password you created # Select Yes to disable Secure Boot in shim-signed # Press Enter key to finish the whole procedure. (I had to enter the character based on the character location that was requested) # Reboot - to start OS Load kernel models once, reboot will make it stick sudo modprobe ashmem_linux sudo modprobe binder_linux Install anbox snap install --devmode --beta anbox Start anbox on command line or via UI anbox session-manager Enable Unknown Sources under Settings Use https://chrome.google.com/webstore/detail/apk-downloader-for-google/idkigghdjmipnppaeahkpcoaiphjdccm?hl=en extension to download APK from https://play.google.com/store/apps Add APK to anbox adb devices adb install <...

Ubuntu 18.04 - Vagrant Install using libvert Plugin

Ubuntu 18.04 - Vagrant Install using libvert Plugin Dependencies sudo apt install build-essential vagrant ruby-libvirt sudo apt install qemu libvirt-bin ebtables dnsmasq-base sudo apt install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev Install plugin vagrant plugin install vagrant-libvirt Download vagrant box vagrant box add generic/ubuntu1804 --provider=libvirt Download vagrant file vagrant init generic/ubuntu1804 Start Vagrant vagrant up # if you have multiple providers vagrant up --provider=libvirt Destroy VM vagrant destroy Note: You might consider changing directories. You can only have one Vagrant file in a directory and you might want to organize a bit. Refrences https://github.com/vagrant-libvirt/vagrant-libvirt https://computingforgeeks.com/using-vagrant-with-libvirt-on-linux/