![]() (if you don’t know what IP address it will have been assigned you can likely use “ifconfig” to find out - if the network configuration is not too complicated it’ll probably be the “inet addr” that is not “127.0.0.1”). If you point a web browser at: you should get Ubuntu / apache’s “It works!” page. ![]() (I suspect that it needs doing twice because Apache gets “confused” when reconfigured when running) Here we’re assuming that we’re storing the stylesheet details in a directory below “src” below the home directory of the “renderaccount” user (or whichever other one you are using) The home of “OpenStreetMap Carto” on the web is and it has it’s own installation instructions at although we’ll cover everything that needs to be done here. There are a couple of downsides though - it’s very much a compromise designed to work globally, and it’s quite complicated to understand and modify, should you need to do that. It’s chosen because it’s well documented, and should work anywhere in the world (including in places with non-latin placenames). The style we’ll use here is the one that use by the “standard” map on the website. Now that all of the necessary software is installed, you will need to download and configure a stylesheet. (that shouldn’t reply with anything) Stylesheet configuration If you do create the “renderaccount” user you’ll need to add it to the group of users that can sudo to root. The non-root username used by default below is “renderaccount” - you can create that locally if you want, or edit scripts to refer to a different username if you want. This guide assumes that you run everything from a non-root user via “sudo”. If you have got other versions of some software already installed (perhaps you upgraded from an earlier Ubuntu version, or you set up some PPAs to load from) then you may need to make some adjustments. Note that these instructions are have been written and tested against a newly-installed Ubuntu 20.04 server. Mapnik is the software library that does the actual rendering and is used by renderd. Renderd provides a priority queueing system for different sorts of requests to manage and smooth out the load from rendering requests. 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. It consists of 5 main components: mod_tile, renderd, mapnik, osm2pgsql and a postgresql/postgis database. This tutorial describes the most standard version that is similar to that used on the main tile servers. 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. The OSM tile server stack is a collection of programs and libraries that work together to create a tile server. These step-by-step instructions were written for Ubuntu Linux 20.04 LTS (Focal Fossa), and were tested in May 2020. ![]() This page describes how to install, setup and configure all the necessary software to operate your own tile server.
0 Comments
Leave a Reply. |