How to setup

A raspberry PI

logo-supergreenlab
Author: SuperGreenLab
Credit: Stant

In this tutorial we’ll see how to set up a raspberry PI from scratch.

We’ll be using the raspberry pi for things like setting up a live cam.

This guide will work with any raspberry PI models, but we’ll be using a raspberry PI model zero w.

What you'll need

Selected region:
World
Click to change

Raspberry PI zero W BY Raspberry PI Foundation

From Kubii

All purpose tiny computer, great to do timelapses and remote live cam.

As of now the best all purpose micro computer. You won't use it as a desktop (it has usb and hdmi po

€10.44

*price may vary incl. tax
ADD TO CART

16Go Sandisk SD Card BY Sandisk

From amazon.de

Way enough for running a raspberry pi with a bit of local storage for pics.

16Go sd card, can be used for any purpose, but in our case it can be used for the remote live camera

€5.99

*price may vary incl. tax
ADD TO CART
Show all items - (3 items)

Download the Raspberry PI OS

Done
logo-supergreenlab
Author: SuperGreenLab

Download the Raspberry PI OS

Done

A raspberry PI works just like a normal computer except that its hard drive is a sd card.

Which means the OS installation is a bit different. But also much simpler than installing a “normal” operating system.

Now let’s download the raspberry pi operating system at: https://www.raspberrypi.org/software/operating-systems/

For our purpose the “Raspberry Pi OS Lite” will be enough.
But you can take the “Raspberry Pi OS with desktop” one if you’re new to raspberry pi’s. That will help with troubleshooting.

Download it, but don’t unzip it, it’s not necessary.

Useful links Got a feedback/suggestion? click here

Install the raspberry PI OS

Done
logo-supergreenlab
Author: SuperGreenLab

Install the raspberry PI OS

Done

The purpose of this step is to write the operating system on the sd card.

Good thing is, the guys from balena.io did the perfect tool for us.

Download BalenaEtcher from this link: https://www.balena.io/etcher/

Now start BalenaEtcher, it works in three steps:

  • First select the raspberry pi os zip file you’ve previously downloaded.
  • Insert your SD card in your windows computer sd card reader, no need to format. Select your sd card in balenaEtcher.
  • Press the “Flash!” button.
Useful links Got a feedback/suggestion? click here

Final sd-card setup

Done
logo-supergreenlab
Author: SuperGreenLab

Final sd-card setup

Done

Once the raspberry PI OS is written to the sd-card, this one should show up as a normal usb drive on your computer.

This new drive should be called “Boot”. It’s actually a little part of the raspberry PI OS, you shouldn’t change any of the existing files.
But we’re going to add a few files there.

Got a feedback/suggestion? click here

Enable remote access

Done
logo-supergreenlab
Author: SuperGreenLab

Enable remote access

Done

First thing to do is enable remote access, that will allow us to use the raspberry PI over the network from our computer, instead of having to add a screen and keyboard.

For this, go to the sd-card drive, and create an empty file called “ssh”. On windows this requires a special operation, because windows usually adds a hidden extension to the file, you could end up with a file called “ssh.txt” instead of just “ssh”.

  • Run the notepad app
  • Create a new file, its only content is a white space
  • Choose “Save as”, and make sure to set “Save as type” to “All files”, that will avoid ending up with a hidden extension.
  • Call the file “ssh”, and save it.
Got a feedback/suggestion? click here

Setup wifi configuration

Done
logo-supergreenlab
Author: SuperGreenLab

Setup wifi configuration

Done

Now we’ll obviously want our raspberry PI to be connected to our home wifi network.

Again, we don’t have a graphical interface to select our wifi as we usually do on mobiles or computers.

Setting up the wifi config also implies creating a file in the sd-card drive.

Like in the previous step, open notepad, copy the content below into the new file:

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="NETWORK-NAME"
    psk="NETWORK-PASSWORD"
}

And then save the file as “wpa_supplicant.conf” in the sd-card drive. As in the previous step, make sure to set “Save as type” to “All files”.

Got a feedback/suggestion? click here

Finally booting the raspberry PI

Done
logo-supergreenlab
Author: SuperGreenLab

Finally booting the raspberry PI

Done

Now we’re ready to actually use our newly created hard drive, make sure to eject it from windows before removing it from your sd-card slot.

Place the sd-card inside the raspberry PI card slot, and plug it to its USB power supply.

At that point you should see the green led blinking to indicate that something is happening.

Got a feedback/suggestion? click here

Finding the raspberry PI on the network

Done
logo-supergreenlab
Author: SuperGreenLab

Finding the raspberry PI on the network

Done

Alright, we have a raspberry PI that should have booted completely, this could take up to 2 minutes for the first run.

Now we want to connect to it from our windows machine. Usually that requires knowing the IP address of the device, which is a problem here, we have no keyboard or screen to do anything!

Don’t worry there’s another way to find the raspberry pi without knowing its IP address.
The trick is to find the raspberry pi by its name, most network devices have a name to easily find them, the raspberry pi is no exception here.

If you are using windows and don’t have iTunes already installed, you will certainly need to install this software to enable discovery by name: https://support.apple.com/kb/DL999?locale=en_US

Useful links Got a feedback/suggestion? click here

Connecting to the raspberry PI

Done
logo-supergreenlab
Author: SuperGreenLab

Connecting to the raspberry PI

Done

Note for non windows users: Open a terminal window, and type ssh pi@raspberrypi.local then type the password: raspberrypi. Don't worry if the terminal doesn't write anything as you type your password, it's normal.

The program used to remotely control a raspberry PI is called "ssh", it’s mostly a linux thing at first, but windows can connect to ssh enabled devices too.

To use ssh on windows, you will need a software called "Putty", install and run it.

https://www.putty.org/

At the top of the window there is a Host parameter, set it to raspberrypi.local, make sure the port is 22 and the connection type is set to ssh.
Press connect, and press Yes when some sort of security alert shows up.

It will then ask you for a username, type pi, and then a password, type raspberry.

You should now be connected to your raspberry PI.

Got a feedback/suggestion? click here

Guides to see next

How to setup a raspberry pi

In this tutorial we’ll see how to set up a raspberry PI from scratch.

We’ll be using the raspberry pi for things like setting up a live cam.

This guide will work with any raspberry PI models, but we’ll be using a raspberry PI model zero w.

How to setup a remote live camera

I’m not teaching you anything if I tell you that our plants are like our babies. And just like babies we’d like to keep an eye on them 24/24, even when away from home.
While you shouldn’t overprotect an actual kid, it’s bad for their self confidence, and makes fucked up teenagers; When it comes to plants, having a way to look at it anytime can save you some issues.

The camera we will be setting up is quite simple, it allows you to select the plant you’re monitoring, and will then take a picture every 10 minutes.

Setting up this remote camera will give you two things:

  • You’ll have access to the latest taken pic from the app, at any time, from anywhere.
  • Daily and weekly timelapses posted to your plant diary.

Welcome to

Super Green Lab
SuperGreenLab is a community of stealth growers.
checkout our dedicated grow lights and smart controller and join the community!
Start growing

Subscribe

Stay tuned with our newsletter and get exclusive promotions.
Subscribe
© 2021 SuperGreenLab. All Rights Reserved