Sunday, 20 October 2013

Pi Setup and Optimise

Task 2: Install Wheezy and Optimise

Now I'm not sure which distro (distribution of Linux) would be best suited for this task but I decided to go with what I knew, Raspian Wheezy. This is a permeation of the Debian OS compliled for the Pi and carries alot of similarities with Ubuntu

I bought a Sandisk Extreme II a while ago from PC World (not ebay, too many fakes out there). Has a fast read/write rate so hoepfully will see a little extra performance.

NOTE: My regular laptop is installed with Linux Mint, another Debian system. So all instructions outside of based on linux.

Install Wheezy from Linux Terminal (taken from here: Link)


cd /home/pi

mkdir RaspbianImage

cd RaspianImage 

wget "http://downloads.raspberrypi.org/raspbian_latest -O raspbian.zip"

unzip raspbian.zip

ls

Note the filename of the .img file.

df

Identify which device the SD is mounted on (e.g. /media/mysdcard) and its filesystem (e.g. /dev/sdc1)


umount /media/mysdcard

sudo mkdosfs -F 32 -v /dev/sdc1

sudo dd bs=1M if="/home/linux/2013-02-09-wheezy-raspbian.img" of=/dev/sdc1
 
Insert your SD card into your Pi and powerup. Assuming your pi is plugged into to ethernet use SSH to access it via a Terminal.

ssh -l pi 192.168.1.xx
 

The default password, required to login, for the raspbian root user (equivalent to the adminstrator in windows for those that are completely new) is "raspberry". 

As I'm not planning to connect to any form of display I changed the memory usage to free up what is available for other operations. I also changed the admin password and made sure that raspbian was making use of all available space on the sdcard. There is a configuration program built into raspbian to do all this (and more). You access as follows:


sudo raspi-config

The one last thing I did was give the pi a static ip address for the ethernet connection in my BT Home Hub. This was not 100% necessary but I did it anyway to save me trouble down the line.

Hopefully all is well and you can move onto the next step, getting 3G going and stay connected to the network from boot.

No comments:

Post a Comment