↑ Return to Raspberry Pi

General Setup

Expand the file system, enable SSH, change the username and password

sudo raspi-config

Upgrade the OS

sudo apt-get update

Install tmux

instructions here

START tmux

Upgrade the OS

sudo apt-get dist-update

Upgrade any installed binaries

sudo apt-get upgrade

Cleanup after the upgrade

sudo apt-get auto remove
sudo apt-get clean

Download and install dot files

git clone https://github.com/laughingMan/dotfiles.git

Install vim

sudo apt-get install vim

Install fail2ban

instructions here

Setup logrotate

instructions here

Setup MOTD

instructions here

Update hosts file

sudo vim /etc/hosts

Set a static IP address

instructions here

Setup WIFI

instructions here

Setup SSH keys

instructions here

Setup hostname

instructions here
sudo echo 'computer_name' >/etc/hostname

Install PiHole

instructions here

Install tmux

Install the dependencies sudo apt-get install libevent-dev libncurses5-dev Download the latest version of the source code here wget “https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz” Unpack the download tar xvfz tmux-2.3.tar.gz Move to that directory and compile the source code cd tmux-2.3/ ./configure && make Install the compiled code sudo make install Create a configuration file for later configuration and use …

View page »

Setup SSH

Generate a new SSH key ssh-keygen -t rsa -b 4096 -C “sprinklers_pi” Update your computer to use the new one eval “$(ssh-agent -s)” ssh-add ~/.ssh/id_rsa View your new public key cat /home/pi/.ssh/id_rsa.pub Add it to authorized key file of other computers to allow this computer password-less SSH access vim ~/.ssh/authorized_keys

View page »

Setup Static IP Address

Find and edit the interfaces file sudo vim /etc/network/interfaces Find the block of code that look like this and replace it with the IP addresses that fit your network. face eth0 inet static netmask 255.255.255.0 gateway 192.168.0.1 address 192.168.0.107

View page »