From 8d4bb3881dbb702f08f830417a24b2b81d1a2678 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 11 Mar 2021 23:15:31 +0100 Subject: Some more articles reformatting --- content/blog/debian/error-during-signature-verification.md | 3 +-- content/blog/debian/force-package-removal.md | 3 +-- content/blog/debian/no-public-key-error.md | 3 +-- content/blog/docker/cleaning.md | 1 - content/blog/docker/docker-compose-bridge.md | 1 - content/blog/docker/migrate-data-volume.md | 1 - content/blog/docker/shell-usage-in-dockerfile.md | 1 - content/blog/gentoo/get-zoom-to-work.md | 14 +++++++------- content/blog/gentoo/steam.md | 10 ++++------ content/blog/kubernetes/get_key_and_certificae.md | 11 ++++++++++- content/blog/kubernetes/pg_dump_restore.md | 4 +++- content/blog/miscellaneous/bacula-bareos.md | 8 +++++--- content/blog/miscellaneous/bash-tcp-client.md | 10 ++++++---- content/blog/miscellaneous/boot-from-initramfs.md | 14 ++++++++++---- content/blog/miscellaneous/building-rpms.md | 9 ++++----- content/blog/miscellaneous/clean-old-centos-kernels.md | 13 ++++++++++--- content/blog/miscellaneous/debug-disk-usage-postgresql.md | 6 +++--- content/blog/miscellaneous/etc-update-alpine.md | 11 ++++++----- content/blog/miscellaneous/fstab.md | 12 +++++++++--- 19 files changed, 80 insertions(+), 55 deletions(-) (limited to 'content') diff --git a/content/blog/debian/error-during-signature-verification.md b/content/blog/debian/error-during-signature-verification.md index 67ef11e..d63bd2e 100644 --- a/content/blog/debian/error-during-signature-verification.md +++ b/content/blog/debian/error-during-signature-verification.md @@ -3,8 +3,7 @@ title: "Error occured during the signature verification" date: 2015-02-27 description: Fixing the "Error occured during the signature verification" tags: - - debian - - linux + - Debian --- ## How to fix diff --git a/content/blog/debian/force-package-removal.md b/content/blog/debian/force-package-removal.md index fedeee2..d708cf7 100644 --- a/content/blog/debian/force-package-removal.md +++ b/content/blog/debian/force-package-removal.md @@ -3,8 +3,7 @@ title: "Force package removal" date: 2015-01-27 description: How to force the removal of a package tags: - - debian - - linux + - Debian --- ## How to force the removal of a package diff --git a/content/blog/debian/no-public-key-error.md b/content/blog/debian/no-public-key-error.md index a16938e..1e5720b 100644 --- a/content/blog/debian/no-public-key-error.md +++ b/content/blog/debian/no-public-key-error.md @@ -3,8 +3,7 @@ title: "Fix the no public key available error" date: 2016-01-27 description: How to fix this common debian error when using non official repositories tags: - - debian - - linux + - Debian --- ## How to fix diff --git a/content/blog/docker/cleaning.md b/content/blog/docker/cleaning.md index dc33257..7326f94 100644 --- a/content/blog/docker/cleaning.md +++ b/content/blog/docker/cleaning.md @@ -4,7 +4,6 @@ date: 2018-01-29 description: How to retrieve storage space by cleaning a docker host tags: - docker - - linux --- ## The command diff --git a/content/blog/docker/docker-compose-bridge.md b/content/blog/docker/docker-compose-bridge.md index f460c6c..8dffe1f 100644 --- a/content/blog/docker/docker-compose-bridge.md +++ b/content/blog/docker/docker-compose-bridge.md @@ -4,7 +4,6 @@ date: 2018-09-25 description: How to use a predefined bridge with docker compose tags: - docker - - linux --- ## The problem diff --git a/content/blog/docker/migrate-data-volume.md b/content/blog/docker/migrate-data-volume.md index 0389a47..9ed4e5c 100644 --- a/content/blog/docker/migrate-data-volume.md +++ b/content/blog/docker/migrate-data-volume.md @@ -4,7 +4,6 @@ date: 2018-01-30 description: How to migrate a data volume between two hosts tags: - docker - - linux --- ## The command diff --git a/content/blog/docker/shell-usage-in-dockerfile.md b/content/blog/docker/shell-usage-in-dockerfile.md index 5314b33..48130ee 100644 --- a/content/blog/docker/shell-usage-in-dockerfile.md +++ b/content/blog/docker/shell-usage-in-dockerfile.md @@ -4,7 +4,6 @@ date: 2019-02-04 description: How to use a proper shell in a dockerfile tags: - docker - - linux --- ## The problem diff --git a/content/blog/gentoo/get-zoom-to-work.md b/content/blog/gentoo/get-zoom-to-work.md index 6e4697e..c2124ae 100644 --- a/content/blog/gentoo/get-zoom-to-work.md +++ b/content/blog/gentoo/get-zoom-to-work.md @@ -1,13 +1,14 @@ --- title: "Get zoom to work" -linkTitle: "Get zoom to work" date: 2018-01-02 -description: > - How to get the zoom video conferencing tool to work on gentoo +description: How to get the zoom video conferencing tool to work on gentoo +tags: + - gentoo --- -The zoom video conderencing tool works on gentoo, but since it is not integrated in a desktop environment on my machine (I am running an i3 window manager) I cannot authenticate on the google corporate domain where I work. Here is how to work -around that. +## The problem + +The zoom video conderencing tool works on gentoo, but since it is not integrated in a desktop environment on my machine (I am running an i3 window manager) I cannot authenticate on the google corporate domain where I work. Here is how to work around that. ## Running the client @@ -17,8 +18,7 @@ around that. ## Working around the "zoommtg address not understood" error -When you try to authenticate you will have your web browser pop up with a link it cannot interpret. You need to get the `zoommtg://.*` thing and run it in another ZoomLauncher (do not close the zoom process that spawned this authentication link -or the authentication will fail : +When you try to authenticate you will have your web browser pop up with a link it cannot interpret. You need to get the `zoommtg://.*` thing and run it in another ZoomLauncher (do not close the zoom process that spawned this authentication link or the authentication will fail : {{< highlight yaml >}} ./ZoomLauncher 'zoommtg://zoom.us/google?code=XXXXXXXX' {{< /highlight >}} diff --git a/content/blog/gentoo/steam.md b/content/blog/gentoo/steam.md index b952205..4793525 100644 --- a/content/blog/gentoo/steam.md +++ b/content/blog/gentoo/steam.md @@ -1,13 +1,11 @@ --- title: "Steam" -linkTitle: "Steam" date: 2019-02-16 -description: > - How to make steam work seamlessly on gentoo with a chroot +description: How to make steam work seamlessly on gentoo with a chroot +tags: + - gentoo --- -I am not using a multilib profile on gentoo (I use amd64 only everywhere), so when the time came to install steam I had to get a little creative. Overall I believe this is the perfect -way to install and use steam as it self contains it cleanly while not limiting the functionalities. In particular sound works, as does the hardware acceleration in games. I tried to -achieve that with containers but didn't quite made it work as well as this chroot setup. +I am not using a multilib profile on gentoo (I use amd64 only everywhere), so when the time came to install steam I had to get a little creative. Overall I believe this is the perfect way to install and use steam as it self contains it cleanly while not limiting the functionalities. In particular sound works, as does the hardware acceleration in games. I tried to achieve that with containers but didn't quite made it work as well as this chroot setup. [Here is the link to the full article describing how I achieved that.]({{< relref "/docs/gentoo/steam.md" >}}) diff --git a/content/blog/kubernetes/get_key_and_certificae.md b/content/blog/kubernetes/get_key_and_certificae.md index c66cac8..247446b 100644 --- a/content/blog/kubernetes/get_key_and_certificae.md +++ b/content/blog/kubernetes/get_key_and_certificae.md @@ -1,9 +1,18 @@ --- title: "Get tls certificate and key from a kubernetes secret" date: 2020-08-06 +description: How to extract a tls certificate and keys from a kubernetes secret +tags: + - kubernetes --- -My use case is to deploy a wildcard certificate that was previously handled by an acme.sh on my legacy lxd containers. Since moving to kubernetes parts of my services I have been using cert-manager to issue letsencrypt certificates. Since I am not done yet I looked into a way of getting a certificate out of kubernetes. Assuming we are working with a secret named `wild.adyxax.org-cert` and our namespace is named `legacy` : +## The problem + +My use case is to deploy a wildcard certificate that was previously handled by an acme.sh on a legacy lxd containers. Since moving to kubernetes parts of my services I have been using cert-manager to issue letsencrypt certificates for the cluster's ingresses. Since I am not done migrating everything yet I need a way of getting a certificate out of kubernetes. + +## The solution + +Assuming we are working with a secret named `wild.adyxax.org-cert` and our namespace is named `legacy` : {{< highlight sh >}} kubectl -n legacy get secret wild.adyxax.org-cert -o json -o=jsonpath="{.data.tls\.crt}" | base64 -d > fullchain.cer kubectl -n legacy get secret wild.adyxax.org-cert -o json -o=jsonpath="{.data.tls\.key}" | base64 -d > adyxax.org.key diff --git a/content/blog/kubernetes/pg_dump_restore.md b/content/blog/kubernetes/pg_dump_restore.md index 9aafb63..fe99d06 100644 --- a/content/blog/kubernetes/pg_dump_restore.md +++ b/content/blog/kubernetes/pg_dump_restore.md @@ -1,7 +1,9 @@ --- title: "Dump and restore a postgresql database on kubernetes" -linkTitle: "Dump and restore a postgresql database" date: 2020-06-25 +description: How to dump and restore a postgresql database running on kubernetes +tags: + - kubernetes --- ## Dumping diff --git a/content/blog/miscellaneous/bacula-bareos.md b/content/blog/miscellaneous/bacula-bareos.md index a5fd0be..19111c3 100644 --- a/content/blog/miscellaneous/bacula-bareos.md +++ b/content/blog/miscellaneous/bacula-bareos.md @@ -1,11 +1,13 @@ --- title: "Some bacula/bareos commands" -linkTitle: "Some bacula/bareos commands" date: 2018-01-10 -description: > - Some bacula/bareos commands +description: some usefull commands when dealing with bacula or bareos +tags: + - backups --- +## Introduction + Bacula is a backup software, bareos is a fork of it. Here are some tips and solutions to specific problems. ## Adjust an existing volume for pool configuration changes diff --git a/content/blog/miscellaneous/bash-tcp-client.md b/content/blog/miscellaneous/bash-tcp-client.md index f10f22b..cfcd1df 100644 --- a/content/blog/miscellaneous/bash-tcp-client.md +++ b/content/blog/miscellaneous/bash-tcp-client.md @@ -1,12 +1,14 @@ --- title: "Bash tcp client" -linkTitle: "Bash tcp client" date: 2018-03-21 -description: > - Bash tcp client +description: Bash tcp client +tags: + - simple utilities --- -There are somea fun toys in bash. I would not rely on it for a production script, but here is one such things : +## Having some fun with bash + +There are some fun toys in bash. I would not rely on it for a production script, but here is one such things : {{< highlight sh >}} exec 5<>/dev/tcp/10.1.0.254/8080 diff --git a/content/blog/miscellaneous/boot-from-initramfs.md b/content/blog/miscellaneous/boot-from-initramfs.md index 3d5c55e..df740b6 100644 --- a/content/blog/miscellaneous/boot-from-initramfs.md +++ b/content/blog/miscellaneous/boot-from-initramfs.md @@ -1,12 +1,18 @@ --- title: "Boot from initramfs shell" -linkTitle: "Boot from initramfs shell" date: 2014-01-24 -description: > - Boot from initramfs shell +description: How to finish booting from an initramfs shell +tags: + - Debian --- -I had to finish booting from an initramfs shell, here is how I used `switch_root` to do so : +## The problem + +Sometimes, your linux machine can get stuck while booting and drop you into an initramfs shell. + +## The solution + +All initramfs are potentially different, but almost always feature busybox and common mechanisms. Recently I had to finish booting from an initramfs shell, here is how I used `switch_root` to do so : {{< highlight sh >}} lvm vgscan diff --git a/content/blog/miscellaneous/building-rpms.md b/content/blog/miscellaneous/building-rpms.md index 99667eb..1b3bfec 100644 --- a/content/blog/miscellaneous/building-rpms.md +++ b/content/blog/miscellaneous/building-rpms.md @@ -1,13 +1,12 @@ --- title: "Building rpm packages" -linkTitle: "Building rpm packages" date: 2016-02-22 -description: > - Building rpm packages +description: How to build locally an rpm package +tags: + - Centos + - rhel --- -Here is how to build locally an rpm package. Tested at the time on a centos 7. - ## Setup your environment First of all, you have to use a non-root account. diff --git a/content/blog/miscellaneous/clean-old-centos-kernels.md b/content/blog/miscellaneous/clean-old-centos-kernels.md index eb49269..f8894ec 100644 --- a/content/blog/miscellaneous/clean-old-centos-kernels.md +++ b/content/blog/miscellaneous/clean-old-centos-kernels.md @@ -1,11 +1,18 @@ --- title: "Clean old centos kernels" -linkTitle: "Clean old centos kernels" date: 2016-02-03 -description: > - Clean old centos kernels +description: Clean old centos kernels +tags: + - Centos + - rhel --- +## The problem + +Centos kernels tend to accumulate unless you clean them regularly. + +## The solution + There is a setting in `/etc/yum.conf` that does exactly that : `installonly_limit=`. The value of this setting is the number of older kernels that are kept when a new kernel is installed by yum. If the number of installed kernels becomes greater than this, the oldest one gets removed at the same time a new one is installed. This cleaning can also be done manually with a command that belongs to the yum-utils package : `package-cleanup –oldkernels –count=2` diff --git a/content/blog/miscellaneous/debug-disk-usage-postgresql.md b/content/blog/miscellaneous/debug-disk-usage-postgresql.md index 827d69f..1826c60 100644 --- a/content/blog/miscellaneous/debug-disk-usage-postgresql.md +++ b/content/blog/miscellaneous/debug-disk-usage-postgresql.md @@ -1,9 +1,9 @@ --- title: "Investigate postgresql disk usage" -linkTitle: "Investigate postgresql disk usage" date: 2015-11-24 -description: > - Investigate postgresql disk usage +description: How to investigate postgresql disk usage +tags: + - PostgreSQL --- ## How to debug disk occupation in postgresql diff --git a/content/blog/miscellaneous/etc-update-alpine.md b/content/blog/miscellaneous/etc-update-alpine.md index dbc0824..95a5522 100644 --- a/content/blog/miscellaneous/etc-update-alpine.md +++ b/content/blog/miscellaneous/etc-update-alpine.md @@ -1,12 +1,14 @@ --- title: "etc-update script for alpine linux" -linkTitle: "etc-update script for alpine linux" date: 2019-04-02 -description: > - etc-update script for alpine linux +description: etc-update script for alpine linux +tags: + - Alpine Linux --- -Alpine linux doesn't seem to have a tool to merge pending configuration changes, so I wrote one : +## The script + +Alpine linux doesn't seem to have a tool to merge pending configuration changes, so I wrote one : {{< highlight sh >}} #!/bin/sh set -eu @@ -35,4 +37,3 @@ for new_file in $(find /etc -iname '*.apk-new'); do done done {{< /highlight >}} - diff --git a/content/blog/miscellaneous/fstab.md b/content/blog/miscellaneous/fstab.md index 3b7cded..bc7331e 100644 --- a/content/blog/miscellaneous/fstab.md +++ b/content/blog/miscellaneous/fstab.md @@ -1,9 +1,15 @@ --- title: "Use spaces in fstab" -linkTitle: "Use spaces in fstab" date: 2011-09-29 -description: > - How to use spaces in a folder name in fstab +description: How to use spaces in a folder name in fstab +tags: + - unix --- +## The problem + +Spaces are used to separate fields in the fstab, if you have spaces in the path of a mount point we cannot type them directly. + +## The solution + Here is how to use spaces in a folder name in fstab : you put `\040` where you want a space. -- cgit v1.2.3