Last active
August 29, 2015 14:20
-
-
Save zcshiner/9f9720657b6e70b350f9 to your computer and use it in GitHub Desktop.
minibian-deploy
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
#!/bin/bash | |
### Script to do initial configuration of MINIBIAN Raspberry Pi distribution | |
### https://minibianpi.wordpress.com/ v. 2015-02-18 | |
### inspired by http://www.htpcguides.com/lightweight-raspbian-distro-minibian-initial-setup/ | |
## Initial updates and installs | |
apt-get update | |
apt-get install nano sudo rpi-update raspi-config usbutils dosfstools rng-tools -y | |
## Run raspi config. Set locale, timezone, etc | |
raspi-config | |
## Update and reboot | |
rpi-update | |
reboot | |
apt-get upgrade -y && apt-get dist-upgrade -y | |
apt-get clean | |
## Upgrade to Jessie | |
## via http://linuxconfig.org/raspbian-gnu-linux-upgrade-from-wheezy-to-raspbian-jessie-8 | |
echo 'deb http://mirrordirector.raspbian.org/raspbian jessie main firmware contrib non-free' > /etc/apt/sources.list | |
echo '#deb http://archive.raspberrypi.org/debian jessie main' >> /etc/apt/sources.list | |
# NOTE: Disable SSH password authentication for root? NO | |
apt-get update -y && apt-get upgrade -y && apt-get autoremove -y | |
reboot | |
## some of my preferred packages | |
apt-get install git python screen -y | |
adduser pi | |
usermod -G sudo pi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment