Skip to content

Instantly share code, notes, and snippets.

@DanTup
Last active March 30, 2016 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanTup/bcdf20cb300e40c628e8 to your computer and use it in GitHub Desktop.
Save DanTup/bcdf20cb300e40c628e8 to your computer and use it in GitHub Desktop.
PI_REPO="https://DanTup@github.com/DanTup/Pi.git"
# Danny's Pi Setup script
#
# This script is intended to be run from a newly set up Raspbian install. It just clones my
# (private) Pi repo which contains further scripts and executes them. It will prompt for a
# GitHub access key during the clone because the repo is private.
#
# Run with:
# bash <(curl -sSL https://gist.github.com/DanTup/bcdf20cb300e40c628e8/raw/Setup)
mkdir -p ~/Documents
pushd ~/Documents
if [ -d Repo ]; then
popd
echo
echo "Repo already exists! Have you done this before?"
exit 1
fi
sudo apt-get update -y && sudo apt-get dist-upgrade -y
sudo apt-get install git -y
echo
echo "Cloning $PI_REPO..."
git clone --recursive $PI_REPO Repo
echo
echo "Executing setup script..."
Repo/Scripts/CleanSetup
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment