Skip to content

Instantly share code, notes, and snippets.

@ArnaudD
Last active November 28, 2015 03:18
Show Gist options
  • Save ArnaudD/a047b7ae5a62281e045c to your computer and use it in GitHub Desktop.
Save ArnaudD/a047b7ae5a62281e045c to your computer and use it in GitHub Desktop.
Raspberry Setup 2015
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
# wpa_passphrase "ssid" "password"
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid XXXXXXXXXXXXX
wpa-psk XXXXXXXXXXXXX
# ssh pi@raspberrypi.lan
# Watchdog
apt-get install watchdog
modprobe bcm2708_wdog
echo "bcm2708_wdog" >> /etc/modules
update-rc.d watchdog defaults
# Edit /etc/watchdog.conf
# and uncomment the following:
# - max-load-1
# - watchdog-device
# Fail2ban
apt-get install fail2ban
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
service fail2ban restart
apt-get install \
git git-doc git-gui \
vim \
htop \
zsh \
ack-grep \
curl \
grep \
tmux \
-y
# Default
chsh -s $(which zsh) pi
update-alternatives --set editor /usr/bin/vim.basic
# NodeJS
https://nodejs.org/dist/v4.2.2/node-v4.2.2-linux-armv6l.tar.gz
tar -xvf node-v4.2.2-linux-armv6l.tar.gz
cp -R node-v4.2.2-linux-armv6l/* /usr/local/
rm node-v4.2.2-linux-armv6l -r
# home conf
git clone git@github.com:ArnaudD/MyDotFiles.git --recursive
sh MyDotFiles/install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment