Codehouse: my digital life

  • How to input brackets in a mac using a Portuguese PC Keyboard

    How to input brackets in a mac using a Portuguese PC Keyboard

    When you buy a mac mini without and you don’t want to spend money with a mac magic Keyboard, reusing a PC keyboard instead, and you need to use characters outputted by the right alt key (like the brackets in portuguese), you are in a trouble!


  • Redirect to your mirror at archive.org

    Redirect to your mirror at archive.org

    In case if your site goes down, and you don’t have a mirror host for your content, the wayback machine from archive.org provides you with such a thing you can make use of. Just provide your http server or web framework to detect an error (in PHP you can use the functions set_error_handler and set_exception_handler)… Read More


  • Take your virtual server out of the cloud

    Take your virtual server out of the cloud

    Wouldn’t it be good that you could extract your virtual server out of your current cloud provider, and import it in another provider, or import in a virtual machine manager installed locally ? That it’s possible, but it depends on two conditions: have access to a repair environment in a recovery console in your cloud… Read More


  • How to configure an E-mail distribution service using Postfix + Courier IMAP with SQLite as the credentials storage endpoint

    How to configure an E-mail distribution service using Postfix + Courier IMAP with SQLite as the credentials storage endpoint

    While I was doing the migration from Ubuntu 14 to Ubuntu 16, I came across the high resource demands required by the new version of MySQL. I’m running on a very basic VPS with to few RAM, and so MySQL (was running 5.7) crashed much frequently, so I decided to switch a MySQL fork, mariaDB, in this case. Tried first with the last stable version, 10.3, than I discovered that this version was still with more problems and running with even more problems with the very low RAM, so I downgraded to 10.1, but still the problems persisted. I ran the mysqltuner script to adjust the mariaDB configuration according to this “hardware” requirements. I changed the max_connections variable and lowered the value to 2 or 3. Still discovered that the entire VPS has crashed just because of this. Then I increased the value to 10 and Postfix started to complain with authentication errors since the e-mail credentials are stored in a MySQL schema. On that MySQL there are running other schemas, one for a wordpress site with very low bandwidth, and other wordpress site for a business, with much more load than the last wordpress. You know, wordpress does not support officialy other SQL engines than MySQL, which is bad, very bad, but I discovered a plugin that allows you to use SQLite as a Wordpress backend. Very good for the wordpress instance with much less load (Truly speaking, it right this one that is storing this blog). So I decided, if now I can use SQLite as the backend for an Wordpress site, why not use it also to store email service credentials. Very unfrequentely I change those credentials, so I move on studying how Postfix and Courier could use a simple SQLite database to store the email credentials and other stuff Postfix implements like transports, or e-mail forwardings.

  • Migration notes from Ubuntu 14 to Ubuntu 16 Server versions

    Migration notes from Ubuntu 14 to Ubuntu 16 Server versions

    I needed to migrate the following software bellow from Ubuntu 14 to 16: Apache MySQL Postfix Courier Bind Webmin ddclient

  • How to move the base docker directory to another location (part II)

    How to move the base docker directory to another location (part II)

    Continuing from my last post , the process of putting the docker base directory in a remote mount point was completed with a relative success, because I’m still struggling with the fact that the permissions that NFS attribute to the users on the machine the share is mounted. Every new file or modified one is assigned,… Read More

  • How to move the base docker directory to another location

    How to move the base docker directory to another location

    Some weeks ago, I started getting notices that the root dir where my Linux is mounted was getting low space. I dismissed the warnings and thought there should be something out of the way. Still true that my Linux root partition is just  85 gigs, because I repartitioned the disk on a laptop that goot… Read More

Social Media Auto Publish Powered By : XYZScripts.com