Skip to content

Instantly share code, notes, and snippets.

@guness
guness / 00.install-android-sdk.sh
Last active May 10, 2022 13:19 — forked from nhtua/00.install-android-sdk.sh
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-11-jre-headless -y
java -version