Skip to content

Instantly share code, notes, and snippets.

@DanTup DanTup/Setup

Last active Mar 30, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.