sudo apt-get install postgresql postgis postgresql-9.3-pgrouting osm2pgsql osm2pgrouting postgresql-contrib
- Download a .osm file
- Connect to database.
- Create new database (osm_database)
- Create extensions: hstore pgrouting plpgsql postigs postgis_topology
- Download osm file (map.osm)
- run: osm2pgrouting -file map.osm -conf /usr/share/osm2pgrouting/mapconfig.xml -dbname osm_database -user postgres -passwd password -clean
- Database should be imported
GUI:
sudo apt-get install qgis
Osm2po