<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chathura Janaranjana Wanniarachchi</title>
    <description>The latest articles on DEV Community by Chathura Janaranjana Wanniarachchi (@chathurajw).</description>
    <link>https://dev.to/chathurajw</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F535327%2F9e05561b-24f0-4e23-aa41-b7c26fae3d16.jpeg</url>
      <title>DEV Community: Chathura Janaranjana Wanniarachchi</title>
      <link>https://dev.to/chathurajw</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chathurajw"/>
    <language>en</language>
    <item>
      <title>Say Hello to Raspberry Pi🍓</title>
      <dc:creator>Chathura Janaranjana Wanniarachchi</dc:creator>
      <pubDate>Tue, 27 Apr 2021 14:03:51 +0000</pubDate>
      <link>https://dev.to/chathurajw/say-hello-to-raspberry-pi-2epa</link>
      <guid>https://dev.to/chathurajw/say-hello-to-raspberry-pi-2epa</guid>
      <description>&lt;h2&gt;
  
  
  What is Raspberry Pi?
&lt;/h2&gt;

&lt;p&gt;Raspberry Pi is an open-source, single-board computing device that was developed by the Raspberry Pi Foundation to educate people about computation. The initial version of raspberry pi was released in 2012. Then after different configurations, they were able to release a lot of versions of the raspberry pi. The latest raspberry pi version is Raspberry Pi 4 Model B, which was released in 2020.&lt;br&gt;
Raspberry pi has a CPU (Central Processing Unit), RAM (Random Access Memory), and GPU (Graphical Processing Unit) in a single chip (System on Chip-SOC) done by ©Broadcom, and the entire system powered using USB power (5V/2.5A). At the same time, some models of the raspberry pi have in-built Wi-Fi, Bluetooth as well. Since this board does not include any display devices, there is/are HDMI and DSI (optional) for connecting external display/s. There can have USB ports, Gigabyte ethernet ports as well. As the main storage of all those raspberry pi's, it uses a micro-SD card (OS and all other data stores there). &lt;/p&gt;

&lt;h2&gt;
  
  
  Setup raspberry pi for work
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Pre-requirements (hardware)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Raspberry Pi device.&lt;/li&gt;
&lt;li&gt;A power supply that capable of providing a 5V 2.5A supply, with a USB cable.&lt;/li&gt;
&lt;li&gt;Micro – SD card with the size of at least 16GB and card reader.&lt;/li&gt;
&lt;li&gt;Keyboard and Mouse (optional).&lt;/li&gt;
&lt;li&gt;Monitor and related cables (optional).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Pre-requirements (software)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Raspberry pi operating system image file.&lt;/li&gt;
&lt;li&gt;Etcher, an image writing tool.&lt;/li&gt;
&lt;li&gt;SD card formatter tool.&lt;/li&gt;
&lt;li&gt;IP scan tool (Angry IP Scanner).&lt;/li&gt;
&lt;li&gt;SSH client (putty) (optional).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Let's get started
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;First, we must format the SD card using the SD card formatter tool. Once you open it after the installation, can select the SD card from the top drop-down menu. Under formatting options, select &lt;em&gt;quick format&lt;/em&gt; and click format. At the end of the process, the tool will pop up format complete message.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PO8dihsf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lppnvw5hll27mcsqtuk4.png" alt="SD card formatter tool"&gt;
&lt;/li&gt;
&lt;li&gt;Now we need to download the raspberry pi official disk image to install on the SD card. For that go to the link below and download the image as your need.
&lt;a href="https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit"&gt;Operating system images – Raspberry Pi&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Now open the Etcher tool to burn the raspberry pi image to the SD card. Once you open the Etcher, you must select both disk image and SD card. Then click the flash button to start burning. It may take several times, based on your SD card writing speed. If validation is also enabled, more time consumes by the tool to complete the operation.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B5D4XHWT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dsrssdusyltf3nrftk98.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;To enable SSH, go to file explorer and select boot disk (this is a partition created after you flash the operating system) from there. Go into it and create a file called ssh without any extension.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zXK98bMf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wezwzmehb4brc2333qy2.png" alt="SSH file"&gt;
&lt;/li&gt;
&lt;li&gt;Now, the initial setup process is complete. Eject the SD card from the computer and insert it into the raspberry pi. Connect all other peripheral devices as you need. Make sure to connect raspberry pi to your home network, to access raspberry pi via SSH.&lt;/li&gt;
&lt;li&gt;If you connect, display to the raspberry pi, you can see the system will boot up and came to the desktop screen. Now you can use the raspberry pi as a desktop computer. But if you are going to access it via terminal, follow the rest of the steps for that.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xM8BCCtK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/67llt7tgk8bzakwwxief.JPG" alt="Login screen"&gt;
&lt;/li&gt;
&lt;li&gt;To access raspberry pi via  SSH, need to know the ip address of raspberry pi. For that you have to connect the PC to the same network raspberry pi is connected to. Then check the PC IP address using the below commands.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ipconfig/all --&amp;gt; in windows operating system 
ifconfig --&amp;gt; in Linux flavored operating system
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open the IP scan tool and add the ip range accordingly. (For example in my case, ip address for the wifi adapter is 192.168.5.3. So I apply the range for the ip scan tool as 192.168.5.0 – 192.168.5.255.) Then click the start button to scan. At the end of the scan, you will be able to find the raspberry pi ip address.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UhigpXcI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mshzo8gppzkzz17ztbb0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UhigpXcI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mshzo8gppzkzz17ztbb0.png" alt="IP scanner"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now with the ip address, you can go for the SSH client and add the ip address for the hostname. Then click the Open button to access the SSH terminal with the default username &lt;code&gt;pi&lt;/code&gt; and default password &lt;code&gt;raspberry&lt;/code&gt;. 
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3hTzfrzs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9hx6refufmuy23upf9we.png" alt="Putty home"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qoQOk9il--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xflz96d86vvfnksq5bl7.png" alt="Putty terminal"&gt;
Alternatively, if you do not have ssh client, go to terminal/ command prompt and type the below command.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh pi@&amp;lt;raspberry pi ip address&amp;gt;
Example: ssh pi@192.168.5.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then press enter, now the terminal/command prompt will ask you the password. Enter it as &lt;code&gt;raspberry&lt;/code&gt;. Now as previously you can access the raspberry pi terminal via SSH.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--apmMdlsy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zyltuxx5v6h6xrrc4zc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--apmMdlsy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zyltuxx5v6h6xrrc4zc.png" alt="Cmd access"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Note:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Important to know is, you are accessing the raspberry pi terminal via SSH with the default username and password. So make sure to change the default password using the &lt;code&gt;passwd&lt;/code&gt; command.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--55fOBMBu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bzalx1sxd5gg2vr9b6dn.png" alt="Command passwd"&gt;
&lt;/li&gt;
&lt;li&gt;Go through all of the steps very carefully and if raspberry pi does not boot properly check your power source.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This blog post discussed how we initially set up raspberry pi for working. If you have a monitor, then there has a way to set up raspberry pi, as well as if you like to access raspberry pi using SSH, that also explained in this blog post.&lt;/p&gt;

</description>
      <category>raspberrypi</category>
    </item>
  </channel>
</rss>
