These instructions were performed on a RaspberryPI 2 with a proper heatsink.
- Follow these instructions to install NOOBS with a Mac.
- Choose "Raspbian" from the selected options when installing.
sudo raspi-config- Choose
1. Expand Filesystem - Choose
3. Enable Boot to Desktop/Scratchand chooseDesktop Log in as user 'pi' at the graphical desktop - Choose
7. Overclockand chooseMedium - Choose
8. Advanced Options - Choose
A1 OverscanandEnableit - Choose
A2 Hostnameand set a hostname
vi ~/.vimrcSet these configurations:
set nocp
set backspace=2
vi ~/.bashprofileAdd this line:
export DISPLAY=:0
And reload:
. ~/.bashprofilesudo -E vi /etc/wpa_supplicant/wpa_supplicant.confMake the file look like this:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="HHC"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
auth_alg=OPEN
eap=PEAP
identity="hhc\YOUR_GID"
password="YOUR_PASSWORD"
phase2="auth=MSCHAPV2"
scan_ssid=1
}
Then reboot
sudo shutdown -r nowsudo apt-get update
sudo apt-get upgradeiceweasel- A Mozilla Firefox port without branding made for the Pignashandlightspark- Adobe Flash alternativesnginx- Our web serverphp5- PHP server
sudo apt-get install iceweasel gnash gnash-common browser-plugin-gnash lightspark browser-plugin-lightspark nginx php5 php5-cli php5-fpmmkdir ~/www
vi ~/www/index.phpAdd the following:
<!doctype html>
<html>
<head>
<title>Server Information</title>
</head>
<body>
<table width="80%" align="center">
<tr>
<td>Server IP</td>
<td><?php echo $_SERVER["SERVER_ADDR"]; ?></td>
</tr>
<tr>
<td>Details</td>
<td><?php echo php_uname(); ?></td>
</tr>
</table>
</body>
</html>sudo -E vi /etc/nginx/sites-enabled/defaultDelete the file contents and add this:
server {
listen 80;
server_name localhost;
root /home/pi/www;
location / {
index index.html index.php;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
iceweaselInstall these addons and restart:
Setup tabs to go through, and modify preferences to open those tabs each time.
ln -s /etc/xdg/lxsession/LXDE-pi/autostart ~/autostart
sudo -E vi ~/autostartMake the file look as follows:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash
# Turn off screen power saving
@xset s off
@xset -dpms
@xset s noblank
# Start Iceweasel by default
@iceweasel