Nominatim is a tool that allows you to extract detailed and location-based information from OpenStreetMap data. Here is a step-by-step guide for installing it on EndeavourOS latest.
Before we begin, make sure that you have the following:
Follow these steps to install Nominatim on EndeavourOS latest:
sudo pacman -Syu
sudo pacman -S cmake g++ gcc boost python python-pip git libxml2 libxml2-dev libpqxx libpqxx-devel postgresql postgresql-libs postgresql-contrib postgis
sudo adduser nominatim
sudo su - nominatim
git clone https://github.com/openstreetmap/Nominatim.git
cd Nominatim
mkdir build && cd build
cmake .. && make
sudo make install
wget https://download.geofabrik.de/asia/maldives-latest.osm.pbf
sudo -u postgres /usr/bin/osm2pgsql -d nominatim -s -C 4096 --number-processes 4 -S ~/Nominatim/build/osm2pgsql/default.style ~/maldives-latest.osm.pbf
cd ~/Nominatim
nano .env
Add the following lines:
NOMINATIM_VERSION=3.7.2
POSTGRES_USER=nominatim
POSTGRES_PASSWORD=<insert_your_PG_password>
POSTGRES_DB=nominatim
Save and exit the file.
sudo su - postgres
psql nominatim
\q
~/Nominatim/utils/setup.php --setup-database
~/Nominatim/utils/setup.php --import-db
sudo systemctl start nominatim.service
Nominatim should now be installed and running on your EndeavourOS latest server. You can access it by visiting http://<your-server>/nominatim/
.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!