TP-Link TL-WN722N Access point with hostapd and dnsmasq on Armbian/Debian

Configuration for Hostapd:



Configuration for dnsmasq, just the end of the file, with these lines added:

# disables dnsmasq reading any other files like /etc/resolv.conf for nameservers
# Interface to bind to
# Specify starting_range,end_range,lease_time
# dns addresses to send to the clients

CMDBUILD 3.1 or 3.1.1 Enable clustering

After installation many folks feel the urge to make their setup more reliable and resilient by clustering the crap out of it, and so with cmdbuild.

The Clustering features need to be enabled once the nodes are installed and deployed.

So essentially you install postgres (as a single instance or as a cluster), after that you install tomcat and cmdbuild on all nodes.
At the end of the install script that you can check out at this url:, you will find 3 interesting lines:

bash ${install_folder}/tomcat/webapps/cmdbuild/ dbconfig create empty -configfile ${install_folder}/tomcat/conf/cmdbuild/database.conf

With this first api call (sort of), cmdbuild will access the db server, create the database and all the tables and data needed for cmdbuild to functioning.

For this reason when deploying the remaining cmdbuild nodes, this last operation won’t be necessary, because the database is already there.

I felt like sharing this with you although it is not directly related with the cluistering thing, but IMHO it helps understanding the big picture.

In order to enable the clustering features (aka sessions in the database), you will have to run two commands: of which the first one will enable the cluestering itself, and the second will instruct cmdbuild about the nodes of the cluster.

# Enable cluster
/opt/tomcat/webapps/cmdbuild/ restws -username admin -password admin -url http://localhost:8080/  setconfig org.cmdbuild.cluster.enabled true


# Add cluster nodes
/opt/tomcat/webapps/cmdbuild/ restws -username admin -password admin -url http://localhost:8080/  setconfig org.cmdbuild.cluster.nodes,,

Instead of IP addresses you can use fqdns.

This should be all.

Let me know how it goes.

We are entering an area of our galaxy densely populated by asteroids and other space rocks.

You might have noticed the recent increasing in reporting of space rocks that will pass very close to our planet. Well the reason of this is that the Sun travels at the incredible speed of 828,000 km/h dragging us with it every day in a new place, almost 20.000.000 km apart from yesterday. Check this.

Continue reading “We are entering an area of our galaxy densely populated by asteroids and other space rocks.”

Why you really need to change your view on space

The old heliocentric model makes us perceive space, stars, planets and other objects as they were revolving around one static star. Also this suggests the wrong idea of a static universe or at least as static as it gets to be observable during a human lifetime.

Continue reading “Why you really need to change your view on space”

Cmdbuild 3.1 installation on RedHat or CentOs 7

EDIT: please check the up to date post on Cmdbuild 3.1.1 on Centos 7

I believe that some people might find this small script useful.

Anyway, watch out the variables, also keep in mind that not everything as been set as variable. There are no checks on existing things (except on postgres listening) and it will execute commands anyway, it should be idempotent though..

Continue reading “Cmdbuild 3.1 installation on RedHat or CentOs 7”


Geez, how hard is it to slap an example in the documentation, Tecnoteca?

here, guys i know you’ve been looking hard for this and here you go:

curl -X POST '//' --header 'Content-Type: application/json' --data-binary '{"username": "admin", "password": "admin"}' | jq '.'

Postgresql scl enablepfffff. Persist already!

It might happen (usually to people who are sane in their mind) that you use the software collection just to get a newer version of Mariadb or Postgres or whatever is in there. So just to be clear: this is not the situation where you want to run two different version of the same package on the same system. That is booboo and if you found that in your workplace it means that the people preceding you didn’t exactly give a dam about having a safe environment and a pleasant workplace.

Continue reading “Postgresql scl enablepfffff. Persist already!”

Zimbra multi server – servers and services show as down in admin interface.

Solution for servers and services shown as down in zimbra admin console:

But they are actually up and running.

In a m ultiserver setup servers and services show as down in admin interface.

Continue reading “Zimbra multi server – servers and services show as down in admin interface.”