Raspberrypi : Step-by-Step Initial Setup with Raspbian

Working with Raspberry PI (RPI) is fun. Typically in home environment, you will connect your RPI to your router and then need to control the RPI from your PC using SSH. This article describe how you can easily setup your RPI very easily in few steps.

Raspberry Pi (RPI) unit (I have Model B with 512 RAM)
Monitor and Keyboard connected to RPI
SD card to load the OS

Configuration Steps

1. Download the Raspbian Image (or any other distribution) from following link
    Raspbian Image here
    All the distributions here

2. Use SDFormatter tool to format your SD card with options as shown below.

3. Once you format the SD card, then write out the Raspbian image that you downloaded as shown below
    Following tools can be used
    a. dd (if you are using linux or unix in your PC)
    b. Win32diskImager in windows (please select correct device [F: SD card reader] and lick write)

4. Plug-in your SD card and boot the RPI and it will show you first configuration screen as below

5. You can change following configurations in this screen and you can get this screen any time by using following command.
   sudo raspi-config
    a. Do Expand Filesystem so that you can use full size of the SD card to store other files
    b. Change your password for "pi" user (default password=raspberry)
    c. Change Locale, Keyboard Layout and Time zone in Internationalization Options
        Note: By default RPI uses EN-UK keyboard layout and if you are not in UK, change it to EN-US
    d You can change Host Name, enable SSH in Advanced Options screen
Once you finish the changes better to reboot the RPI and then you will be able to use your new password for "pi" account when it is prompt (Defaults :- username=pi, password=raspberry)

6. Once you login, you need to configure network settings as I have described in following articles
    a. Configure RPI with static IP in Ethernet (article here)
    b. Configure RPI with Wifi (article here)

7. Update your RPI firmware using following command
    sudo rpi-update

8. Update the linux modules using following command
    sudo apt-get update
    sudo apt-get upgrade

9. If you want use your RPI as a media server, you can use miniDLNA module which will allow you to access content in your RPI from your Windows PC or other DLAN/UnPn clients like VLC player. Also this DLNA setup will allow your smart TV to browse and play files from your RPI. Please follow the instructions given in following article in order to install minidlna in RPI.
   a. Install miniDLNA in RPI (article here)

10. Also you can setup your RPI as a file sharing server by configuring samba server. You can follow the instructions given in following article.
   a. Install Samba server in RPI (article here)

11. Once you complete all above steps, you have a working stable version of RPI with you and, it is good idea to have a backup of you SD card as shown below. Sometimes you SD card will get corrupted files and will not work properly. Then you can use these backup images to restore your SD card.
   a. Use dd in Linux/Unix pc
   b. Use Win32DiskImage in windows


Popular posts from this blog

Embedding PowerBI with ASP.NET Core 2 and Angular(2,4,5)

Handling Exit Event of Console Application in C#

Taxi - Cab services in Colombo - Sri Lanka