This script is for building a basic tile server with OpenStreetMap data
https://www.openstreetmap.org
http://www.geofabrik.de/
http://mapnik.org/
http://openlayers.org/
http://leafletjs.com
http://www.postgresql.org/
http://postgis.net/
https://github.com/gravitystorm/openstreetmap-carto
https://github.com/mapbox/osm-bright