Giter Site home page Giter Site logo

locus's Introduction

sudo service dnsmasq stop sudo apt-get update sudo apt-get install git git clone https://github.com/robvdv/locus.git curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install nodejs npm install serialport sudo apt-get install couchdb nano /etc/couchdb/local.ini edit: [httpd] port = 5984 bind_address = 0.0.0.0 sudo service couchdb restart or sudo /etc/init.d/couchdb restart cd locus/node npm install

[httpd] port = 5984 bind_address = 0.0.0.0 ; Options for the MochiWeb HTTP server. ;server_options = [{backlog, 128}, {acceptor_pool_size, 16}] ; For more socket options, consult Erlang's module 'inet' man page. ;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}] enable_cors = true

[cors] origins = *

sudo crontab -e nano /etc/rc.local /etc/init.d/cron start

          • su pi -c "/home/pi/locus/restartlocus.sh >> /home/pi/cronlocus.log"

Full installation instructions Raspbian Jessie (don't forget the ssh in the boot folder) SSH into pi pi/raspberry sudo apt-get update curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install nodejs sudo apt-get install git git clone https://github.com/robvdv/locus.git cd locus/node sudo npm install ?? sudo? sudo apt-get install couchdb sudo nano /etc/couchdb/local.ini

[httpd] port = 5984 bind_address = 0.0.0.0 enable_cors = true

[cors] origins = *

Copy ssl files to: /home/pi/locus/node/ssl/

cd /home/pi/locus/node/ npm install serialport

cd /etc/init.d copy start_locus.sh to this location chmod +755 ./start_locus.sh

Honeypot sudo apt-get install hostapd

sudo nano /etc/hostapd/hostapd.conf

interface=wlan0 driver=nl80211 ssid=locus channel=7

sudo nano /etc/init.d/hostapd

DAMEON_CONF=/etc/hostapd/hostapd.conf

sudo apt-get install dnsmasq

sudo nano /etc/dnsmasq.conf

address=/#/10.0.0.1 interface=wlan0 dhcp-range=10.0.0.10,10.0.0.250,12h no-resolv

sudo nano /etc/network/interfaces

auto lo iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0 iface wlan0 inet static address 10.0.0.1 netmask 255.255.255.0 broadcast 255.0.0.0

[cors] origins = *

sudo crontab -e

          • su pi -c "/home/pi/locus/restartlocus.sh >> /home/pi/cronlocus.log"

sudo nano /etc/rc.local /etc/init.d/cron start

// allow node to bind to priv port sudo sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/nodejs

Administering Couchdb http://192.168.1.6:5984/_utils/database.html?playa

locus's People

Contributors

robvdv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.