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

Configuration for Hostapd:

ssid=SSIDNAME
interface=wlan0
hw_mode=g
channel=10
ieee80211d=1
country_code=NL
ieee80211n=1
wmm_enabled=1

auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=atleast8chars

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
no-resolv
# Interface to bind to
interface=wlxd0374547933f
# Specify starting_range,end_range,lease_time
dhcp-range=10.0.10.3,10.0.10.20,12h
# dns addresses to send to the clients
server=8.8.8.8
server=8.8.4.4

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: https://blog.giuseppeurso.net/cmdbuild-3-1-1-on-centos-7/, you will find 3 interesting lines:

bash ${install_folder}/tomcat/webapps/cmdbuild/cmdbuild.sh 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/cmdbuild.sh restws -username admin -password admin -url http://localhost:8080/  setconfig org.cmdbuild.cluster.enabled true

And

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

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”

CMDBUILD 3 REST API EXAMPLE AUTHENTICATION

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 '//10.0.0.26:8080/services/rest/v3/sessions/?scope=service' --header 'Content-Type: application/json' --data-binary '{"username": "admin", "password": "admin"}' | jq '.'
Continue reading “CMDBUILD 3 REST API EXAMPLE AUTHENTICATION”

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.”