Setting up the Raspberry Pi
First, you will need to download the image of Butterfly Pi for RPI to start. Once this step is done
plug in your Micro SD into your Raspberry Pi and start the camera interface to it. However, make
sure that the power adapter is still not connected. Now we will be plugging keyboard and mouse
as an input device for the RPi, connect the power adapter and turn it on. In the terminal screen,
edit startup.sh file in the RPi as given here:
$ sudo nano/home/pi/scripts/startup.sh
It’s time to change the following line:
java-jar/home/pi/butterflypi.jar
[DeviceName] [Security Code] &
Here you will need to enter your device name and security code as you desire. Press CTRL+o
to save the code and then CTRL+X to quit the program.
Pressing ALT+CTRL+F2 will get you to the command prompt. You will need to enter Pi as
login user name and butterfly as the password to access the console.
Now it’s time to set up your Wi-Fi network from the Menu. Go to Preferences> Wi-Fi
configuration. You will be required to enter your Wi-Fi SSID and password, once done click ok.
Lastly, check your internet connection and reboot your system. After restarting your Butterfly
TV, it will become online.
How to Watch the Live Video?
To watch a live video stream from your installed Raspberry Pi, open the app on your smartphone
and simply click play. Note: if the Butterfly TV is still showing o, find startup.sh file in path/
home/pi/scripts and open it to verify the name of the device and its security code. The security
code words like a password to access your camera. Once you open the live stream, the stream
will be automatically saved into your mobile. Finally, you have a cheap and reliable mobile
app-controlled smart security camera.
PROJECT 5: RUNNING WINDOWS 10 ON RASPBERRY PI 2
Introduction and objectives
Microsoft’s Windows is undoubtedly one of the most popular desktop operating systems in the
world. For over two decades it has been the primary choice for the mainstream computer market.
In this project, we will be installing windows 10 for Raspberry Pi 2. Thankfully, Microsoft has
made a completely free version of Windows 10 for the RPi 2. With the right approaches, this
project can be completed in less than one hour.
Requirements for the Project
Raspberry Pi 2,
A MicroSD card with SD adapter (minimum 8 GB), and
A Windows computer with an internet connection.
There’s one thing you should remember that the Raspberry Pi 2 will be running a special version
of Windows 10. This version of Windows 10 is a developer version and mainly designed for IoT
developers. Thus, few of you won’t be able to run a few apps that run on the full version.
358 Internet of Things
Internet_of_Things_CH14_pp349-372.indd 358 9/3/2019 10:17:36 AM

Get Internet of Things now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.