-
IPv6 routing and router advertisments on Ubuntu / Debian
Friday, May 9, 2014
If your Linux box gets its IPv6 routing information via router advertisments, you may have noticed that upon enabling forwarding, it disregards those advertisments and it loses the configured gateways. The have this configuration working again, set accept_ra 2 in /etc/network/interfaces. This value is not documented in the interfaces manual, but since kernel version 2.6.37 it allows the interface to both do forwarding and accept router advertisments. Source
-
Running rabbitmqctl as root
Friday, April 25, 2014
On some Linux distributions, running rabbitmqctl as root may fail with the following error: Error: unable to connect to node rabbit@host: nodedown DIAGNOSTICS =========== attempted to contact: [rabbit@host] rabbit@host: * found rabbit (port 25672) * TCP connection succeeded * suggestion: hostname mismatch? * suggestion: is the cookie set correctly? current node details: - node name: rabbitmqctl19092@localhost - home dir: /root - cookie hash: B+onVMMDnR1uRT2nuD24VA== Assuming that the hostname is correct and running rabbitmqctl as the rabbitmq user works, this is a cookie mismatch problem.…more
-
Installing Powerline on Mac OS X
Monday, August 19, 2013
While installing Powerline on MacOS X following the documentation, there are some import problems. It turns out that running python setup.py install installs everything into /path/to/site-packages/Powerline-beta-py2.7.egg/. This folder should be named powerline instead. Symlinking the included powerline folder to site-packages/powerline seems to fix this.
-
Building ZSH with zpython module on MacOS X
Monday, August 19, 2013
There is a fork of ZSH that has a Python module. It is able to run Powerline smoothly. However, on MacOS X, it doesn’t correctly detect the Python libs upon compilation. There seems to be a similar problem for Vim with python support: http://stackoverflow.com/questions/6490513/vim-failing-to-compile-with-python-on-os-x The workaround is the same. Editing the Makefile in the config directory of the Python installation fixes this. The modification is PYTHONFRAMEWORKINSTALLDIR instead of PYTHONFRAMEWORKDIR on the line beginning with LINKFORSHARED
-
Setting default NFSv4 ACLs on FreeBSD
Saturday, August 17, 2013
On FreeBSD with ZFS, only NFSv4 ACLs are supported. At the time of this writing, the FreeBSD documentation regarding ACLs is a bit vague. Specifically, it doesn’t talk about inheritable attributes. The -d argument, used to define default POSIX ACLs is not supported. Instead, there are some flags one can set in order to define how ACLs are inherited. For an explanation, look in the manual for setfacl, section ACL inheritance flags.…more
-
MySQL Replication - I/O Error Code 1045
Saturday, August 17, 2013
Setting up replication on MySQL may yield the following error: [ERROR] Slave I/O: error connecting to master, Error code 1045 The MySQL troubleshooting page gives a few hints, talking about credentials for the replication user. However, attempting a connection via the command line client works, so the password is OK and the slave can reach the master. As it turns out, for replication purposes, the maximum password length is 32 characters.…more