Skip to content

Commit 74c5ec9

Browse files
authoredMay 13, 2024··
Update mkdocs version with ubuntu 24.04 (#1)
1 parent c13dd34 commit 74c5ec9

11 files changed

+747
-19
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
1+
sudo apt update
22
sudo apt upgrade && sudo apt install \
33
screen locate libapache2-mod-tile renderd \
4-
git tar unzip wget bzip2 apache2 lua5.1 \
4+
git tar unzip wget bzip2 apache2 lua5.1 \
55
mapnik-utils python3-mapnik python3-psycopg2 \
6-
python3-yaml gdal-bin npm fonts-noto-cjk \
7-
fonts-noto-hinted fonts-noto-unhinted \
8-
fonts-unifont fonts-hanazono postgresql \
9-
postgresql-contrib postgresql-14-postgis-3 \
10-
postgis postgresql-14-postgis-3-scripts \
11-
osm2pgsql net-tools curl
6+
python3-yaml gdal-bin npm postgresql \
7+
postgresql-contrib postgis postgresql-14-postgis-3 \
8+
postgresql-14-postgis-3-scripts osm2pgsql \
9+
net-tools curl
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sudo apt update
2+
sudo apt upgrade && sudo apt install \
3+
screen locate libapache2-mod-tile renderd \
4+
git tar unzip wget bzip2 apache2 lua5.1 \
5+
mapnik-utils python3-mapnik python3-psycopg2 \
6+
python3-yaml gdal-bin npm node-carto \
7+
postgresql postgresql-contrib postgis \
8+
postgresql-16-postgis-3 postgresql-16-postgis-3-scripts \
9+
osm2pgsql net-tools curl

‎docs/en/serving-tiles/manually-building-a-tile-server-ubuntu-24-04-lts.md

+360
Large diffs are not rendered by default.

‎docs/en/serving-tiles/monitoring-using-munin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ lang: en
55

66
# {{ title }}
77

8-
"Munin" can be used to monitor the activity of `renderd` and `mod_tile` on a server. Munin is available on a number of platforms; these instructions were tested on Ubuntu Linux 22.04 in June 2022.
8+
"Munin" can be used to monitor the activity of `renderd` and `mod_tile` on a server. Munin is available on a number of platforms; these instructions were tested on Ubuntu Linux 22.04 in June 2022 and Ubuntu Linux 24.04 in April 2024.
99

1010
First, install the necessary software:
1111

‎docs/en/serving-tiles/updating-as-people-edit-osm2pgsql-replication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lang: en
77

88
Every day there are millions of new map updates, so to prevent a map becoming "stale" you can refresh the data used to create map tiles regularly.
99

10-
Using `osm2pgsql` (version 1.4.2 or above) it's now much easier to do this than it was previously. Version 1.6.0 is distributed as part of Ubuntu 22.04; version 1.8.0 as part of Debian 12, and it can also be obtained by following [these instructions](https://osm2pgsql.org/doc/install.html){: target=_blank}. With `osm2pgsql` comes [osm2pgsql-replication](https://osm2pgsql.org/doc/manual.html#updating-an-existing-database){: target=_blank} - that provides a relatively simple way to keep a database up to date. A more flexible approach is to call `PyOsmium` directly - see [this guide](/serving-tiles/updating-as-people-edit-pyosmium.md) for how to do that.
10+
Using `osm2pgsql` (version 1.4.2 or above) it's now much easier to do this than it was previously. Version 1.6.0 is distributed as part of Ubuntu 22.04; version 1.8.0 as part of Debian 12; version 1.11.0 as part of Ubuntu 24.04, and it can also be obtained by following [these instructions](https://osm2pgsql.org/doc/install.html){: target=_blank}. With `osm2pgsql` comes [osm2pgsql-replication](https://osm2pgsql.org/doc/manual.html#updating-an-existing-database){: target=_blank} - that provides a relatively simple way to keep a database up to date. A more flexible approach is to call `PyOsmium` directly - see [this guide](/serving-tiles/updating-as-people-edit-pyosmium.md) for how to do that.
1111

1212
It's possible to set up replication from many different sources. OpenStreetMap itself provides minutely, hourly and daily updates, and other sources such as Geofabrik can provide daily updates that match the regional data extracts available at [download.geofabrik.de](http://download.geofabrik.de/index.html){: target=_blank}.
1313

‎docs/en/serving-tiles/updating-as-people-edit-pyosmium.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lang: en
77

88
Every day there are millions of new map updates so to prevent a map becoming "stale" you can refresh the data used to create map tiles regularly.
99

10-
Using osm2pgsql (version 1.4.2 or above) it's now much easier to do this than it was previously. Suitable versions are distributed as part of Ubuntu 22.04 and Debian 12, and it can also be obtained by following [these instructions](https://osm2pgsql.org/doc/install.html){: target=_blank}.
10+
Using osm2pgsql (version 1.4.2 or above) it's now much easier to do this than it was previously. Suitable versions are distributed as part of Ubuntu 22.04 and 24.04, and Debian 12, and it can also be obtained by following [these instructions](https://osm2pgsql.org/doc/install.html){: target=_blank}.
1111

1212
A simpler, but less flexible, method to update a database is to use `osm2pgsql-replication`, described [here](/serving-tiles/updating-as-people-edit-osm2pgsql-replication.md). In this example, we'll use `PyOsmium` to update a database initially loaded from Geofabrik with minutely updates from <https://planet.openstreetmap.org>{: target=_blank}.
1313

‎docs/uk/serving-tiles/manually-building-a-tile-server-ubuntu-24-04-lts.md

+360
Large diffs are not rendered by default.

‎docs/uk/serving-tiles/monitoring-using-munin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ lang: uk
55

66
# {{ title }}
77

8-
Для моніторингу активності служб `renderd` та `mod_tile` можна використовувати "Munin". Munin доступний на багатьох платформах; ця інструкція була протестована на Ubuntu Linux 22.04 в червні 2022.
8+
Для моніторингу активності служб `renderd` та `mod_tile` можна використовувати "Munin". Munin доступний на багатьох платформах; ця інструкція була протестована на Ubuntu Linux 22.04 в червні 2022 та Ubuntu Linux 24.04 у квітні 2024.
99

1010
Встановимо потрібне програмне забезпечення:
1111

‎docs/uk/serving-tiles/updating-as-people-edit-osm2pgsql-replication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lang: uk
77

88
Щодня зʼявляються мільйони нових оновлень на мапі, щоб не допустити, щоб ваша мапа стала «застарілою», ви можете регулярно оновлювати дані, які використовуються для створення тайлів.
99

10-
З переходом на останню версію `osm2pgsql` (версія 1.4.2 та свіжіше) оновлювати дані стало на багато простіше ніж раніш. Версія 1.6.0 постачається в складі Ubuntu 22.04; версія 1.8.0&nbsp;– як частина Debian 12, їх можна встановити слідуючи [інструкції з osm2pgsql.org](https://osm2pgsql.org/doc/install.html){: target=_blank}. Разом з `osm2pgsql` йде [osm2pgsql-replication](https://osm2pgsql.org/doc/manual.html#updating-an-existing-database){: target=_blank}&nbsp;– що надає порівняно простий спосіб підтримувати дані в базі в актуальному стані. Більш гнучким способом буде безпосередній виклик `PyOsmium`, [тут докладніше](/serving-tiles/updating-as-people-edit-pyosmium.md) про це.
10+
З переходом на останню версію `osm2pgsql` (версія 1.4.2 та свіжіше) оновлювати дані стало на багато простіше ніж раніш. Версія 1.6.0 постачається в складі Ubuntu 22.04; версія 1.8.0&nbsp;– як частина Debian 12; версія 1.11.0&nbsp;– як частина Ubuntu 24.04, їх можна встановити слідуючи [інструкції з osm2pgsql.org](https://osm2pgsql.org/doc/install.html){: target=_blank}. Разом з `osm2pgsql` йде [osm2pgsql-replication](https://osm2pgsql.org/doc/manual.html#updating-an-existing-database){: target=_blank}&nbsp;– що надає порівняно простий спосіб підтримувати дані в базі в актуальному стані. Більш гнучким способом буде безпосередній виклик `PyOsmium`, [тут докладніше](/serving-tiles/updating-as-people-edit-pyosmium.md) про це.
1111

1212
Ви можете налаштувати отримання даних з різних джерел. OpenStreetMap надає можливість отримувати щохвилинні, щогодинні та щоденні оновлення, інші джерела можуть надавати щоденні оновлення, наприклад Geofabrik надає щоденні оновлення регіональних витягів даних, які можна отримати на [download.geofabrik.de](http://download.geofabrik.de/index.html){: target=_blank}.
1313

‎docs/uk/serving-tiles/updating-as-people-edit-pyosmium.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lang: uk
77

88
Щодня зʼявляються мільйони нових оновлень на мапі, щоб не допустити, щоб ваша мапа стала «застарілою», ви можете регулярно оновлювати дані, які використовуються для створення тайлів.
99

10-
З переходом на останню версію osm2pgsql (версія 1.4.2 та свіжіше) оновлювати дані стало на багато простіше ніж раніше. Відповідні версії розповсюджується в складі Ubuntu 22.04 та Debian 12, їх можна встановити слідуючи [інструкції з osm2pgsql.org](https://osm2pgsql.org/doc/install.html){: target=_blank}.
10+
З переходом на останню версію osm2pgsql (версія 1.4.2 та свіжіше) оновлювати дані стало на багато простіше ніж раніше. Відповідні версії розповсюджується в складі Ubuntu 22.04, 24.04 та Debian 12, їх можна встановити слідуючи [інструкції з osm2pgsql.org](https://osm2pgsql.org/doc/install.html){: target=_blank}.
1111

1212
Простіший, але менш гнучкий метод оновлення даних,&nbsp;– використання `osm2pgsql-replication` (див [тут](/serving-tiles/updating-as-people-edit-osm2pgsql-replication.md)). Тут для оновлення даних в нашій базі ми будемо використовувати `PyOsmium` для оновлення даних, які ми отримали з Geofabrik хвилинними оновленнями з <https://planet.openstreetmap.org>{: target=_blank}.
1313

‎mkdocs.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
site_name: Switch2OSM
2-
site_url: https://switch2osm.org
2+
site_url: https://andygol.co.ua/switch2osm-mkdocs
33

4-
repo_url: https://github.com/switch2osm/switch2osm
5-
repo_name: switch2osm/switch2osm
4+
repo_url: https://github.com/Andygol/switch2osm-mkdocs
5+
repo_name: Andygol/switch2osm-mkdocs
66

77
edit_uri: edit/main/docs/
88

@@ -113,6 +113,7 @@ nav:
113113
- Manually:
114114
- Debian 12: serving-tiles/manually-building-a-tile-server-debian-12.md
115115
- Debian 11: serving-tiles/manually-building-a-tile-server-debian-11.md
116+
- Ubuntu 24.04: serving-tiles/manually-building-a-tile-server-ubuntu-24-04-lts.md
116117
- Ubuntu 22.04: serving-tiles/manually-building-a-tile-server-ubuntu-22-04-lts.md
117118
- Ubuntu 20.04: serving-tiles/manually-building-a-tile-server-ubuntu-20-04-lts.md
118119
- Ubuntu 18.04: serving-tiles/manually-building-a-tile-server-ubuntu-18-04-lts.md
@@ -240,6 +241,6 @@ plugins:
240241
Providers: 提供者
241242
More: 取得協助
242243
- locale: "null"
243-
fixed_link: https://github.com/switch2osm/switch2osm#Translation
244+
fixed_link: https://app.transifex.com/osm-ua/swtch2osm/dashboard/#/
244245
name: Help to translate
245-
246+

0 commit comments

Comments
 (0)
Please sign in to comment.