Skip to content

Instantly share code, notes, and snippets.

@lirizhong97
lirizhong97 / ubuntu-cli-install-android-sdk.sh
Last active April 3, 2025 14:45 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
# add-apt-repository ppa:webupd8team/java
add-apt-repository ppa:ts.sch.gr/ppa
apt-get update
apt-get install -y oracle-java8-installer
@lirizhong97
lirizhong97 / grub.cfg
Created November 18, 2022 09:32 — forked from kvaps/grub.cfg
Grub config for EFI and PXE boot
set timeout=3
menuentry 'Linux diskless' --class os {
insmod efi_gop
insmod efi_uga
# set server from option 66 (tftp-server-name) if not exist, use next_server
if ! net_get_dhcp_option net_default_server ${net_default_interface} 66 string; then
echo ' using next_server option instead.'