Pi Config

Raspberry Pi’s are awesome, really really good. But they have one fairly serious problem in my experience. After X number of months the Pi’s SD will get corrupted and kapow you have lost everything.

 

In this post then i just record the contents of a couple of files to help me out in case that happens 😉

 

/etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.77
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 8.8.8.8 8.8.4.4
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

 

As for the actual wpa_supplicant.conf well thats below

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid=”NCC1701″
psk=””

# Protocol type can be: RSN (for WP2) and WPA (for WPA1)
proto=RSN

# Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
key_mgmt=WPA-PSK

# Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
pairwise=CCMP

#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)
auth_alg=OPEN
}

 

Once the Pi is up we can get wordpress going again and restore from the backup stored on dropbox in the ‘apps/rocks/BackupofPi/ folder.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *