Skip to content

franciscoprin/kafka-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start:

  • Start Kafka
    • Option 1: Follow instruction in quick start
    • Option 2: After install docker, cd inside this folder, and write docker-compose up
      • In your browser write localhost:9000
      • Create a broker
      • Change only the sections bellow then screw down and press save
      • Select Go to cluster view
      • Crete a topic
      • Type a topic and press enter
      • Go inside of the folder Example1 in this directory and run main.py

Raspberry Pi Set Up:

  • Install RASPBIAN STRETCH LITE

  • first time that you log in typpe this user name and password.

    • raspberrypi login: pi
    • Password: raspberry
  • Install python:

    • $ apt-get update
    • $ sudo apt-get install python3-picamera
  • Install PIP:

    • $ sudo apt-get install python-pip
  • Install python control library.

    • With python packages manager:
      • $ sudo pip install RPi.GPIO
  • Install git in Rasbian:

    • $ sudo apt-get install git-core
  • Install python-kafka:

    • $ pip install kafka-python
  • Set up wifi

    • Change the file in "/etc/network/interfaces.d" with.

        auto lo
      
        iface lo inet loopback
        iface eth0 inet manual
      
        allow-hotplug wlan0
        auto wlan0
      
      
        iface wlan0 inet manual
            wpa-ssid "DC"
            wpa-psk "5124223639"
      
  • Connect remotely to raspberry pi with IP address.

    • Connect with GitBash

    • Connect with putty (with or without GUI)

      • Install putty:
      • Enable SSH inside of the raspberry pi:
        • $ sudo raspi-config
        • Select Interfacing Options
        • Navigate to and select SSH
        • Choose Yes
        • Select Ok
      • Get Raspberry IP address
      • place this IP address inside of putty and then press yes.
      • You need to introduce password and Username
    • This option if you have a GUI install.

      • Get the IP address of the raspberry pi
      • Install VNC
      • Then run
        • $ sudo apt-get update
        • $ sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer
        • sudo raspi-config
          • enable VNC Server by doing the following:
            • Navigate to Interfacing Options.
            • Scroll down and select VNC > Yes.
  • Wired the button to pings 7 and 12:

Important commands and information:

  • Shoutdown Raspberry:
    • $ sudo shutdown -h now
  • Reboot Raspberry:
    • $ sudo reboot -h now
  • Git IP address:
    • $ hostname -I
  • change Raspberry pi configurations:
    • $ sudo raspi-config
  • Pi information:
    • UserName: deepcast || pi (deepcast user doesn't have sudo power, why?)
    • Password: ai
    • IP address: 10.0.0.116
  • List all the available port in windows:
    • $ netstat -aon | find /i "listening"
  • List IP in Rasbian:
    • $ sudo arp-scan -l --interface=wlan0
  • List IP in Rasbian:
    • $ netstat -pln

Investigate

  • How do I give sudo power to deepcast?
  • How do I access Raspberry pi with IP address?
  • How do I set an IP address?
    • /etc/hostname

Important link:

  • Interesting tutorial: Link
  • Setting Raspberry py with ubuntu: Link
    • Note: after unpackages change ".img" for ".iso"
      • Note: in windows unable "file name extensions" to be able to see the extensions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published