Some more articles reformatting
This commit is contained in:
parent
6c98a74ed5
commit
8d4bb3881d
19 changed files with 80 additions and 55 deletions
|
@ -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,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 >}}
|
||||
|
||||
|
|
|
@ -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
Add a link
Reference in a new issue