I made this as a simple example of ☁️ 💻 (cloud computing). This is the python code to manage a 4-cores cluster made with 🍓Raspberry Pi B+, a simple switch and cables. Its made with 🐍Python 3 and Fabric. Every Raspberry is running Raspbian and its SSH port is open and tested.
You don't need the raspberries, any linux computer with ssh access through your local network will work fine for most of the examples. But, think again! Build the cluster is so much fun.
It's better if you have some previous knowledge about:
- Python 3 🐍
- Linux Shell 🐧
- Computer Hardware 💻
- Raspberry Pi 🍓
Just Fork or clone this project and keep reading.
If you don't have it already, install Python 3 I'm using Python 3.6.5+
One you have Python 3 installed use pip to install fabric, in the console type:
pip install fabric
You will need at least 4 linux machines, you could use virtual ones if you want. This computers will need to have the SSH port open and accessible to your network from your computer
Just clone or fork this repository and run the samples with python from a terminal.
python3 ls.py
ifconfig wlan0 down
crontab -e
@reboot sudo ifdown wlan0
- Python - The programming language
- Fabric - The library for streamlining
- Raspbian - The Operative System for the cluster
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Andrés González Aragón - Quantium
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details
- Thank you to everybody in the Python team.
- Thank you to the people who program and maintain fabric
- Thank you very much to the guys of Raspberry PI
- The Dog Bone Case was bought here