OpenStreetMap Carto Tutorials - OpenStreetMap Carto documentation     Site map    
Suggested Ubuntu Installation with the original ISO distro

Suggested Ubuntu Installation with the original ISO distro

Set the environment variables

export PGHOST=localhost
export PGPORT=5432
export PGUSER=postgres
export PGPASSWORD=postgres_007%

Hw or virtual machine

You might need the following hw configuration or create a virtual machine with the following suggested configuration:

  • 7th or 8th Generation Core processor, 64 bit (or Generation 2 Virtual Machine); lots of CPU cores is suggested for a production tile server
  • Memory: at least 4 GB for dev/testing with a small area (or >32 GB for a production tile server); PostgreSQL takes advantage of the disk cache
  • Harddisk: At least 10 GB for dev/testing with a small area, better if SSD (or > 1TB fast RAID array or SSD for a production tile server1); harddrive performance to speed-up database access is crucial. You can also selectively put the most important parts of the database on an SSD and the rest on slower disks. Osm2pgsql supports using separate tablespaces for different parts of the database for this purpose.2

Ubuntu installation

Download the latest Ubuntu 18.04 LTS or Ubuntu 16.04 LTS ISO.

Create bootable installation media from iso, CD or USB, boot server from it.

Option: Install Ubuntu Server

Language, Keyboard, Location

  • Language: English - English
  • Location: United States [or select yours]
  • Configure keyboard/Detect keyboard layout:
  • Configure keyboard: English (US) [or select yours]
  • Keyboard layout: English (US) [or select yours]

Network Configuration

  • Configuring the network with DHCP: if your server is connected to LAN with DHCP, the IP network can be automatically configured, otherwise (Configuring the network with DHCP: ) please setup IP/mask/GW and DNS IPs manually (Network Autoconfiguration Failed: )
  • Configuring the network: Configuring network manually
  • IP Address: [use yours]
  • Netmask: [ise yours]
  • Gateway: [use yours]
  • Name Server Addresses: [use yours or (note the space in the middle)]
  • Hostname: MapServer [or choose yours]
  • Domain name (if you don’t have, make it

User Identity

  • Full name for the new user: tileserver User [or choose yours]
  • Username for your account: tileserver [or choose yours]
  • Choose a password for the new user: [select one]
  • Re-enter password to verify: [repeat the password]
  • Use weak password:
  • Encrypt your home directory:
  • Setting up the clock: Wait…
  • Select your time zone: [select yours]

Mounting and Formatting Drives

  • Unmount partitions that are in use:
  • Partitioning Method: Guided - use entire disk and setup LVM
  • Write changes to disk and create LVM: YES
  • Amount of volume: leave all offered size
  • Force UEFI Installation: YES
  • Select Disk to Partition: Select the one you want to install Ubuntu to
  • Partition Disks: Finish partitioning and write changes to disk (May not appear)
  • Write changes to disks:
  • Wait for completion…

Repository and Software

  • HTTP proxy information (blank for none): Leave blank (if you have such, please configure it for internet reachability)
  • Configuring task: Install security updates automatically
  • Choose Software to install:
    • [*] Manual package selection
    • [*] Standard system utilities
    • [*] OpenSSH server
  • Wait for completion…

Login and change the password

  1. The full OSM map database and regular update files are available at Planet OSM. The whole planet is currently around about 300GB (65 GB zipped)- 

  2. Information taken from the Hardware paragraph of Building a tile server from packages page within

Please, avoid using Disqus below to notify issues on this page, just use it for general comments. Create a GitHub issue instead. This is the most effective way to track problems.
comments powered by Disqus