Created
February 8, 2016 15:39
-
-
Save fabriziogiordano/8745587d9819d140fd9b to your computer and use it in GitHub Desktop.
fresh raspberry install
This file contains hidden or 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
| diskutil list | |
| diskutil unmountDisk /dev/disk2 | |
| sudo dd bs=1m if=2015-11-21-raspbian-jessie.img of=/dev/rdisk2 (ctrl+t for progress) | |
| sudo diskutil eject /dev/rdisk2 | |
| RaspBerry | |
| pi raspberry | |
| sudo raspi-config (extend memory) | |
| sudo rpi-update | |
| sudo locale-gen en_US.UTF-8 | |
| sudo dpkg-reconfigure locales | |
| sudo apt-get install tmux | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| SSH | |
| #PI | |
| cd ~ | |
| install -d -m 700 ~/.ssh | |
| #MAC | |
| cat ~/.ssh/id_rsa.pub | ssh <USERNAME>@<IP-ADDRESS> 'cat >> .ssh/authorized_keys' | |
| apt-get install fail2ban | |
| cd /etc/fail2ban | |
| cp jail.conf jail.local | |
| vi jail.local | |
| wget https://nodejs.org/dist/latest-v5.x/node-v5.5.0-linux-armv6l.tar.gz | |
| tar -xvf node-v5.5.0-linux-armv6l.tar.gz | |
| cd node-v5.5.0-linux-armv6l | |
| sudo cp -R * /usr/local/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment