Introduction: Prepare Memory Card With HypriotOS for Datarhei/Restreamer on Raspberry Pi1 & Pi2 With Microsoft Windows
Before you could start streaming with the Datarhei/Restreamer you need to prepare a memory card and getting started with Docker on your Raspberry Pi. We recommend to use the HypriotOS Raspberry Pi image with Docker support.
There are other ways. But this should be the easiest way for people using Raspberry Pi and Docker for the first time.
Take a look at the pictures, we made a screenshot of every important step to help if required.
There are two main Steps:
1. Prepare memory card for the Raspberry Pi with the HypriotOS image
2. Install Docker image of Datarhei/Restreamer
This Instructables is inspired by the original HypriotOS guide for Windows.
Thank you for the good work. Follow them on Twitter @hypriottweets
Ok - Let´s rock!
(Sven)
-------
Want to talk to us? Email to open@datarhei.org. You could choose a nickname speak to us in IRC: irc.freenode.net/#datarhei or (Webchat). You could ask a question in our Forum, too. If you're having a problem while developing, see Known Issues. If you want just keep in touch follow us on Twitter: https://twitter.com/datarhei
Step 1: Preparation to Get Started - Software and Hardware
Software
You need a few software tools to rock it. One tool to extract the Hypriot image another one to write it on memory-card and a SSH commandline to connect to your pi. Optinal a tool to identify the IP of your Raspberry Pi in your network.
No need to fear struggeling with these tools. They are all free software, good documented and easy to use. Tons of videos are available on YouTube if you want to dive deeper. I put one for each tool in this tutorial for the interested in you and for those who have however problems using the tools.
It is unnecessary to watch each video to get through the following steps!
7-Zip - http://www.7-zip.de/
7-Zip is an open-source file archiver for extracting the compressed HypriotOS memory card image.
Many different videos around 7-zip could be found on YouTube like this:
Win32 Diskimager http://sourceforge.net/projects/win32diskimager/
To flash the HypriotOS image onto the memory card.
Puttyhttp://www.putty.org/
SSH client for windows to connect to the Raspberry Pi. You dont need to install it - just start and go.
(Optional)
Zenmaphttps://nmap.org/zenmap/
Zenmap is the official Nmap Security Scanner GUI to identify the IP address of your Raspberry Pi in your network. There are many ways to identify the IP of your Raspberry Pi. YouTube and the Internet is full with tutorials... The Zenmap Hint is part of the offical Docker installation guide - so i mentioned it here.
It is a very good and clever method to detect your Raspberry Pi IP a specially if you got no access to your Router/Switch or other LAN devices and you are interested in ip and networks.
Recommended easier move:
If you dont want to download and install another software we recommend to take a look in your Router (like eg. a FritzBox) to find out what IP your pi got by DHCP. You could login in the most Routers and check which devices are connected and which IP each of this devices got.
Hardware
Memory card reader
with USB connector for memory cards (microSDHC or SDHC) minimum 8GB
https://en.wikipedia.org/wiki/Memory_card_reader
Memory card - MicroSDHC or SDHC
for Raspberry Pi2 (microSDHC) or SDHC for Raspberry Pi1.
https://en.wikipedia.org/wiki/Secure_Digital#Micro...
Ethernet Cable
to connect the Raspberry Pi to your local network (Router/Switch), Wireless connection is possible but not part of this tutorial. Please check "Raspberry Pi Wifi" onYouTube.com or DuckDuckGo.com.
Power Supply
Your Raspberry Pi is not ready for action without power!
Raspberry Pi 1 or Raspberry Pi 2, a Windows PC and a working internet connection!
Step 2: Download the HypriotOS Image for Raspberry Pi
Download and save the latest HypriotOS image for Raspberry Pi on your local system: http://blog.hypriot.com/downloads/
It is recommend to download the latest image.
If you want to thank the HypriotOS members what about beeing a new follower on Twitter @hypriottweets as minimum thank you for their awesome work: https://twitter.com/HypriotTweets ?
Feels good to be loved!
Step 3: Extract the Image With 7-zip
- Go to your Download folder to extract the downloaded HypriotOS ZIP file
- Right button click on HypriotOS image file and
- 7-zip
- Extract here
Step 4: Flash the Downloaded Image to Your Memory Card
1. Connect your memory card reader with the memory card in the right slot to your Windows PC.
2. Start WIN32 Disk imager
3. Choose the extracted HypriotOS image
4. Choose your memory card drive if it is not shown in the dropdown menu
5. Click on Write
6. Wait till process is completed
7. REMOVE USB DEVICE (MEMORY-CARD) IN YOUR WINDOWS BEFORE YOU REMOVE THE CARD!
Step 5: Connect to LAN - Put in Memory Card and Switch Power On!
Arm and start your Raspberry Pi:
- Connect your Pi to your ethernet with the networkcable
- Put in the memory card with the prepared HypriotOS image
- Connect the Pi to your power supply to switch it on
Now it is time for the first boot with your fresh installed HypriotOS Raspberry Pi image with Docker working.
After booting your Pi will boot and the three lights start blinking. The first boot may take 2-3 minutes because of file resizing.
Datarhei hint: If you are not sure how to connect your Raspi to ethernet, to the power-supply or how to plugin the memory card take a look at the following YouTube video:
Step 6: Open PuTTY and Connect Via SSH
CLUE: PuTTY don´t need to be installed. You download and start it without any installation. Put it in your favourite program folder on your hard disc, create a quick start icon on your Desktop to start it comfortable in the future without typing the IP everytime you need SSH connection to your Raspi.
- Start PuTTY
- Hostename: IP of your Raspberry Pi
- Login credentials for
- user:root
- password: hypriot
Step 7: Find IP Adress of Raspi in Router (eg. Fritzbox) or With Zenmap
To login via SSH you need the IP adress of your Raspberry Pi.
If you don´t want to download and install another software we recommend to take a look in your router (like eg. a FritzBox) to find out what IP your Pi got. You could login in the most routers and check which devices are connected and which IP each of this devices got. If you don´t know where the connected devices are shown in your special router take look at the manual.
The way is: Log into router - Checkout the IP in your LAN - Open PuTTY - for the next step to login and install Datarhei/Restreamer.
===========
(OPTIONAL STEP)
<-- From here on is a method to detect your Raspberry Pi IP in your Lan with Zenmap copied from Hypriot Blog (pictures and text by HypriotOS)http://blog.hypriot.com/getting-started-with-docke...-->
Ensure everything works
To check if Docker is actually running we need to log into the Raspberry Pi viaPuTTY. To do this we need to find out the IP address of your Raspberry Pi first. This can be done with Zenmap which we installed earlier.
After starting Zenmap look for the field Command. Type the following command into this field but replace the IP address in front of /24 with your own and hit Enter.
# nmap -sP 192.168.0.100/24
As a result you should see this: https://s3.eu-central-1.amazonaws.com/assets.hypri...
Zenmap list all active hosts within your local network. In order to find the Raspberry Pi click the button filter hosts at the bottom of the Zenmap and type in black. Now the first line of the list should show the IP address of your Raspberry Pi. https://s3.eu-central-1.amazonaws.com/assets.hypri...
Since we now know where to find the Raspberry Pi within your network it is time to start PuTTY to establish a SSH connection to your Raspberry Pi.
<-- END of HypriotOS Tutorial http://blog.hypriot.com/getting-started-with-docke...-->
Step 8: Check If Docker Is Running
If everything went fine you should see the command line (picture).
Type and hit Enter:
# docker info
The output of the # docker info command should look like in the picture.
Step 9: Install Datarhei/Restreamer Docker Image
After you logged in your Pi with via SSH with PuTTY. It is time to pull, download and extract the Datarhei/Restreamer. It is just one command to install and start. This may take a while... be patient.
Type for Raspberry Pi 1 (ARMv6l):
# docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=YOUR-USERNAME" -e "RESTREAMER_PASSWORD=YOUR-PASSWORD" -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv6l:latest
Type for Raspberry Pi 2 (ARMv7l):
# docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=YOUR-USERNAME" -e "RESTREAMER_PASSWORD=YOUR-PASSWORD" -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv7l:latest
Changing the default port of UI and default User:Pass of Restreamer:
Change port 8080 to 1337:
# docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=YOUR-USERNAME" -e "RESTREAMER_PASSWORD=YOUR-PASSWORD" -p 1337:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv7l:latest
Change Username to datarhei and password to foobar
# docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=datarhei" -e "RESTREAMER_PASSWORD=foobar" -p 1337:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv7l:latest
Step 10: Open Datarhei/Restreamer in Browser and Start Streaming!
Congratulations - You could now start streaming with the last few steps:
- Browse to http://your-device-ip:8080
- Login with your credentials
- Default login:
- User: admin
- Password: datarhei
- Default login:
- The User interface opens
The installation is finished!
How to add a Livestream could be found in our next Tutorial.https://www.instructables.com/preview/E45UUZFIK1HOR...



