Raspberry Pi Setup Tutorial | IoT 101 [2 of 9]


>>Welcome back to The
IoT with.NET Core series. In this video we’re going to learn
how to set up a Raspberry Pi, so it’s ready to run.NET apps. Here I am on the Raspberry Pi’s
official documentation page. As you can see on my
screen right now, we run the official Raspberry
Pi documentation page. We will be following the
setting up guide provided by Raspberry Pi to get the Raspbian
OS on our Raspberry Pi. So as you follow through these steps, it will make you set up
an SD card and connect some peripherals for the
initial setup of Raspbian. I already have an SD
card that is ready for installation purposes
and I have already made the connections that
we need to get started. So let me move over
to my Raspberry Pi, slip in the SD card, and kick-off an installation. I’m going to insert my SD card, then grab my micro USB
power source, plug it in. As you can see on our
display right now, the initial loading
screen has come up. So this is the main install screen, we will select Raspbian as our
Operating System and hit “Install”. This just means it’s going to format and overwrite anything already on the SD card which is totally fine because we’re doing a
fresh setup right now. So as you can see, the installation process
has now started. This usually takes about 10-15
minutes to completely go through the complete
installation process and boot up your Raspbian OS. I already have a Raspberry Pi that
is competed this install step. So I’m going to switch
over the that and continue with the rest
of the setup video. So the installation of
Raspbian is compete, I’m going to hit ”Okay”, and then this is going to
reboot the Raspberry Pi and open up the desktop for Raspbian. So I’m going to give it a couple
of seconds because this is the first launch, awesome. So we’re on the Raspberry
Pi desktop right now. We’re going to do a little bit of configuration
before we can start using it. So I’m going to walk
through this wizard, so we’re going to hit ”Next”, then we set up our country, language, pick the time zone. I’m going to pick Los
Angeles, I hit ”Next”. So it’s recommended that you overwrite the default password
with something of your own. So I’m going to set
that up right now. This is important because we
will use this password later on, when we SSH or we have to copy files via SCP onto the Raspberry Pi, and then the display
looks fine to me. So I’m going to hit ”Next”, and we’re going to skip setting up a Wi-Fi network
right now because, I currently have an Ethernet cable already connected to the
Raspberry Pi, but if you want, you can actually even set
it up to work with Wi-Fi, and we’re going to see if
there are any updates. So the setup is complete, let’s quickly restart
the Raspberry Pi before we move on to the
rest of the configuration. So now that our Raspberry
Pi has rebooted, let’s go in and do a couple
more configurations. So we’re going to go into interface. We are going to enable SSH
which will allow us to SSH and transfer files from our
laptop to the Raspberry Pi. I’m also going to enable the I2C. So this will be useful
in our final tutorial when we will learn how to control a temperature sensor
from the I2C board. So these are the only two things you need to enable in this right now. So we’re going to hit “Okay”, and then let’s go in and learn
how to SSH into a Raspberry Pi. So the easiest way to do this is
to open terminal, expand this. The easiest way to do
this is to open up terminal and then type ifconfig, and then this prints out a
bunch of different values. Depending on the connection
type you are on, you can look at the INET address. Currently, I am connected
to the Ethernet port, so my address is
10.121.121.36 over here. If you were connected using Wi-Fi, you would use the INET address
which would appear under WLAN0. So depending on what
your connection type is you can look at INET address. This is what we will use to
SSH into our Raspberry Pi. So let’s do that now. I’m going to move back to my
laptop when we open up terminal. So let’s SSH into the Raspberry Pi. So SSH Pi and I’m going to use the address 121.121.36,
and then say yes. Then this would be the same
password that we set up in the Configuration
Wizard, and that’s it. Looks like I successfully
connected to the Raspberry Pi, which is great. One last step we will do
in this configuration that and make it easy to follow
along with the tutorials is, we will now install Docker
onto the Raspberry Pi. To do that, I’m going to use this script that will install
Docker on the Raspberry Pi, since I’m already SSH into it, I don’t need to type the script in the terminal of the Raspberry Pi, I can just do it right here. So this will install
Docker on a Raspberry Pi. Once the installation is complete, that completes the configuration of the Raspberry Pi and it is
now ready to run our samples. So in this video, we learned how to set up and
configure our Raspberry Pi. So it is ready to be used
for our.NET samples. Join us in our next video
as we will learn about what exactly is IoT and get more
understanding on the subject.

Leave a Reply

Your email address will not be published. Required fields are marked *