From e97af043e85abb1d40c5dbfb7dc5c84d855cd750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Wed, 17 Jan 2024 09:13:01 +0100 Subject: [PATCH 1/3] Change: Rearrange order of troubleshooting and workflows for source build Use the same order as in the container page. We want a consistent order of all chapters. --- src/22.4/source-build/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/22.4/source-build/index.md b/src/22.4/source-build/index.md index 02d74bbf..81cc43e6 100644 --- a/src/22.4/source-build/index.md +++ b/src/22.4/source-build/index.md @@ -260,6 +260,6 @@ export NOTUS_VERSION=22.6.0 ```{toctree} :hidden: true -troubleshooting workflows +troubleshooting ``` From 736dd600d4b8b83a5cd38a69589090683934a1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Wed, 17 Jan 2024 09:14:33 +0100 Subject: [PATCH 2/3] Change: Extract Kali troubleshooting into an own chapter Get a consistent page layout for troubleshooting. --- src/22.4/kali/index.md | 7 +++++-- src/22.4/kali/troubleshooting.md | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/22.4/kali/index.md b/src/22.4/kali/index.md index 71f952fd..cc0b383a 100644 --- a/src/22.4/kali/index.md +++ b/src/22.4/kali/index.md @@ -12,8 +12,11 @@ ```{include} /22.4/kali/optional-configs.md ``` -```{include} /22.4/kali/troubleshooting.md +```{include} /22.4/kali/file-system.md ``` -```{include} /22.4/kali/file-system.md +```{toctree} +:hidden: true + +troubleshooting ``` diff --git a/src/22.4/kali/troubleshooting.md b/src/22.4/kali/troubleshooting.md index 02ac46fd..ce7187c3 100644 --- a/src/22.4/kali/troubleshooting.md +++ b/src/22.4/kali/troubleshooting.md @@ -1,3 +1,5 @@ +# Troubleshooting + ## Troubleshooting A Kali Linux Installation Here are some common issues encountered during installation and steps to fix them. From 458f7abb81516a869390bdd6dbf6bfed006c6910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Wed, 17 Jan 2024 09:15:30 +0100 Subject: [PATCH 3/3] Fix: Strip whitespace --- src/22.4/kali/troubleshooting.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/22.4/kali/troubleshooting.md b/src/22.4/kali/troubleshooting.md index ce7187c3..7695ef88 100644 --- a/src/22.4/kali/troubleshooting.md +++ b/src/22.4/kali/troubleshooting.md @@ -12,13 +12,13 @@ If you encounter an error regarding the PostgreSQL version when running `sudo gv ```{code-block} :caption: Error indicating the need to upgrade your PostgreSQL cluster ┌──(dev㉿kali)-[~] -└─$ sudo gvm-setup +└─$ sudo gvm-setup [>] Starting PostgreSQL service [-] ERROR: The default PostgreSQL version (15) is not 16 that is required by libgvmd [-] ERROR: libgvmd needs PostgreSQL 16 to use the port 5432 [-] ERROR: Use pg_upgradecluster to update your PostgreSQL cluster -``` +``` To complete the Greenbone Community Edition setup you must: @@ -34,12 +34,12 @@ To complete the Greenbone Community Edition setup you must: ```{warning} You should consider the contents of your existing PostgreSQL database and complete any backups of that data before you complete the following steps. It's also important to consider that upgrading Kali Linux packages could disrupt the functionality of your system. ``` -You can list all existing PostgreSQL clusters using the command `pg_lsclusters`. +You can list all existing PostgreSQL clusters using the command `pg_lsclusters`. ```{code-block} :caption: Listing the existing PostgreSQL clusters ┌──(dev㉿kali)-[~] -└─$ pg_lsclusters +└─$ pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 15 main 5432 online postgres /var/lib/postgresql/15/main /var/log/postgresql/postgresql-15-main.log 16 main 5433 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log @@ -91,7 +91,7 @@ Now only the new PostgreSQL cluster exists. ```{code-block} :caption: Listing the existing PostgreSQL clusters ┌──(dev㉿kali)-[~] -└─$ pg_lsclusters +└─$ pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 16 main 5433 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log ``` @@ -108,7 +108,7 @@ sudo -u postgres psql -c 'SHOW config_file' ┌──(dev㉿kali)-[~] └─$ sudo -u postgres psql -c 'SHOW config_file' - config_file + config_file ----------------------------------------- /etc/postgresql/16/main/postgresql.conf (1 row) @@ -157,7 +157,7 @@ You can find all available versions of `pg-gvm` using the `apt-cache search` com ```{code-block} :caption: Searching the Linux package repository for all versions of pg-gvm ┌──(dev㉿kali)-[~] -└─$ apt-cache search pg-gvm +└─$ apt-cache search pg-gvm postgresql-16-pg-gvm - PostgreSQL extension for ical object manipulation ``` @@ -210,7 +210,7 @@ In order to complete the database cluster migration, you may also need to update ```bash sudo apt install pgcrypto -``` +``` ### 6. Complete The Greenbone Community Edition Setup