Last active
December 31, 2015 08:08
-
-
Save narusemotoki/7958192 to your computer and use it in GitHub Desktop.
自分用のRaspberry Piのセットアップ用シェルスクリプト wget https://gist.github.com/narusemotoki/7958192/raw/4d609fc04d29ce48d1554f6aab977a644688e941/setuppi.sh; bash setuppi.sh
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 | |
# sudo dd if=~/Downloads/2013-09-25-wheezy-raspbian.img of=/dev/sdb | |
# sudo raspi-config | |
echo -n "What's this ip address?: " | |
read IP_ADDRESS | |
sudo apt-get update | |
sudo apt-get install -y libsqlite3-dev libssl-dev python-pip emacs | |
sudo pip install virtualenv virtualenvwrapper | |
curl -kL https://raw.github.com/saghul/pythonz/master/pythonz-install | bash | |
echo '[[ -s $HOME/.pythonz/etc/bashrc ]] && source $HOME/.pythonz/etc/bashrc' >> .bashrc | |
sudo apt-get dist-upgrade -y | |
NETWORK_INTERFACES="auto lo | |
iface lo inet loopback | |
iface eth0 inet static | |
address $IP_ADDRESS | |
netmask 255.255.255.0 | |
gateway 192.168.11.1 | |
allow-hotplug wlan0 | |
iface wlan0 inet manual | |
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf | |
iface default inet dhcp" | |
echo "$NETWORK_INTERFACES" | sudo tee /etc/network/interfaces | |
# This comnand not need now because Pi reboot soon. | |
# sudo /etc/init.d/networking reload | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment