{"id":16853526,"url":"https://github.com/sim51/rasp_cluster_box","last_synced_at":"2025-06-26T01:02:25.538Z","repository":{"id":142401822,"uuid":"109716411","full_name":"sim51/rasp_cluster_box","owner":"sim51","description":"Raspberry Neo4j cluster box script","archived":false,"fork":false,"pushed_at":"2017-11-06T15:54:57.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T01:02:13.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sim51.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-06T15:54:14.000Z","updated_at":"2017-11-06T15:54:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a27d840d-1ad9-4868-b62f-d84204e57b1c","html_url":"https://github.com/sim51/rasp_cluster_box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sim51/rasp_cluster_box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sim51%2Frasp_cluster_box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sim51%2Frasp_cluster_box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sim51%2Frasp_cluster_box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sim51%2Frasp_cluster_box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sim51","download_url":"https://codeload.github.com/sim51/rasp_cluster_box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sim51%2Frasp_cluster_box/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978904,"owners_count":23239417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:52:00.555Z","updated_at":"2025-06-26T01:02:25.427Z","avatar_url":"https://github.com/sim51.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Raspebbry cluster box\n\n== Connectors\n\n| 3.3V\n| Black\n| Button 1\n|\n\n| #4\n| White\n| Button 1\n| Shutdown button\n\n| #17\n| Gray\n| Little red led\n| Server is up\n\n| #27\n| Purple\n| Big red led\n| Neo4j is alive\n\n| #22\n| Blue\n| Big yellow led\n| Neo4j is available\n\n| #24\n| Green\n| Big green led\n| Neo4j is master or blink on election\n\n| GND\n| Yellow\n| \n\n| #25\n| Orange\n| little green led\n| blink on query\n\n== Installation\n\n=== Common\n\n[source,shell]\n----\n# Git\nsudo apt-get install git\n\n# Python \nsudo apt-get install python-pip\npip install RPi.GPIO\npip install requests\n----\n\n=== Network \n\n----\nvi /etc/dhcpcd.conf\n----\n\nAdding this at the end of the file\n\n----\ninterface eth0\nstatic ip_address=192.168.1.102/24 \u003c= change the static IP for each server\nstatic routers=192.168.1.254\nstatic domain_name_servers=\n----\n\n=== Neo4j server\n\n# Neo4j\nwget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -\necho 'deb http://debian.neo4j.org/repo stable/' \u003e/tmp/neo4j.list\nsudo mv /tmp/neo4j.list /etc/apt/sources.list.d\nsudo apt-get update\nsudo apt-get install neo4j-enterprise\n\n=== HA Proxy server\n\necho deb http://httpredir.debian.org/debian jessie-backports main | tee /etc/apt/sources.list.d/backports.list\ncurl http://haproxy.debian.net/bernat.debian.org.gpg |  apt-key add -\necho deb http://haproxy.debian.net jessie-backports-1.6 main | tee /etc/apt/sources.list.d/haproxy.list\napt-get update\napt-get install haproxy -t jessie-backports-1.6\n\n=== Install the code\n\nmake a SCP of the folder to ~\n\n----\nscp -r rasp_cluster_box/ pi@192.168.1.104:~\n----\n\nAdd +x on all script\n\n----\ncd /home/pi/rasp_cluster_box/\nsudo chmod +x *.py\ncd /home/pi/rasp_cluster_box/neo4j-status/\nsudo chmod +x *\ncd /home/pi/rasp_cluster_box/queries/\nsudo chmod +x *\ncd /home/pi/rasp_cluster_box/shutdown/\nsudo chmod +x *\n----\n\ncreate symlink for all init script\n\n----\ncd /etc/init.d\nsudo ln -s /home/pi/rasp_cluster_box/neo4j-status/rcb-neo4j-status rcb-neo4j-status\nsudo ln -s /home/pi/rasp_cluster_box/shutdown/rcb-shutdown rcb-shutdown\nsudo ln -s /home/pi/rasp_cluster_box/queries/rcb-neo4j-queries rcb-neo4j-queries\n----\n\nAdding them into rc folders\n----\ncd /etc/init.d\nsudo update-rc.d rcb-neo4j-status defaults\nsudo update-rc.d rcb-shutdown defaults\nsudo update-rc.d rcb-neo4j-queries defaults\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsim51%2Frasp_cluster_box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsim51%2Frasp_cluster_box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsim51%2Frasp_cluster_box/lists"}