Execute the following commands to install Node, npm, git, Java, Ionic, Cordova and Angular CLI:
cd ~
sudo apt update
sudo apt upgrade
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install --lts
nvm use --lts
sudo apt install git
git config --global user.email "you@yourmail.com"
git config --global user.name "Your Name"
git config --global core.autocrlf input
sudo add-apt-repository ppa:maarten-fonville/android-studio
sudo apt-get update
sudo apt install openjdk-11-jdk
To download the Android SDK tools in your home folder execute the following commands:
mkdir -p $HOME/Downloads && cd "$_"
wget https://r2---sn-npoe7nss.gvt1.com/edgedl/android/studio/ide-zips/2021.3.1.16/android-studio-2021.3.1.16-linux.tar.gz
mkdir -p $HOME/Applications && cd "$_"
tar xfv $(ls -1t $HOME/Downloads/android-studio-* | head -n1)
Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads
Add the following to your .profile (or .zshenv if you use zsh):
# Add Android SKD to PATH
export ANDROID_HOME=$HOME/android-sdk
PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"
export PATH
Execute the following commands to install some basic Android SDK components.
Note that you can install any component listed with sdkmanager --list by running sdkmanager "packagename".
Always run sdkmanager --licenses to accept all the licenses after installing something.
sdkmanager --update
sdkmanager --list
sdkmanager "build-tools;26.0.2" "platform-tools" "platforms;android-26" "tools"
sdkmanager --licenses
Install gradle with the following command:
sudo apt install gradleWe can default to Windows's adb.exe (which can read USB) instead of the Linux one.
Create a ~/.aliases file with the following content:
alias adb='adb.exe'
If you use ZSH, add the following to your .zshrc
source $HOME/.aliases
If you use bash, add the following to your .bashrc
if [ -f ~/.aliases ]; then
. ~/.aliases
fi