mhurd / Raspberry-Pi-2-Setup

Basic set of instructions on how I set up my Raspberry Pi 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debian Jessie on Raspberry Pi2

Get it from here

as root (basic setup on wired connection)

passwd root
adduser your-non-root-user
sudo vim /etc/hostname
adduser your-non-root-user
dpkg-reconfigure locales
apt-get install aptitude
aptitude update
aptitude safe-upgrade
aptitude install sudo
aptitude install vim
aptitude install locate

as your-non-root-user

ssh-keygen -t rsa -C "your_email@example.com"
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa

as root (zsh / tmux setup)

Specific to my setup and uses a private repo you may want to skip this...

aptitude install zsh
aptitude install tmux
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

The .dotfiles directory is specific to my setup and holds various config files that can be symlinked to from the home directory for zsh, tmux etc.

git clone https://github.com/mhurd/.dotfiles.git
cd .dotfiles
git clone http://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/rupa/z.git
cd ~
ln -s ~/.dotfiles/.vimrc ~/.vimrc
ln -s ~/.dotfiles/.zshrc ~/.zshrc
ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf
ln -s ~/.dotfiles/pi/variables ~/.dotfiles/variables

Set /usr/bin/zsh as the default shell:

chsh

remove all references to rvm_ruby from the configured theme as we don't have the required ruby install:

vim ~/.oh-my-zsh/themes/fino-time.zsh-theme

as root (wireless setup)

Assumes Edimax 150Mbps Wireless IEEE802.11b/g/n nano USB Adapter EW-7811Un

aptitude install iw
aptitude install wireless-tools
aptitude install wpasupplicant
vim /etc/wpa_supplicant/wpa_supplicant.conf

Enter this configuration into the wpa_supplicant.conf file:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
key_mgmt=NONE
}

network={
ssid="your-ssid-here"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="your-key-here"
}
vim /etc/network/interfaces

Enter this configuration into the interfaces file:

source-directory /etc/network/interfaces.d
auto lo
 
iface lo inet loopback

iface eth0 inet dhcp
 
allow-hotplug wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -> B -P /var/run/wpa_supplicant.wlan0.pid
post-down killall -q wpa_supplicant
vim /etc/modprobe.d/8192cu.conf

Disable the power saving mode by adding this configuration to the 8192cu.conf file:

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 rtw_ips_mode=1

About

Basic set of instructions on how I set up my Raspberry Pi 2