Rénich's Blog

gnu-linux

Crashing your kernel on purpose

Mon 15 February 2016

Ok, that sounds funny, doesn't it? Well, it turns out, sometimes, you want to test your kernel dump or something of the sorts. Here's how to do it:

echo c > /proc/sysrq-trigger

This will, instanly, crash your kernel.

References:

HowTo: Ask questions in Bash?

Tue 29 December 2015

I've been writing some script to configure some firewall and came up with this way of asking a question in Bash. I hope it helps as an example. Feel free to contribute your own:

#!/usr/bin/env bash

ask() {
    local query=$1

    if ( echo $query | grep -qi password ); then
        read …

HowTo: Fixing Dovecot 2.2 in CentOS 7.2

Tue 22 December 2015

Warning: If you update dovecot on CentOS 7, it will brake! You need to update one of the config files in order for it to keep working:

# /etc/dovecot/conf.d/15-mailboxes.conf
...

namespace inbox {
    ...
    inbox = yes
    ...
}
...

So, basically, you need to add inbox = yes within the inbox namespace.

HowTo: Generate free SSL certificates for Nginx/Tengine with LetsEncrypt

Fri 11 December 2015

OK, it's fairly easy to get this done on a distro like Funtoo/Gentoo or Fedora, which are the distros I use.

First of all, you need to install this thing on your server:

# Fedora
su -
dnf -y install letsencrypt

# Funtoo/Gentoo
su -
mkdir src && cd src
git clone https …

HowTo: Compilando crystal en Fedora 22

Fri 18 September 2015

Me ha interesado mucho el lenguaje de programación crystal: http://crystal-lang.org/.

Este lenguaje tiene la sintaxis muy parecida a Ruby; si no es que igual. Parece que hasta el Matzu; creador de Ruby, es fan del proyecto.

En todo caso, para compilarlo en Fedora, hice un script. El script …