Automatic renewal of letsencrypt.com certificates 1

On my personal servers I am using letsencrypt certs on debian and/or ubuntu. Several times now I couldn’t renew it automatically, due to a various of reasons, but there is one in particular I want to remember for future reference: The nginx plugin is not working; there may be problems with your existing configuration. when ...

cn=admin,cn=config password and bdb_equality_candidates: not indexed 1

So you want to modify your config of ldap, you might want to use ldapvi, such as below: ldapvi -h ldap://localhost -D cn=admin,cn=config -b cn=config --- Login Type M-h for help on key bindings. Filter or DN: cn=admin,cn=config Password: ldap_bind: Invalid credentials (49) and it asks you for password. You have no clue what the ...

RSnapshot – migrate to other drive

Once you start using rsnapshot and you haven’t thought about increasing hard drive requirements, you didn’t setup LVM, you might want to migrate yours rsnasphot directory to bigger drive, preferably under LVM. You might see how to setup LVM here When it comes to migrate your current rsnapshot backup to other drive, you have two ...

Obtaining UUID of partition

To get UUID of the partition /dev/sdc3, run: [cc lang=”bash”] blkid /dev/sdxx [/cc] You might use it to create /etc/fstab entry for this drive, if you can expect that it might get different letters of drive (for example it is USB drive)

BadBlocks checking

Want to be sure new drive is fine (has no badblocks?) Run [cc lang=”bash”] badblocks -wvs /dev/sdx [/cc] (might take ~50 hours on 3TB HDD). It will write down specific patterns on HDD, verifying them (four different patterns for whole drive). It will wipe out your data on sdX

Using underscores in DNS hostname in Bind (named) 1

Underscores are not valid characters in hostnames. If you have configured your DHCP server to register hostnames in DDNS, following issue may occur: some windows hostnames may contain “_” in their names. If you do so, following error will be logged by bind: [cc] zone zone.name/IN: computer_4.zone.name/A: bad owner name (check-names) [/cc] and in logs ...