diff options
Diffstat (limited to 'content/blog/miscellaneous')
-rw-r--r-- | content/blog/miscellaneous/bacula-bareos.md | 8 | ||||
-rw-r--r-- | content/blog/miscellaneous/bash-tcp-client.md | 10 | ||||
-rw-r--r-- | content/blog/miscellaneous/boot-from-initramfs.md | 14 | ||||
-rw-r--r-- | content/blog/miscellaneous/building-rpms.md | 9 | ||||
-rw-r--r-- | content/blog/miscellaneous/clean-old-centos-kernels.md | 13 | ||||
-rw-r--r-- | content/blog/miscellaneous/debug-disk-usage-postgresql.md | 6 | ||||
-rw-r--r-- | content/blog/miscellaneous/etc-update-alpine.md | 11 | ||||
-rw-r--r-- | content/blog/miscellaneous/fstab.md | 12 |
8 files changed, 53 insertions, 30 deletions
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. |