Sibeesh Passion

Top Menu

  • Home
  • Search
  • About
  • Privacy Policy

Main Menu

  • Articles
    • Azure
    • .NET
    • IoT
    • JavaScript
    • Career Advice
    • Interview
    • Angular
    • Node JS
    • JQuery
    • Knockout JS
    • Jasmine Framework
    • SQL
    • MongoDB
    • MySQL
    • WordPress
  • Contributions
    • Medium
    • GitHub
    • Stack Overflow
    • Unsplash
    • ASP.NET Forum
    • C# Corner
    • Code Project
    • DZone
    • MSDN
  • Social Media
    • LinkedIn
    • Facebook
    • Instagram
    • Twitter
  • YouTube
    • Sibeesh Venu
    • Sibeesh Passion
  • Awards
  • Home
  • Search
  • About
  • Privacy Policy

logo

Sibeesh Passion

  • Articles
    • Azure
    • .NET
    • IoT
    • JavaScript
    • Career Advice
    • Interview
    • Angular
    • Node JS
    • JQuery
    • Knockout JS
    • Jasmine Framework
    • SQL
    • MongoDB
    • MySQL
    • WordPress
  • Contributions
    • Medium
    • GitHub
    • Stack Overflow
    • Unsplash
    • ASP.NET Forum
    • C# Corner
    • Code Project
    • DZone
    • MSDN
  • Social Media
    • LinkedIn
    • Facebook
    • Instagram
    • Twitter
  • YouTube
    • Sibeesh Venu
    • Sibeesh Passion
  • Awards
  • Linux Azure Function Isolated Dot Net 9 YAML Template Deployment

  • Build, Deploy, Configure CI &CD Your Static Website in 5 mins

  • Post Messages to Microsoft Teams Using Python

  • Get Azure Blob Storage Blob Metadata Using PowerShell

  • Deploy .net 6 App to Azure from Azure DevOps using Pipelines

IoTRaspberry PI
Home›IoT›Setting Up Your First Raspberry PI

Setting Up Your First Raspberry PI

By SibeeshVenu
November 15, 2018
2646
0
Share:
Login raspberry pi

[toc]

Introduction

Wow!. You have a Raspberry PI in your hand. You can consider this as a small computer. When you have something which computes things, you can call it a computer right? Have you ever imagined a computer without maths? A Raspberry PI can do many things in real life, the performance will be less when you are comparing your super laptop/computer with a Raspberry PI, but is not meant be compared with that. There are many cases, where a Raspberry PI can do the things you want perfectly, in this post we are not going to cover those, instead, we will be going through how we can set up your Raspberry PI. Let’s just start then.

Background

I wanted to connect a Bluetooth iBeacon to a Raspberry PI and as an initial step, I had to configure the Raspberry PI. So I just thought to write this article while I am doing the configuration. I hope you will find it useful.

Prerequisites

  1. Raspberry PI
  2. SD card
  3. Internet connection
  4. Ethernet, if your Raspberry PI supports wifi, you can skip this.

Setting up the Raspberry PI

Before you continue this step, please make sure that you have all the mentioned prerequisites.

Formatting an SD card

I am a person who likes to start everything from scratch, so as a first step, we are going to format our SD card. You can either use the normal Format option your Operating System offers. I always use the tool called SD Card Formatter. You can easily download the tool from the Internet. Once you have it installed, open the tool, and select the SD card to be formatted.

SD Card Formatter

SD Card Formatter

Installing Raspbian Operating System

The Raspbian is the official operating system of the Raspberry PI and you can easily download and mount to your SD card. There is two version of Raspbian you can potentially install, one is the full version and the other is the Lite version. I will install the Lite version now as it requires only a less amount of space when it is compared to the full version. But remember, if you are using the Lite version, you may have to handle the SSH by your own, but it is not as tough as you think.

You will get a zipped folder once you download the Raspbian and you should extract the same. Once you do that, you can see the image of Raspbian. Now it is time to write this image to your SD card. To do so, we will have to install an application called Etcher. Etcher is a graphical SD card writing tool, with Etcher you don’t even need to unzip the file to flash it to your SD card. It supports Mac OS, Windows, and Linux.

Once you have downloaded the Etcher, open the tool and select the image you want to flash and click Flash. Booom!. Isn’t that simple?

Flashing Content to SD Card

Flashing Content to SD Card

Once the flashing is done, you should be able to see the Raspian OS content on your SD card.

Falshed Raspbian

Falshed Raspbian

Configure SSH

The SSH (Secure Socket Shell) or Secure Shell, is a protocol which gives us the provision to connect to a computer in a secure way over an unsecured network. In our case, we need to connect to our Raspberry PI, which is connected to our LAN or WLAN network, from our Laptop/computer. To enable the SSH, you need to create a file called ssh without extension. There are many ways you can do that, but I usually will just go to the drive or folder I need to create the file and perform the below command.

C:\Users\SibeeshVenu>d:

D:\>echo > ssh

Connect Raspberry PI to the Network

Once the SSH is enabled, we can eject the SD card from our computer and place it in our Raspberry PI and then you need to connect your Raspberry PI to your local network. I am going to connect the same by using a LAN cable. Once it is done you can power on your Raspberry PI, just plug your adapter and plug the other end to the Raspberry PI. Please be noted that there is no On/Off buttons in the Raspberry PI. Please make sure that the lights are blinking once you have connected the power source.

Connect Your Raspberry PI from Your Computer

As we have connected our Raspberry PI to our network already, we can just use any SSH client and connect to it easily. But remember, we need either the Host name or the IP address of our Raspberry PI to connect to the same. To connect, I am going to use a tool called PuTTy. The PuTTy is an open source SSH and Telnet client. You can download that from the PuTTy website.

PuTTy Configuration

PuTTy Configuration

Now we need to find out the IP address of our Raspberry PI, to find the same I am using a tool called Nmap. The Nmap or Network Mapper is an open source utility for network discovery and many other things, if you want to know what are all the things you can do with Nmap, I recommend you to read it here.

You can also find the IP address of your Raspberry PI by login to your router gateway. To do so, you should have the credentials with you.  For now, let’s stick with Nmap. Open the command prompt once you have installed the Nmap, and type ipconfig, which result in all of your configuration of IP. To find the IP addresses of all the resources, you need to use the preceding command.

nmap -sP 192.168.2.0/24

This will give you an output as similar as below.

Starting Nmap 7.70 ( https://nmap.org ) at 2018-11-15 15:32 W. Europe Standard Time
Nmap scan report for 192.168.2.63
Host is up (0.0020s latency).
MAC Address: B8:27:EB:00:B3:60 (Raspberry Pi Foundation)

Here 192.168.2.63 is your Raspberry PI IP address, now you can go ahead and connect to the same by opening the PuTTy tool again. Please make sure that you have selected the option SSH and the port number is 22, for other option the port numbers are different. Once you are done entering the details, just click on the button Open.

You will also get a security warning as you are trying to connect to a different computer, as we are sure about the IP address of the computer (Raspberry PI) we are going to connect to, and moreover, we are the owners of the same, we don’t need to worry about it. Just click Yes. Now it will ask you to login to your Raspberry PI, where you need to give the username as pi and password as raspberry.

Now you will see a message as below saying that you had successfully logged in to your Raspberry PI. You will also get a warning to change the password of the user pi.

Login to raspberry pi

Login to the raspberry pi

You can either do that by using the command passwd or by using the raspi-config command. The rasp-config command will give you an option to set some other additional configurations too.

Confguring raspberry pi

Configuring raspberry pi

Conclusion

Wow!. Congratulations. Now you have a small, lightweight, functioning computer in your hand, which is nothing but Raspberry PI. To summarize the things we have done in this article.

  1. Format the SD card
  2. Flash the Raspbian OS to SD Card
  3. Add SSH
  4. Find the IP address of Raspberry PI
  5. Connect to the Raspberry PI over SSH
  6. Login to Raspberry PI
  7. Change the Raspberry PI configuration

Your turn. What do you think?

Thanks a lot for reading. In the next article, we will install Node JS in our Raspberry PI and connect an iBeacon to it over Bluetooth. Did I miss anything that you may think which is needed in this article? Could you find this post as useful? Kindly do not forget to share me your feedback.

Kindest Regards
Sibeesh Venu

 

TagsConnect to Raspberry PIFind Raspberry PI IPIoTRaspberry PIRaspberry PI and iBeaconRaspbianSSH
Previous Article

Having a Docker Container as Your Private ...

Next Article

Setting Up Your Raspberry PI with Microsoft ...

0
Shares
  • 0
  • +
  • 0
  • 0
  • 0

SibeeshVenu

I am Sibeesh Venu, an engineer by profession and writer by passion. Microsoft MVP, Author, Speaker, Content Creator, Youtuber, Programmer.

Related articles More from author

  • Raspbian OS Files in Virtual Box
    LinuxRaspberry PI

    Accessing Raspbian OS Files in Windows 10

    November 27, 2018
    By SibeeshVenu
  • Raspberry Configuration
    IoTRaspberry PI

    Setting Up Your Raspberry PI with Microsoft Windows 10 IoT Core

    November 19, 2018
    By SibeeshVenu
  • Azure IoT Dev Kit
    AzureIoT

    Azure Function as Output Job Topology of an Azure Stream Analytics Job

    December 19, 2018
    By SibeeshVenu
  • AzureIoT

    Azure Stream Analytics Job and Tools for Visual Studio

    December 13, 2018
    By SibeeshVenu
  • Send Temperature, Humidity, Pressure from MXChip Output
    ArduinoAzureIoT

    MXChip Device with Pressure, Humidity, Temperature Info using Azure IoT Workbench

    January 4, 2019
    By SibeeshVenu
  • Serverless Realtime MXChip Data Angular
    AzureIoT

    Realtime IoT Data using Azure SignalR and Functions in Angular

    December 31, 2018
    By SibeeshVenu
0

My book

Asp Net Core and Azure with Raspberry Pi Sibeesh Venu

YouTube

MICROSOFT MVP (2016-2022)

profile for Sibeesh Venu - Microsoft MVP

Recent Posts

  • Linux Azure Function Isolated Dot Net 9 YAML Template Deployment
  • Build, Deploy, Configure CI &CD Your Static Website in 5 mins
  • Easily move data from one COSMOS DB to another
  • .NET 8 New and Efficient Way to Check IP is in Given IP Range
  • Async Client IP safelist for Dot NET
  • Post Messages to Microsoft Teams Using Python
  • Get Azure Blob Storage Blob Metadata Using PowerShell
  • Deploy .net 6 App to Azure from Azure DevOps using Pipelines
  • Integrate Azure App Insights in 1 Minute to .Net6 Application
  • Azure DevOps Service Connection with Multiple Azure Resource Group

Tags

Achievements (35) Angular (14) Angular 5 (7) Angular JS (15) article (10) Article Of The Day (13) Asp.Net (14) Azure (65) Azure DevOps (10) Azure Function (10) Azure IoT (7) C# (17) c-sharp corner (13) Career Advice (11) chart (11) CSharp (7) CSS (7) CSS3 (6) HighChart (10) How To (9) HTML5 (10) HTML5 Chart (11) Interview (6) IoT (11) Javascript (10) JQuery (82) jquery functions (9) JQWidgets (15) JQX Grid (17) Json (7) Microsoft (8) MVC (20) MVP (9) MXChip (7) News (18) Office 365 (7) Products (10) SQL (20) SQL Server (15) Visual Studio (10) Visual Studio 2017 (7) VS2017 (7) Web API (12) Windows 10 (7) Wordpress (9)
  • .NET
  • Achievements
  • ADO.NET
  • Android
  • Angular
  • Arduino
  • Article Of The Day
  • ASP.NET
  • Asp.Net Core
  • Automobile
  • Awards
  • Azure
  • Azure CDN
  • azure devops
  • Blockchain
  • Blog
  • Browser
  • C-Sharp Corner
  • C#
  • Career Advice
  • Code Snippets
  • CodeProject
  • Cognitive Services
  • Cosmos DB
  • CSS
  • CSS3
  • Data Factory
  • Database
  • Docker
  • Drawings
  • Drill Down Chart
  • English
  • Excel Programming
  • Exporting
  • Facebook
  • Fun
  • Gadgets
  • GitHub
  • GoPro
  • High Map
  • HighChart
  • How to
  • HTML
  • HTML5
  • Ignite UI
  • IIS
  • Interview
  • IoT
  • JavaScript
  • JQuery
  • jQuery UI
  • JQWidgets
  • JQX Grid
  • Json
  • Knockout JS
  • Linux
  • Machine Learning
  • Malayalam
  • Malayalam Poems
  • MDX Query
  • Microsoft
  • Microsoft ADOMD
  • Microsoft MVP
  • Microsoft Office
  • Microsoft Technologies
  • Microsoft Windows
  • Microsoft Windows Server
  • Mobile
  • MongoDB
  • Monthly Winners
  • MVC
  • MVC Grid
  • MySQL
  • News
  • Node JS
  • npm
  • Number Conversions
  • October 2015
  • Office 365
  • Office Development
  • One Plus
  • Outlook
  • Page
  • PHP
  • Poems
  • PowerShell
  • Products
  • Q&A
  • Raspberry PI
  • React
  • SEO
  • SharePoint
  • Skype
  • Social Media
  • Software
  • Spire.Doc
  • Spire.PDF
  • Spire.XLS
  • SQL
  • SQL Server
  • SSAS
  • SSMS
  • Storage In HTML5
  • Stories
  • Third Party Software Apps
  • Tips
  • Tools
  • Translator Text
  • Uncategorized
  • Unit Testing
  • UWP
  • VB.Net
  • Videos
  • Virtual Machine
  • Visual Studio
  • Visual Studio 2017
  • Wamp Server
  • Web API
  • Web Platform Installer
  • Webinars
  • WebMatrix
  • Windows 10
  • Windows 7
  • Windows 8.1
  • Wordpress
  • Writing

ABOUT ME

I am Sibeesh Venu, an engineer by profession and writer by passion. Microsoft MVP, Author, Speaker, Content Creator, Youtuber, Programmer. If you would like to know more about me, you can read my story here.

Contact Me

  • info@sibeeshpassion.com

Pages

  • About
  • Search
  • Privacy Policy
  • About
  • Search
  • Privacy Policy
© Copyright Sibeesh Passion 2014-2025. All Rights Reserved.
Go to mobile version