Giter Site home page Giter Site logo

xlsform-server's Introduction

Overview

The xlsform server runs http://xlsform.opendatakit.org. This repo describes how to setup that machine.

1. Provision a remote machine

We currently use a small (512MB, 20GB) box running Ubuntu 16.04 LTS on Digital Ocean. We connect via SSH on port 22 with a private key. Passwords are disabled for remote root login.

You will need to create a user called ubuntu for Ansible to use. To ensure the ubuntu user can run passwordless sudo, run sudo visudo and confirm these lines below are present, in this order, and are not commented out on the remote machine.

# User privilege specification
root    ALL=(ALL:ALL) ALL
ubuntu  ALL=(ALL) NOPASSWD: ALL

# Members of the admin group may gain root privileges
admin   ALL=(ALL) ALL

You'll also need to setup create a RSA key pair on the remote machine. Once you do:

  1. Copy the ~/.ssh/id_rsa file to xlsform-server/secrets/id_rsa on the local machine.
  2. Add id_rsa.pub to ~/.ssh/authorized_keys on the remote machine.

2. Install software on your local machine

  1. Install ansible v2.2.0 or later.

3. Run ansible to configure remote machine

  1. Clone or download this repo.
  2. Read over playbook.yml and the files in roles/ to understand behavior.
  3. Ensure the correct IP to the machine is in hosts file.
  4. Ensure id_rsa is in secrets/.
  5. In xlsform-server/, run ansible-playbook -i provisioning/hosts provisioning/playbook.yml.

Notes

You may wish to configure ansible to disable host checking and disable retry files.

xlsform-server's People

Contributors

yanokwa avatar czue avatar

Watchers

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