Coder Social home page Coder Social logo

owntracks-server's Introduction

How to run

To get this project working, perform the following steps:
# Step 1 (in your local machine)
# set the google project
$ gcloud config set project propel-gps

# Step 2 (in your local machine)
# set the compute zone
$ gcloud config set compute/zone us-central1-b

# Step 3 (in your local machine)
# Create the appropriate firewall rules
$ gcloud beta compute --project "propel-gps" firewall-rules create "allow-8083" --allow tcp:8083 --direction "INGRESS" --priority "1000" --network "default" --source-ranges "0.0.0.0/0"
$ gcloud beta compute --project "propel-gps" firewall-rules create "allow-1883" --allow tcp:1883 --direction "INGRESS" --priority "1000" --network "default" --source-ranges "0.0.0.0/0"
$ gcloud beta compute --project "propel-gps" firewall-rules create "allow-8883" --allow tcp:8883 --direction "INGRESS" --priority "1000" --network "default" --source-ranges "0.0.0.0/0"

# Step 4 (in your local machine)
# create the propel-owntracks machine
$ gcloud compute instances create propel-owntracks --scopes compute-rw --image-family debian-8 --image-project debian-cloud --zone us-central1-b --scopes https://www.googleapis.com/auth/devstorage.read_write --machine-type g1-small --address 104.154.134.84

# Step 5 (in your local machine)
# SSH into the propel-owntracks machine
$ gcloud compute ssh propel-owntracks --zone us-central1-b

# Step 6 (in the owntracks VM)
# install git
$ sudo apt-get update && sudo apt-get install git -y

# Step 7 (in the owntracks VM)
# clone repo
$ git clone https://github.com/yencarnacion/owntracks-server

# Step 8 (in the owntracks VM)
# provision the machine
$ cd owntracks-server
$ sudo bash ./go.sh

# Step 9 (in the owntracks VM)
$ sudo nohup /usr/local/sbin/owntracks &
Other Notes:
  • remember to do gcloud compute instances delete propel-owntracks --zone us-central1-b when you are done

owntracks-server's People

Contributors

yencarnacion avatar

Stargazers

Suri avatar

Watchers

James Cloos avatar  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.