Make a UK map on Ubuntu using D3 and TopoJSON by following Mike Bostock's example.
Admin 0 - Details - map subunits
Upzip both files
$ sudo apt update
$ sudo apt upgrade
$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ sudo apt install gdal-bin python-gdal python3-gdal
$ sudo npm install -g topojson
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
$ ogr2ogr \
-f GeoJSON \
-where "ADM0_A3 IN ('GBR', 'IRL')" \
subunits.json \
ne_10m_admin_0_map_subunits.shp
$ ogr2ogr \
-f GeoJSON \
-where "ISO_A2 = 'GB' AND SCALERANK < 8" \
place.json \
ne_10m_populated_places.shp
$ topojson \
-o uk.json \
--id-property SU_A3 \
--properties name=NAME \
-- \
subunits.json \
place.json
see index.html for details