Skip to content

Instantly share code, notes, and snippets.

@chriswoodle
Created February 11, 2019 19:22
Show Gist options
  • Save chriswoodle/ca99677f9918ae36d58c92c7f8dbed8a to your computer and use it in GitHub Desktop.
Save chriswoodle/ca99677f9918ae36d58c92c7f8dbed8a to your computer and use it in GitHub Desktop.
Dragonboard setup.sh
#!/bin/bash
sudo apt update -y
sudo apt upgrade -y
sudo apt remove nodejs -y
sudo apt autoremove -y
sudo apt install gedit nano -y
# install NodeJs
cd ~
wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-arm64.tar.gz
tar -xvf node-v8.9.4-linux-arm64.tar.gz
cd node-v8.9.4-linux-arm64
sudo cp -R * /usr/local/
node -v
npm -v
cd ~
rm -rf node-v8.9.4-linux-arm64*
# Setup npm global install directory
mkdir ~/.npm-global
echo "export PATH=~/.npm-global/bin:\$PATH" >> ~/.bashrc
npm config set prefix '~/.npm-global'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment