Showing posts with label Ubuntu 15.10. Show all posts
Showing posts with label Ubuntu 15.10. Show all posts

Saturday, November 14, 2015

Getting Tilestream Working on Ubuntu 15.10 (Wily Werewolf)

This configuration is suitable for a simple tilestream appliance that only serves tiles. It can be quickly configured and uses node.js from chris-lea repositories.

The basic concept:
  • install latest Ubuntu 15.10 iso (default settings, I included openssh only), reboot
  • install nodejs sym linking it as the node binary
  • install npm and git
  • clone the mapbox git repo
  • edit the package.json file to allow the latest version of connect
  • npm install
  • run

The basic concept is to link apt-get to the chris-lea repo to install node, download the git repo of the tilestream app from mapbox and adjust the package.json dependency to get a more modern version of connect. Then it should fire up ok.

This list should get you up and running...

$ sudo apt-add-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get -y install nodejs git-core
$ sudo ln -s /usr/bin/nodejs /usr/bin/node # node binary is the nodejs binary! 
$ sudo apt-get -y install npm # installs lots of dependencies
$ git clone https://github.com/mapbox/tilestream.git && cd tilestream
$ vim package.json # edit the connect version to latest (replace the connect version with a *)
$ npm install
$ ./index.js --host 10.0.0.34








Bam!!

Check out my similar install instructions for Ubuntu 14.04

Check out the config instructions on mapboxes github site