Some more articles reformatting
This commit is contained in:
parent
6c98a74ed5
commit
8d4bb3881d
19 changed files with 80 additions and 55 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,7 +4,6 @@ date: 2018-01-29
|
|||
description: How to retrieve storage space by cleaning a docker host
|
||||
tags:
|
||||
- docker
|
||||
- linux
|
||||
---
|
||||
|
||||
## The command
|
||||
|
|
|
@ -4,7 +4,6 @@ date: 2018-09-25
|
|||
description: How to use a predefined bridge with docker compose
|
||||
tags:
|
||||
- docker
|
||||
- linux
|
||||
---
|
||||
|
||||
## The problem
|
||||
|
|
|
@ -4,7 +4,6 @@ date: 2018-01-30
|
|||
description: How to migrate a data volume between two hosts
|
||||
tags:
|
||||
- docker
|
||||
- linux
|
||||
---
|
||||
|
||||
## The command
|
||||
|
|
|
@ -4,7 +4,6 @@ date: 2019-02-04
|
|||
description: How to use a proper shell in a dockerfile
|
||||
tags:
|
||||
- docker
|
||||
- linux
|
||||
---
|
||||
|
||||
## The problem
|
||||
|
|
|
@ -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 >}}
|
||||
|
|
|
@ -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" >}})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
---
|
||||
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
|
||||
---
|
||||
|
||||
## The script
|
||||
|
||||
Alpine linux doesn't seem to have a tool to merge pending configuration changes, so I wrote one :
|
||||
{{< highlight sh >}}
|
||||
#!/bin/sh
|
||||
|
@ -35,4 +37,3 @@ for new_file in $(find /etc -iname '*.apk-new'); do
|
|||
done
|
||||
done
|
||||
{{< /highlight >}}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue