Skip to content

Instantly share code, notes, and snippets.

@montyanderson
Last active August 29, 2015 14:17
Show Gist options
  • Save montyanderson/fe93d3646a8d36e640bf to your computer and use it in GitHub Desktop.
Save montyanderson/fe93d3646a8d36e640bf to your computer and use it in GitHub Desktop.
A bash script I run, whenever I reinstall the OS on my Raspberry Pi!
# To run, enter the following:
# curl -sL https://gist.githubusercontent.com/montyanderson/fe93d3646a8d36e640bf/raw/rpi-setup.sh | sudo bash -
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y apache2 php5 php5-curl libapache2-mod-php5 git screen nodejs npm
sudo chown -hR www-data /var/www
sudo chmod -R 777 /var/www
echo "Please enter a new password for user 'pi'"
sudo passwd pi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment