chirale

IT and beyond

3-2-1 backup is not a timer to backup. It’s a well covered backup strategy to avoid data loss storing 3 copies of valuable data in different places. At least 3 backups, 2 of which are locally stored in different devices, and 1 is stored externally, for example a cloud storage service. Here’s a recipe of …

Continue reading

By now Atlassian is dropping support to Mercurial on the popular Bitbucket service. Here is a proof of concept to use a Docker container as a separate environment where self-host your code using basic mercurial features without bells and whistles. To do so, a docker container based on popular and lightweight jdeathe/centos-ssh image will be …

Continue reading

Talking about package manager on Linux, flatpak gained attention recently. Installation is easy, this is about installing on Ubuntu. If you’ve some trouble installing an application using the package manager shipped with your distro, you can give it a try, since it’s available on 22 distro by now. In the above case, torbrowser packet is …

Continue reading

In this howto I will show how to backup all PostgreSQL databases, roles and permission on a server and restore them on another server on a docker. 1. Backup databases on origin server To backup all PostgreSQL databases automatically, preserving roles and permission, you can create this cron.d script (this example is from a CentOS): …

Continue reading

Mount via systemd of a directory on RAM

This configuration will allow to install on a Debian-based system a fast server for client libraries. Key technologies used are: tmpfs to serve files from volatile memory git / mercurial from github / bitbucket to get files from a public or private repository systemd units to mount tmpfs and sync nginx to serve files to …

Continue reading

To disallow password authentication on ssh, adduser –disabled-password will not disable openSSH password. To disable the password authentication, you have to put these values on /etc/ssh/sshd_config to: PasswordAuthentication no UsePAM no PermitRootLogin no Then you’ve to: to apply changes. Connection will not be reset so before logout try to login on a different terminal to …

Continue reading