Talk:Virtual machine image

From OpenStreetMap Wiki
Jump to navigation Jump to search

move to 'Nominatim & Tile Server VM'

Hi Andrew - thanks for putting this together. Would you mind if I set up a redirect from this page to one titled "Nominatim & Tile Server VM"? I think that would be more descriptive & help generate more traffic. If not, no worries. Thanks! Jeffmeyer 22:56, 28 December 2012 (UTC)

Yes please. This title is too broad I reckon. I'm adding move proposal label to the page -- Harry Wood (talk) 12:57, 19 May 2014 (UTC)

Feature requests / Wishes

  • It would be nice to have a terminal link on the desktop. --HannesHH (talk) 17:19, 10 February 2013 (UTC)
  • The included slippymap uses stuff from openlayers.org, might be nice to make it not rely on that but bundle all needed files inside (so no network does not mean failure) --HannesHH (talk) 17:19, 10 February 2013 (UTC)
  • The slippymap is hardcoded to get files from localhost, so if you bridge the network of the VM to the host you cannot use it. Not sure how to nicely solve this. --HannesHH (talk) 17:19, 10 February 2013 (UTC)

Additional things required to make this work

The following workarounds may not be the best way to fix the problems I found, but they result in a working installation:

1) Once you've updated the /usr/bin/get-coastlines.sh script from the subversion repos, edit the script and amend all instances of:

$WGET http://...

So that it instead reads:

$WGET --no-check-certificate http://...

This ensures that wget is able to fetch HTTPS links without problem.

2) Edit the /home/osm/Scripts/import_osm_extract script and remove "--slim" option from the line containing the osm2pgsql command. This will avoid "duplicate key" errors (and failure) when importing the PBF file.

3) As already mentioned in the original wiki text, you need to remove the "ne_" prefix from the filename of files in /usr/share/mapnik-osm-data/world_boundaries/

However, you should NOT do this for the 10m_populated_places.dbf, .shp and .shx files. Running /usr/bin/renderd -f will confirm this.