From 83fc15094a0da4cabbe76d7ac2f099ca76444287 Mon Sep 17 00:00:00 2001 From: AcuGIS Date: Mon, 25 Mar 2024 10:41:40 +0000 Subject: [PATCH 1/4] Update docs/source/permalinks.rst --- docs/source/permalinks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/permalinks.rst b/docs/source/permalinks.rst index 2e40afb..e25a894 100644 --- a/docs/source/permalinks.rst +++ b/docs/source/permalinks.rst @@ -1,4 +1,4 @@ -Projects +Permalinks ===== .. _installation: From 2b30c240b72446aa75b0e81ba9c614596112da43 Mon Sep 17 00:00:00 2001 From: AcuGIS Date: Mon, 25 Mar 2024 10:43:01 +0000 Subject: [PATCH 2/4] Update docs/source/permalinks.rst --- docs/source/permalinks.rst | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/docs/source/permalinks.rst b/docs/source/permalinks.rst index e25a894..b1ceeaf 100644 --- a/docs/source/permalinks.rst +++ b/docs/source/permalinks.rst @@ -3,32 +3,14 @@ Permalinks .. _installation: -Installation +Usage ------------ -To use Lumache, first install it using pip: + .. image:: images/Permalink-1.png -.. code-block:: console + .. image:: images/Permalink-4.png - (.venv) $ pip install lumache + .. image:: images/Permalinks-2.png -Creating recipes ----------------- - -To retrieve a list of random ingredients, -you can use the ``lumache.get_random_ingredients()`` function: - -.. autofunction:: lumache.get_random_ingredients - -The ``kind`` parameter should be either ``"meat"``, ``"fish"``, -or ``"veggies"``. Otherwise, :py:func:`lumache.get_random_ingredients` -will raise an exception. - -.. autoexception:: lumache.InvalidKindError - -For example: - ->>> import lumache ->>> lumache.get_random_ingredients() -['shells', 'gorgonzola', 'parsley'] + .. image:: images/Permalinks-3.png From 423e37a3edb0301aa3ccbd14a522c2a9d2279b1f Mon Sep 17 00:00:00 2001 From: AcuGIS Date: Mon, 25 Mar 2024 11:03:42 +0000 Subject: [PATCH 3/4] Update docs/source/install.rst --- docs/source/install.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/source/install.rst b/docs/source/install.rst index afc0cc5..c5a461a 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -1,5 +1,5 @@ Install -===== +======= GeoSync is installed using the included installation script. @@ -69,9 +69,8 @@ Be sure to change to email and password once logged in. -=============================================================== -Installing Lizmap Web Client on Linux Debian or Ubuntu -=============================================================== +Manual Installation on Ubuntu 22 +------------ #!/bin/bash -e @@ -152,7 +151,7 @@ CAT_EOF .. note:: In Debian distributions, you can work as administrator (log in with ``root``), without using ``sudo`` on contrary to Ubuntu. Generic Server Configuration with Nginx server -============================================== +------------ This documentation provides an example for configuring a server with the Debian 11 distribution. We assume you have base system installed and updated. From b2a0f6921a0fcee50f7e4cc22d5f44b5047678f8 Mon Sep 17 00:00:00 2001 From: AcuGIS Date: Mon, 25 Mar 2024 11:08:23 +0000 Subject: [PATCH 4/4] Update docs/source/install.rst --- docs/source/install.rst | 44 +++++++---------------------------------- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/docs/source/install.rst b/docs/source/install.rst index c5a461a..bd7e0ec 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -7,7 +7,7 @@ The script will attempt to provision an SSL certificate using Certbot. Ensure that your hostname is properly set. If not set the hostname using 'hostnamectl set-hostname domain.com' -Usage +Basic Install ------------ Clone the repository:: @@ -18,38 +18,14 @@ Change to the GeoSync directory:: cd GeoSync -Execute the script:: +Execute the scripts in order:: - chmod +x /installer/install.sh && ./installer/install.sh + $ ./installer/postgres.sh + $ ./installer/app-install.sh Upon completion, you should see the message below:: - Backend installation is finished. - Create a PostgreSQL database and user with superuser - # create user myuser with password 'mypassword'; - # create database mydatabase with owner myuser; - # alter user myuser superuser; - Go to https://hostname/admin/setup.php to complete installation. - - -Create Database ------------- - -Create a PostgreSQL database and user. The user must be given superuser in order to create local databases:: - - root@lz370:~/domain# su - postgres - postgres@domain:~$ - - postgres@domain:~$ psql - psql (16.2 (Ubuntu 16.2-1.pgdg22.04+1)) - Type "help" for help. - - postgres=# create user myuser with password 'mypassword'; - CREATE ROLE - postgres=# create database mydatabase with owner myuser; - CREATE DATABASE - postgres=# alter user myuser superuser; - ALTER ROLE + Backend installation is finished. Complete Setup @@ -57,16 +33,10 @@ Complete Setup Go to https://domain.com/admin.setup.php to complete the installation. -Once completed you can login using - -Username: admin@admin.com -Password: 1234 - - .. image:: images/geosync.png + .. image:: images/installer.png -Be sure to change to email and password once logged in. - +Populate the required fields with whatever values you want to use. Manual Installation on Ubuntu 22