Skip to content

Instantly share code, notes, and snippets.

@filippoitaliano
Created April 1, 2021 15:03
Show Gist options
  • Save filippoitaliano/f16ea01841816e0d231b56d4bb7bf64b to your computer and use it in GitHub Desktop.
Save filippoitaliano/f16ea01841816e0d231b56d4bb7bf64b to your computer and use it in GitHub Desktop.
#!/bin/bash
#* Install NODE
cd $HOME
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
echo '
# NVM
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
' >> ~/.profile
source ~/.profile
nvm install --lts
nvm use --lts
#* Install YARN
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt-get install yarn
#* Install ANDROID
sudo apt-get install openjdk-8-jdk
sudo apt-get install unzip
# get latest sdk tools - link will change. go to https://developer.android.com/studio/#downloads to get the latest one
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip
rm sdk-tools-linux-4333796.zip
mkdir android-sdk
mv tools android-sdk/tools
echo '
# ANDROID
export ANDROID_HOME=$HOME/android-sdk
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
' >> ~/.profile
source ~/.profile
unset JAVA_OPTS
sdkmanager --licenses
sdkmanager "platform-tools" "platforms;android-28"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment