cli - my tips and tricks

cli - my tips and tricks

Welcome to my blog, I use it as a notebook for storing and sharing commands I don't use everyday.
Here are some tags for helping you navigating:

Posts

gpg encrypt/decrypt with a passphrase

ubuntu gpg rfc2119

Sometimes you’ve got some files that you don’t want to lose, for instance private keys (think of gpg and Google authenticator), so I store them in multiple places (to be sure that I won’t lose the file) and encrypted since I can’t keep an eye on every place I put my files.

Read More

1 Apache Faster Grafana

layout: post title: ‘grafana speedup’ tags: ubuntu 18.04 16.04 hw2018 server apache grafana xdeprecated permalink: apache-gzip-grafana-faster-v0.html —

Read More

Backup

backup

I consider my data important, and since I tend to making fun of guys who lose their data*1, I take special care of my data. HDD tends to fail, computer can be stolen and cryptoviruses tend to encrypt hard drives, disasters happen.

Read More

ubuntu root on LVM over RAID1 degraded boot

ubuntu 16.04 18.04 ximport raid-lvm

BOOT_DEGRADED has no effect when using LVM

It seems that using LVM over RAID will always try to boot, no matter how BOOT_DEGRADED is configured. Removing a disk from the running system will put the array in degraded state, and a reboot at this point will work fine, even if this is somehow risky to boot on a degraded array.

Read More

ssh keepalive

ximport ubuntu ssh

The remote ssh server may disconnect a idle connection. To prevent that, it’s possible to send keepalive from the client site, by editing /etc/ssh/ssh_config or ~/ssh/config:

Read More