Created
January 28, 2019 15:06
-
-
Save christroutner/9ea5b6b5105e6249ecc6a9a6c8c2d627 to your computer and use it in GitHub Desktop.
Raspberry Pi Initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a bash shell script for running on a Raspberry Pi with a newly | |
# installed Raspbian OS. It prepares the device for use as a web server by | |
# deleting a lot of unused software, updating the OS, and installing Docker. | |
# Purge unneeded software | |
sudo apt-get --purge -y remove libreoffice libreoffice-avmedia-backend-gstreamer \ | |
libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc \ | |
libreoffice-common libreoffice-core libreoffice-draw libreoffice-gtk \ | |
libreoffice-impress libreoffice-java-common libreoffice-math \ | |
libreoffice-report-builder-bin libreoffice-sdbc-hsqldb libreoffice-style-galaxy \ | |
libreoffice-writer bluej wolfram-engine scratch geany geany-common greenfoot \ | |
sonic-pi minecraft-pi chromium-browser | |
sudo apt-get -y autoremove | |
# Install Node.js v10 | |
sudo apt remove --purge -y nodejs | |
sudo apt-get -y update | |
sudo apt-get -y remove nodejs | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
sudo apt-get install -y nodejs build-essential | |
sudo apt-get -y upgrade | |
# Install Docker | |
curl -sSL https://get.docker.com | sh | |
sudo usermod -aG docker pi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment