Skip to content

Instantly share code, notes, and snippets.

This page describes how to install, setup and configure all the necessary software to operate your own tile server. These step-by-step instructions were written for Ubuntu Linux 20.04 LTS (Focal Fossa), and were tested in May 2020.
Software installation
The OSM tile server stack is a collection of programs and libraries that work together to create a tile server. As so often with OpenStreetMap, there are many ways to achieve this goal and nearly all of the components have alternatives that have various specific advantages and disadvantages. This tutorial describes the most standard version that is similar to that used on the main OpenStreetMap.org tile servers.
It consists of 5 main components: mod_tile, renderd, mapnik, osm2pgsql and a postgresql/postgis database. Mod_tile is an apache module that serves cached tiles and decides which tiles need re-rendering - either because they are not yet cached or because they are outdated. Renderd provides a priority queueing system for different sorts of requests to
@jendrusk
jendrusk / create_gisapp.sh
Created August 15, 2019 08:37
Skrypt instaluje uprel/gisapp i uprel/gisportal na ubuntu 18.04
#!/bin/bash
set -x
#czekamy aż będzie sieć
while ! (ping -c 1 8.8.8.8); do sleep 1; done
# update, upgrade
apt update
apt upgrade -y