In the first part Step by Step Building the Raspberry Pi 2 GPS Geocaching Kit - Part I: Put Hardware Together, I recorded how I put the hardware together step by step. In this part, I will show the basic OS configuration and software installation & update.

 

After the first time boot-up completes, the Pi 2 will automatically run raspi-config program (you can always run this program again after first time boot-up by typing command sudo raspi-config). In this configuration interface, you can customize the locale settings, password, enable/disable some peripherals, etc.

IMG_0890.JPG



I think Raspbian has been installed on the MicroSD card came with the kit, so you don't need to expand file system. If you try to do it, it will give you a message like this

IMG_0891.JPG



The default user name is "pi" and password is "raspberry" (without the quote signs). You can change the default password by typing new password twice as shown in the bottom left corner of the second picture below.
IMG_0892.JPGIMG_0893.JPGIMG_0894.JPG


You can choose the OS boot into Desktop or Console interface. I chose Desktop option as shown below.

IMG_0895.JPG


You can customize your locale, timezone and keyboard layout (entering items 4 in the first picture of this blog).

IMG_0897.JPG


I did overclock to Pi 2 option.

IMG_0899.JPGIMG_0900.JPG


I also customized a few advanced options. First, enable SSH

IMG_0901.JPGIMG_0902.JPG


Next, I enabled kernel automatically load SPI module

IMG_0903.JPGIMG_0904.JPG


I also enabled automatically load I2C module

i2c1.JPGi2c2.JPGi2c3.JPGi2c4.JPG


The last OS configuration was disable login shell on serial port

IMG_0905.JPG


After OS configuration, the program will ask for a reboot.

IMG_0906.JPGIMG_0907.JPG


After reboot, the desktop showed up. If you chose boot into console mode, the desktop won't show up. Instead, a login console shows up.

IMG_0908.JPGIMG_0909.JPG


Next, I opened a terminal window and started upgrading the OS by typing the following commands in sequence (some commands may take a long period of time to complete).

sudo apt-get update

sudo apt-get upgrade -y

sudo apt-get dist-upgrade -y

sudo rpi-update

sudo reboot

IMG_0910.JPGIMG_0912.JPGIMG_0917.JPGIMG_0918.JPGIMG_0923.JPG

 

After reboot, I installed python3 and other GPS support software, etc. Then reboot again after the software installation completed.

IMG_0926.JPGIMG_0927.JPG

 

Next, configure gpsd and reboot again.

IMG_0928.JPGIMG_0929.JPGIMG_0930.JPGIMG_0931.JPGIMG_0932.JPGIMG_0933.JPG

IMG_0934.JPG

 

Up to this point, all software installation and update is completed. In part III Step by Step Building the Raspberry Pi 2 GPS Geocaching Kit - Part III: Trouble-shooting and Get It Work, I will show how I test, trouble-shoot and get it work.