Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

DIY Home Security System using Raspberry Pi

DIY Home Security System – Software Configuration

In this step we will install the OS (Operating System) on the SD card.

Download latest Raspbian OS from Raspberry Pi Download Page

Install Raspian OS on the SD card following the instruction at  INSTALLING OPERATING SYSTEM IMAGES

After installing the OS on the SD card, you are ready to start your Raspberry Pi.

Connect the Raspberry Pi to the network router using a network cable.

For the next step you have two options: 1. connect the raspberry pi to a monitor and keyboard or 2. connect to raspberry pi using ssh from another computer (in case 2  you don’t need monitor and keyboard)

Scenario 1 – Connect Raspberry Pi using a TV/Monitor and keyboard

Use a HDMI cable to connect the Raspberry Pi to a TV or to a monitor that supports HDMI. Connect the keyboard to one of the USB ports.

Plug the power cable on the Raspberry Pi (the micro usb connector).

Login with user pi, password raspberry

Continue with “Install Wifi configuration tools”

Scenario 2 – Connect to Raspberry Pi using SSH from another computer

If you don’t have a TV or Monitor that supports HDMI, you can connect directly from another computer using SSH.

First step is to detect what IP was assigned to your Raspberry Pi.

Using a browser connect to your Router [e.g. http://192.168.1.1]. After you login with your router credentials, browse the list of connected devices (each router has a different page for this feature). Because your device is currently connected with a network cable, you should look at that section.

You can also consult he detailed documentation how to detect your Raspberry Pi IP

After you have the Raspberry Pi computer IP, from your machine run ssh to connect remotely. [Note: if you are on a Mac or Linux, the ssh is already installed, on Windows you have to manually install ssh, see documentation how to install ssh on windows]

Run the SSH tool [putty.exe for windows or ssh command in a terminal for Mac] and login with username pi, password raspberry.

Install Wifi configuration tools

run the update for the OS:

sudo apt-get update

install a command line tool to configure the WIFI:

sudo apt-get install wicd-curses

run the wifi tool

sudo wicd-curses
Home Security Device - wifi config tool

Home Security Device – wifi config tool

Using arrows keys, select your Wifi Network and press right arrow key to edit its properties. Type your wifi password in the Key section. Also check the “Automatically connect to this network” checkbox. Press F10 to save.

Home Security Device - wifi config

Home Security Device – wifi config

In the first screen (the list of networks) if you connect to the wifi (capital C) then you will be disconnected from the wired connection and the current ssh session. What I suggest is to exit (capital Q) and reboot the Raspberry Pi: “sudo reboot” and disconnect the network cable.

After 2-3 minutes, check again your router to find the new IP of you Raspberry Pi (now a wifi) and connect using SSH to the new ip.

Next Page: DIY Home Security System – Install and configure the door sensors application

You may also like...

Leave a Reply

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