From c792135014f578e34c97813de54e25286d6e7ffc Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 17:33:36 -0600 Subject: [PATCH 01/21] Update installation-manual.md: Change path ui/build to ui/dist --- src/en/docs/installation-manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/docs/installation-manual.md b/src/en/docs/installation-manual.md index fdae4aa..e6dc4f9 100644 --- a/src/en/docs/installation-manual.md +++ b/src/en/docs/installation-manual.md @@ -73,7 +73,7 @@ $ npm install $ npm run build ``` -This builds the UI source code and saves it in the `ui/build/` directory. +This builds the UI source code and saves it in the `ui/dist/` directory. ### Build the API back-end @@ -91,7 +91,7 @@ Make a new directory and move the needed files to it. ```shell $ cd /opt/photoview $ mkdir app -$ cp -r ui/build/ app/ui/ +$ cp -r ui/dist/ app/ui/ $ cp api/photoview app/photoview $ cp -r api/data/ app/data/ ``` From 10c070d1c99d8811bfd829351fd81799f831a82d Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 17:34:08 -0600 Subject: [PATCH 02/21] Update installation-systemd.md: Change path ui/build to ui/dist --- src/en/docs/installation-systemd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/en/docs/installation-systemd.md b/src/en/docs/installation-systemd.md index 71423fe..6f8b9c5 100644 --- a/src/en/docs/installation-systemd.md +++ b/src/en/docs/installation-systemd.md @@ -56,7 +56,7 @@ $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.tmpfiles" "/usr/lib/tmp $ sudo install -d "/var/cache/photoview/media_cache" # The next line is if you plan to use `sqlite` $ sudo install -d "/var/lib/photoview" -$ cd /opt/photoview/ui/build +$ cd /opt/photoview/ui/dist $ sudo find * -type f -exec install -Dm0644 "{}" "/usr/share/webapps/photoview-ui/{}" \; $ cd /opt/photoview/api $ sudo install -Dm0755 -t "/usr/lib/photoview" "/opt/photoview/api/photoview" From f07e3f48683ebbe59e3ac1706095c232c1c3e942 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 17:39:50 -0600 Subject: [PATCH 03/21] Update installation-manual.md: add zlib1g-dev to dependencies (required by libheif) --- src/en/docs/installation-manual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/en/docs/installation-manual.md b/src/en/docs/installation-manual.md index e6dc4f9..70f27c7 100644 --- a/src/en/docs/installation-manual.md +++ b/src/en/docs/installation-manual.md @@ -27,7 +27,7 @@ $ sudo add-apt-repository ppa:strukturag/libde265 # Install dependencies required to build and run Photoview $ sudo apt install libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-turbo8-dev build-essential \ - libdlib19 libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-dev libheif-dev pkg-config gpg + libdlib19 libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-dev libheif-dev pkg-config gpg zlib1g-dev ``` Install Golang by following the instructions for Linux from their [Download and install Go](https://golang.org/doc/install) page, the steps should be something like the following. From 77ab1b00377cb4472ab2df8272bf100f5c235620 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 17:50:48 -0600 Subject: [PATCH 04/21] Update installation-manual.md: Add note referring to systemd instructions in copy files section --- src/en/docs/installation-manual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/en/docs/installation-manual.md b/src/en/docs/installation-manual.md index 70f27c7..3955702 100644 --- a/src/en/docs/installation-manual.md +++ b/src/en/docs/installation-manual.md @@ -86,6 +86,8 @@ This builds the server executable to `api/photoview`. ### Copy needed files +**Note**: To run Photoview as a `systemd` service, copy files as outlined in the [systemd installation guide](/{{ locale }}/docs/installation-systemd/). Otherwise, follow the steps here. + Make a new directory and move the needed files to it. ```shell From 3279a351ec859776a0395fc640d87e7741845ca6 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 17:51:20 -0600 Subject: [PATCH 05/21] Update installation-systemd.md: Correct typos --- src/en/docs/installation-systemd.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/docs/installation-systemd.md b/src/en/docs/installation-systemd.md index 6f8b9c5..df5a825 100644 --- a/src/en/docs/installation-systemd.md +++ b/src/en/docs/installation-systemd.md @@ -9,8 +9,8 @@ You can optionally use `systemd` to manage photoview and start the program at bo It also allows the program to run as its own system user, enhancing the security of the process. -To get started, follow the [Manual Setup Installation guild](/{{ locale }}/docs/installation-manual/). -When you get to the _Copy needed files section_, replace those steps with the steps listed below. +To get started, follow the [Manual Setup Installation guide](/{{ locale }}/docs/installation-manual/). +When you get to the _Copy needed files_ section, replace those steps with the steps listed below. ## Using with `systemd` From 9159f240c982c9b3c8b093a73144756dd9e7ff2e Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 18:19:15 -0600 Subject: [PATCH 06/21] Update installation-manual.md: Fix typo --- src/en/docs/installation-manual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/en/docs/installation-manual.md b/src/en/docs/installation-manual.md index 3955702..1bc04bc 100644 --- a/src/en/docs/installation-manual.md +++ b/src/en/docs/installation-manual.md @@ -98,7 +98,7 @@ $ cp api/photoview app/photoview $ cp -r api/data/ app/data/ ``` -## Setup database +## Set up database > It's highly recommended to configure a full database, > but Sqlite is also supported though it might be substantially slower on big media libraries. From c2934077003095f9e67a14ee842c63195d6bd123 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 18:19:56 -0600 Subject: [PATCH 07/21] Update installation-systemd.md: Add step to create photoview user and group --- src/en/docs/installation-systemd.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/en/docs/installation-systemd.md b/src/en/docs/installation-systemd.md index df5a825..da7c8fc 100644 --- a/src/en/docs/installation-systemd.md +++ b/src/en/docs/installation-systemd.md @@ -29,6 +29,8 @@ If you do so, the `photoview.service` and `photoview.tmpfiles` will need to be a > Reminder: These steps replace [Copy needed files](#copy-needed-files) from the manual installation guide. +1. Create the `photoview` user and group + - `$ sudo adduser photoview --system --group --no-create-home` 1. Copy `systemd` files: - `systemd/photoview.service` to `/etc/systemd/system/multi-user.target/photoview.service` - `systemd/photoview.sysusers.conf` to `/usr/lib/sysusers.d/photoview.conf` @@ -49,6 +51,7 @@ If you do so, the `photoview.service` and `photoview.tmpfiles` will need to be a A synopsis of the previous steps by example: ```shell +$ sudo adduser photoview --system --group --no-create-home $ cd /opt/photoview $ sudo install -Dm0644 -t "/usr/lib/systemd/system" "/opt/photoview/systemd/photoview.service" $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.sysusers.conf" "/usr/lib/sysusers.d/photoview.conf" From 3bc21e9592ee898fc1a359a4802526149a4d7249 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 18:31:27 -0600 Subject: [PATCH 08/21] Update installation-systemd.md: Add chown commands to synopsis of steps --- src/en/docs/installation-systemd.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/en/docs/installation-systemd.md b/src/en/docs/installation-systemd.md index da7c8fc..cdb756a 100644 --- a/src/en/docs/installation-systemd.md +++ b/src/en/docs/installation-systemd.md @@ -57,8 +57,10 @@ $ sudo install -Dm0644 -t "/usr/lib/systemd/system" "/opt/photoview/systemd/phot $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.sysusers.conf" "/usr/lib/sysusers.d/photoview.conf" $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.tmpfiles" "/usr/lib/tmpfiles.d/photoview.conf" $ sudo install -d "/var/cache/photoview/media_cache" -# The next line is if you plan to use `sqlite` +$ sudo chown -R photoview:photoview /var/cache/photoview +# The next two lines are if you plan to use `sqlite` $ sudo install -d "/var/lib/photoview" +$ sudo chown -R photoview:photoview /var/lib/photoview $ cd /opt/photoview/ui/dist $ sudo find * -type f -exec install -Dm0644 "{}" "/usr/share/webapps/photoview-ui/{}" \; $ cd /opt/photoview/api From 26b01c5b184f7f831d8ada6b7ab48fb76b4fbed0 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 18:32:43 -0600 Subject: [PATCH 09/21] Update installation-systemd.md: Move steps re sqlite to end of synopsis for clarity --- src/en/docs/installation-systemd.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/docs/installation-systemd.md b/src/en/docs/installation-systemd.md index cdb756a..3959256 100644 --- a/src/en/docs/installation-systemd.md +++ b/src/en/docs/installation-systemd.md @@ -58,9 +58,6 @@ $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.sysusers.conf" "/usr/li $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.tmpfiles" "/usr/lib/tmpfiles.d/photoview.conf" $ sudo install -d "/var/cache/photoview/media_cache" $ sudo chown -R photoview:photoview /var/cache/photoview -# The next two lines are if you plan to use `sqlite` -$ sudo install -d "/var/lib/photoview" -$ sudo chown -R photoview:photoview /var/lib/photoview $ cd /opt/photoview/ui/dist $ sudo find * -type f -exec install -Dm0644 "{}" "/usr/share/webapps/photoview-ui/{}" \; $ cd /opt/photoview/api @@ -68,6 +65,9 @@ $ sudo install -Dm0755 -t "/usr/lib/photoview" "/opt/photoview/api/photoview" $ sudo ln -s /usr/lib/photoview/photoview /usr/bin/photoview $ sudo find data -type f -exec install -Dm0644 "{}" "/usr/lib/photoview/{}" \; $ sudo install -Dm0644 "/opt/photoview/api/example.env" "/etc/photoview.env" +# The next two lines are if you plan to use `sqlite` +$ sudo install -d "/var/lib/photoview" +$ sudo chown -R photoview:photoview /var/lib/photoview ``` ### Using the `systemd` unit file From 0df9c0ff52fe63cd09251c9336d90f554176b9f6 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 18:36:57 -0600 Subject: [PATCH 10/21] Update installation-manual.md: Change format of note under Copy needed files section to match other notes in documentation --- src/en/docs/installation-manual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/en/docs/installation-manual.md b/src/en/docs/installation-manual.md index 1bc04bc..8f0522f 100644 --- a/src/en/docs/installation-manual.md +++ b/src/en/docs/installation-manual.md @@ -86,7 +86,7 @@ This builds the server executable to `api/photoview`. ### Copy needed files -**Note**: To run Photoview as a `systemd` service, copy files as outlined in the [systemd installation guide](/{{ locale }}/docs/installation-systemd/). Otherwise, follow the steps here. +> Note: To run Photoview as a `systemd` service, copy files as outlined in the [systemd installation guide](/{{ locale }}/docs/installation-systemd/). Otherwise, follow the steps here. Make a new directory and move the needed files to it. From e32921f38c5ae855bc4f8de2e2d6bae2d39c11e0 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 18:40:40 -0600 Subject: [PATCH 11/21] Update installation-manual.md: Add note with env file location in Configure Photoview section --- src/en/docs/installation-manual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/en/docs/installation-manual.md b/src/en/docs/installation-manual.md index 8f0522f..d9b4ae5 100644 --- a/src/en/docs/installation-manual.md +++ b/src/en/docs/installation-manual.md @@ -129,6 +129,8 @@ We will use that to configure Photoview. Copy the `api/example.env` file to the output directory, and name it `.env`. +> Note: If running Photoview as a `systemd` service, the file containing environment variables is `/etc/photoview.env` and is created in the steps outlined in the [systemd installation guide](/{{ locale }}/docs/installation-systemd/). + ```shell $ cp api/example.env app/.env ``` From 54a71df2539aa6e572b07893015892c0588e075f Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:04:11 -0600 Subject: [PATCH 12/21] Update installation-manual.md: Add instruction to comment ReadWritePaths line in photoview.service if not using sqlite --- src/en/docs/installation-systemd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/en/docs/installation-systemd.md b/src/en/docs/installation-systemd.md index 3959256..fabb28d 100644 --- a/src/en/docs/installation-systemd.md +++ b/src/en/docs/installation-systemd.md @@ -35,7 +35,7 @@ If you do so, the `photoview.service` and `photoview.tmpfiles` will need to be a - `systemd/photoview.service` to `/etc/systemd/system/multi-user.target/photoview.service` - `systemd/photoview.sysusers.conf` to `/usr/lib/sysusers.d/photoview.conf` - `systemd/photoview.tmpfiles` to `/usr/lib/tmpfiles.d/photoview.conf` - > If you do not plan to use `sqlite`, remove the 2nd line from `systemd/photoview.tmpfiles` before copying. + > If you do not plan to use `sqlite`, remove the 2nd line from `systemd/photoview.tmpfiles` and comment out the line `ReadWritePaths=/var/lib/photoview` in `systemd/photoview.service` before copying. 1. Make the directories where the program files will be placed : > Note: The `install` command, as demonstrated below, creates these required directories for you. - `/usr/share/webapps/photoview-ui` From 910a11ea13237843493907000aead296eeb5568f Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:08:13 -0600 Subject: [PATCH 13/21] Update installation-systemd.md: Add instruction to comment ReadWritePaths line in photoview.service if not using sqlite --- src/en/docs/installation-systemd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/en/docs/installation-systemd.md b/src/en/docs/installation-systemd.md index 3959256..fabb28d 100644 --- a/src/en/docs/installation-systemd.md +++ b/src/en/docs/installation-systemd.md @@ -35,7 +35,7 @@ If you do so, the `photoview.service` and `photoview.tmpfiles` will need to be a - `systemd/photoview.service` to `/etc/systemd/system/multi-user.target/photoview.service` - `systemd/photoview.sysusers.conf` to `/usr/lib/sysusers.d/photoview.conf` - `systemd/photoview.tmpfiles` to `/usr/lib/tmpfiles.d/photoview.conf` - > If you do not plan to use `sqlite`, remove the 2nd line from `systemd/photoview.tmpfiles` before copying. + > If you do not plan to use `sqlite`, remove the 2nd line from `systemd/photoview.tmpfiles` and comment out the line `ReadWritePaths=/var/lib/photoview` in `systemd/photoview.service` before copying. 1. Make the directories where the program files will be placed : > Note: The `install` command, as demonstrated below, creates these required directories for you. - `/usr/share/webapps/photoview-ui` From 0bd3955e5c776f01b9e271d607de8a8f96f0256f Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:19:34 -0600 Subject: [PATCH 14/21] Update installation-systemd.md: Change path ui/build to ui/dist --- src/fr/docs/installation-systemd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/docs/installation-systemd.md b/src/fr/docs/installation-systemd.md index 65239fe..04fb5db 100644 --- a/src/fr/docs/installation-systemd.md +++ b/src/fr/docs/installation-systemd.md @@ -57,7 +57,7 @@ $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.tmpfiles" "/usr/lib/tmp $ sudo install -d "/var/cache/photoview/media_cache" # The next line is if you plan to use `sqlite` $ sudo install -d "/var/lib/photoview" -$ cd /opt/photoview/ui/build +$ cd /opt/photoview/ui/dist $ sudo find * -type f -exec install -Dm0644 "{}" "/usr/share/webapps/photoview-ui/{}" \; $ cd /opt/photoview/api $ sudo install -Dm0755 -t "/usr/lib/photoview" "/opt/photoview/api/photoview" From b5cbad308c63068be739e7242230b16e718c1fea Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:24:09 -0600 Subject: [PATCH 15/21] Update installation-systemd.md: Add step to create photoview user and group --- src/fr/docs/installation-systemd.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fr/docs/installation-systemd.md b/src/fr/docs/installation-systemd.md index 04fb5db..07400b1 100644 --- a/src/fr/docs/installation-systemd.md +++ b/src/fr/docs/installation-systemd.md @@ -30,6 +30,8 @@ Il faudra alors faire attention de répercuter ces changement dans les variables > Rappel : Ces étapes remplacent celles de la rubrique _Copiez UI et back-end au bon endroit_ du guide d'installation manuelle. +1. Créez l'utilisateur et le groupe `photoview`: + - `$ sudo adduser photoview --system --group --no-create-home` 1. Copiez les fichiers `systemd`: - `systemd/photoview.service` vers `/etc/systemd/system/multi-user.target/photoview.service` - `systemd/photoview.sysusers.conf` vers `/usr/lib/sysusers.d/photoview.conf` @@ -50,6 +52,7 @@ Il faudra alors faire attention de répercuter ces changement dans les variables Exemple de ce que donnent ces étapes : ```shell +$ sudo adduser photoview --system --group --no-create-home $ cd /opt/photoview $ sudo install -Dm0644 -t "/usr/lib/systemd/system" "/opt/photoview/systemd/photoview.service" $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.sysusers.conf" "/usr/lib/sysusers.d/photoview.conf" From efb48c094a606c21bdfe4e39cb8911b4f5efe591 Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:31:47 -0600 Subject: [PATCH 16/21] Update installation-systemd.md: Add chown commands to synopsis of steps and move steps re sqlite to end for clarity --- src/fr/docs/installation-systemd.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fr/docs/installation-systemd.md b/src/fr/docs/installation-systemd.md index 07400b1..afdaaad 100644 --- a/src/fr/docs/installation-systemd.md +++ b/src/fr/docs/installation-systemd.md @@ -58,8 +58,7 @@ $ sudo install -Dm0644 -t "/usr/lib/systemd/system" "/opt/photoview/systemd/phot $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.sysusers.conf" "/usr/lib/sysusers.d/photoview.conf" $ sudo install -Dm0644 "/opt/photoview/systemd/photoview.tmpfiles" "/usr/lib/tmpfiles.d/photoview.conf" $ sudo install -d "/var/cache/photoview/media_cache" -# The next line is if you plan to use `sqlite` -$ sudo install -d "/var/lib/photoview" +$ sudo chown -R photoview:photoview /var/cache/photoview $ cd /opt/photoview/ui/dist $ sudo find * -type f -exec install -Dm0644 "{}" "/usr/share/webapps/photoview-ui/{}" \; $ cd /opt/photoview/api @@ -67,6 +66,9 @@ $ sudo install -Dm0755 -t "/usr/lib/photoview" "/opt/photoview/api/photoview" $ sudo ln -s /usr/lib/photoview/photoview /usr/bin/photoview $ sudo find data -type f -exec install -Dm0644 "{}" "/usr/lib/photoview/{}" \; $ sudo install -Dm0644 "/opt/photoview/api/example.env" "/etc/photoview.env" +# Seulement si vous utilisez `sqlite`: +$ sudo install -d "/var/lib/photoview" +$ sudo chown -R photoview:photoview /var/lib/photoview ``` ### Utiliser le fichier `systemd` From 3e29a9644ab9e4a7852bccc5464aa823afe0dbca Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:33:28 -0600 Subject: [PATCH 17/21] Update installation-systemd.md: Add instruction to remove ReadWritePaths line in photoview.service if not using sqlite --- src/fr/docs/installation-systemd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/docs/installation-systemd.md b/src/fr/docs/installation-systemd.md index afdaaad..0cfbfb1 100644 --- a/src/fr/docs/installation-systemd.md +++ b/src/fr/docs/installation-systemd.md @@ -36,7 +36,7 @@ Il faudra alors faire attention de répercuter ces changement dans les variables - `systemd/photoview.service` vers `/etc/systemd/system/multi-user.target/photoview.service` - `systemd/photoview.sysusers.conf` vers `/usr/lib/sysusers.d/photoview.conf` - `systemd/photoview.tmpfiles` vers `/usr/lib/tmpfiles.d/photoview.conf` - > Si vous n'utilisez pas `sqlite`, supprimez la 2ème ligne de `systemd/photoview.tmpfiles` avant la copie. + > Si vous n'utilisez pas `sqlite`, supprimez la 2ème ligne de `systemd/photoview.tmpfiles` et la ligne `ReadWritePaths=/var/lib/photoview` de `systemd/photoview.service` avant la copie. 1. Créez les répertoires dans lesquels les fichiers du programme seront placés : > A noter : la commande `install`, comme expliqué ci-dessous, crée les répertoires requis. - `/usr/share/webapps/photoview-ui` From 9ff83131f48aa55ac3a7cdde3c93c03daf1da0be Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:34:23 -0600 Subject: [PATCH 18/21] Update installation-manual.md: Change path ui/build to ui/dist --- src/fr/docs/installation-manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/docs/installation-manual.md b/src/fr/docs/installation-manual.md index 3ec5a98..dfde29c 100644 --- a/src/fr/docs/installation-manual.md +++ b/src/fr/docs/installation-manual.md @@ -72,7 +72,7 @@ $ npm install $ npm run build ``` -Cela build le code source de l'UI et l'enregistre dans le répertoire `ui/build/`. +Cela build le code source de l'UI et l'enregistre dans le répertoire `ui/dist/`. ### Buildez l'API back-end @@ -90,7 +90,7 @@ Créez un nouveau répertoire et deplacez les fichiers créés dedans. ```shell $ cd /opt/photoview $ mkdir app -$ cp -r ui/build/ app/ui/ +$ cp -r ui/dist/ app/ui/ $ cp api/photoview app/photoview $ cp -r api/data/ app/data/ ``` From 9c6c5be4eec64fff9abffa4825a48d7ef370e1fc Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:34:52 -0600 Subject: [PATCH 19/21] Update installation-manual.md: add zlib1g-dev to dependencies (required by libheif) --- src/fr/docs/installation-manual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/docs/installation-manual.md b/src/fr/docs/installation-manual.md index dfde29c..96fc37d 100644 --- a/src/fr/docs/installation-manual.md +++ b/src/fr/docs/installation-manual.md @@ -26,7 +26,7 @@ $ sudo add-apt-repository ppa:strukturag/libde265 # Installation des dépendances nécessaires pour Photoview $ sudo apt install libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-turbo8-dev build-essential \ - libdlib19 libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-dev libheif-dev pkg-config gpg + libdlib19 libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-dev libheif-dev pkg-config gpg zlib1g-dev ``` Installez ensuite Golang en suivant les instructions pour Linux depuis leur page [Download and install Go](https://golang.org/doc/install), cela devrait ressembler aux commandes suivantes : From 2cb59ce3ec26bd3405e5ab1208729f0dd70a5b5c Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:36:49 -0600 Subject: [PATCH 20/21] Update installation-manual.md: Change Node 16 to Node 18 --- src/en/docs/installation-manual.md | 4 ++-- src/fr/docs/installation-manual.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/en/docs/installation-manual.md b/src/en/docs/installation-manual.md index d9b4ae5..d6d357d 100644 --- a/src/en/docs/installation-manual.md +++ b/src/en/docs/installation-manual.md @@ -48,10 +48,10 @@ $ go version # Expected output: go version go1.16 linux/amd64 ``` -Now install Node 16 and NPM if you've not done so already (it installs npm automatically) +Now install Node 18 and NPM if you've not done so already (it installs npm automatically) ```shell -$ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - +$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - $ sudo apt install nodejs ``` diff --git a/src/fr/docs/installation-manual.md b/src/fr/docs/installation-manual.md index 96fc37d..ae1575a 100644 --- a/src/fr/docs/installation-manual.md +++ b/src/fr/docs/installation-manual.md @@ -47,10 +47,10 @@ $ go version # Expected output: go version go1.16 linux/amd64 ``` -Maintenant, installez Node 16 et NPM si vous ne les avez pas déjà installés sur votre système. +Maintenant, installez Node 18 et NPM si vous ne les avez pas déjà installés sur votre système. ```shell -$ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - +$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - $ sudo apt install nodejs ``` From fac115f399cb67a7fe4b58cc5bf6eedd548d095c Mon Sep 17 00:00:00 2001 From: Colin-tr Date: Sat, 13 Jul 2024 19:44:13 -0600 Subject: [PATCH 21/21] Update installation-manual.md: Add note referring to systemd instructions in copy files section --- src/fr/docs/installation-manual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fr/docs/installation-manual.md b/src/fr/docs/installation-manual.md index ae1575a..5368f79 100644 --- a/src/fr/docs/installation-manual.md +++ b/src/fr/docs/installation-manual.md @@ -85,6 +85,8 @@ Cela build l'executable côté serveur et l'enregistre dans `api/photoview`. ### Copiez UI et back-end au bon endroit +> Si vous choisissez d'utiliser `systemd`, suivez le [Utilisation avec systemd](/{{ locale }}/docs/installation-systemd/). + Créez un nouveau répertoire et deplacez les fichiers créés dedans. ```shell