Some more articles reformatting

This commit is contained in:
Julien Dessaux 2021-03-11 23:15:31 +01:00
parent 6c98a74ed5
commit 8d4bb3881d
19 changed files with 80 additions and 55 deletions

View file

@ -3,8 +3,7 @@ title: "Error occured during the signature verification"
date: 2015-02-27 date: 2015-02-27
description: Fixing the "Error occured during the signature verification" description: Fixing the "Error occured during the signature verification"
tags: tags:
- debian - Debian
- linux
--- ---
## How to fix ## How to fix

View file

@ -3,8 +3,7 @@ title: "Force package removal"
date: 2015-01-27 date: 2015-01-27
description: How to force the removal of a package description: How to force the removal of a package
tags: tags:
- debian - Debian
- linux
--- ---
## How to force the removal of a package ## How to force the removal of a package

View file

@ -3,8 +3,7 @@ title: "Fix the no public key available error"
date: 2016-01-27 date: 2016-01-27
description: How to fix this common debian error when using non official repositories description: How to fix this common debian error when using non official repositories
tags: tags:
- debian - Debian
- linux
--- ---
## How to fix ## How to fix

View file

@ -4,7 +4,6 @@ date: 2018-01-29
description: How to retrieve storage space by cleaning a docker host description: How to retrieve storage space by cleaning a docker host
tags: tags:
- docker - docker
- linux
--- ---
## The command ## The command

View file

@ -4,7 +4,6 @@ date: 2018-09-25
description: How to use a predefined bridge with docker compose description: How to use a predefined bridge with docker compose
tags: tags:
- docker - docker
- linux
--- ---
## The problem ## The problem

View file

@ -4,7 +4,6 @@ date: 2018-01-30
description: How to migrate a data volume between two hosts description: How to migrate a data volume between two hosts
tags: tags:
- docker - docker
- linux
--- ---
## The command ## The command

View file

@ -4,7 +4,6 @@ date: 2019-02-04
description: How to use a proper shell in a dockerfile description: How to use a proper shell in a dockerfile
tags: tags:
- docker - docker
- linux
--- ---
## The problem ## The problem

View file

@ -1,13 +1,14 @@
--- ---
title: "Get zoom to work" title: "Get zoom to work"
linkTitle: "Get zoom to work"
date: 2018-01-02 date: 2018-01-02
description: > description: How to get the zoom video conferencing tool to work on gentoo
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 ## The problem
around that.
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 ## Running the client
@ -17,8 +18,7 @@ around that.
## Working around the "zoommtg address not understood" error ## 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 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 :
or the authentication will fail :
{{< highlight yaml >}} {{< highlight yaml >}}
./ZoomLauncher 'zoommtg://zoom.us/google?code=XXXXXXXX' ./ZoomLauncher 'zoommtg://zoom.us/google?code=XXXXXXXX'
{{< /highlight >}} {{< /highlight >}}

View file

@ -1,13 +1,11 @@
--- ---
title: "Steam" title: "Steam"
linkTitle: "Steam"
date: 2019-02-16 date: 2019-02-16
description: > description: How to make steam work seamlessly on gentoo with a chroot
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 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.
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" >}}) [Here is the link to the full article describing how I achieved that.]({{< relref "/docs/gentoo/steam.md" >}})

View file

@ -1,9 +1,18 @@
--- ---
title: "Get tls certificate and key from a kubernetes secret" title: "Get tls certificate and key from a kubernetes secret"
date: 2020-08-06 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 >}} {{< 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\.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 kubectl -n legacy get secret wild.adyxax.org-cert -o json -o=jsonpath="{.data.tls\.key}" | base64 -d > adyxax.org.key

View file

@ -1,7 +1,9 @@
--- ---
title: "Dump and restore a postgresql database on kubernetes" title: "Dump and restore a postgresql database on kubernetes"
linkTitle: "Dump and restore a postgresql database"
date: 2020-06-25 date: 2020-06-25
description: How to dump and restore a postgresql database running on kubernetes
tags:
- kubernetes
--- ---
## Dumping ## Dumping

View file

@ -1,11 +1,13 @@
--- ---
title: "Some bacula/bareos commands" title: "Some bacula/bareos commands"
linkTitle: "Some bacula/bareos commands"
date: 2018-01-10 date: 2018-01-10
description: > description: some usefull commands when dealing with bacula or bareos
Some bacula/bareos commands tags:
- backups
--- ---
## Introduction
Bacula is a backup software, bareos is a fork of it. Here are some tips and solutions to specific problems. 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 ## Adjust an existing volume for pool configuration changes

View file

@ -1,12 +1,14 @@
--- ---
title: "Bash tcp client" title: "Bash tcp client"
linkTitle: "Bash tcp client"
date: 2018-03-21 date: 2018-03-21
description: > description: Bash tcp client
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 >}} {{< highlight sh >}}
exec 5<>/dev/tcp/10.1.0.254/8080 exec 5<>/dev/tcp/10.1.0.254/8080

View file

@ -1,12 +1,18 @@
--- ---
title: "Boot from initramfs shell" title: "Boot from initramfs shell"
linkTitle: "Boot from initramfs shell"
date: 2014-01-24 date: 2014-01-24
description: > description: How to finish booting from an initramfs shell
Boot from 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 >}} {{< highlight sh >}}
lvm vgscan lvm vgscan

View file

@ -1,13 +1,12 @@
--- ---
title: "Building rpm packages" title: "Building rpm packages"
linkTitle: "Building rpm packages"
date: 2016-02-22 date: 2016-02-22
description: > description: How to build locally an rpm package
Building rpm packages tags:
- Centos
- rhel
--- ---
Here is how to build locally an rpm package. Tested at the time on a centos 7.
## Setup your environment ## Setup your environment
First of all, you have to use a non-root account. First of all, you have to use a non-root account.

View file

@ -1,11 +1,18 @@
--- ---
title: "Clean old centos kernels" title: "Clean old centos kernels"
linkTitle: "Clean old centos kernels"
date: 2016-02-03 date: 2016-02-03
description: > description: Clean old centos kernels
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. 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` This cleaning can also be done manually with a command that belongs to the yum-utils package : `package-cleanup oldkernels count=2`

View file

@ -1,9 +1,9 @@
--- ---
title: "Investigate postgresql disk usage" title: "Investigate postgresql disk usage"
linkTitle: "Investigate postgresql disk usage"
date: 2015-11-24 date: 2015-11-24
description: > description: How to investigate postgresql disk usage
Investigate postgresql disk usage tags:
- PostgreSQL
--- ---
## How to debug disk occupation in postgresql ## How to debug disk occupation in postgresql

View file

@ -1,12 +1,14 @@
--- ---
title: "etc-update script for alpine linux" title: "etc-update script for alpine linux"
linkTitle: "etc-update script for alpine linux"
date: 2019-04-02 date: 2019-04-02
description: > description: etc-update script for alpine linux
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 >}} {{< highlight sh >}}
#!/bin/sh #!/bin/sh
set -eu set -eu
@ -35,4 +37,3 @@ for new_file in $(find /etc -iname '*.apk-new'); do
done done
done done
{{< /highlight >}} {{< /highlight >}}

View file

@ -1,9 +1,15 @@
--- ---
title: "Use spaces in fstab" title: "Use spaces in fstab"
linkTitle: "Use spaces in fstab"
date: 2011-09-29 date: 2011-09-29
description: > description: How to use spaces in a folder name in fstab
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. Here is how to use spaces in a folder name in fstab : you put `\040` where you want a space.