Posts

OpenLDAP - alock package is unstable

This morning, After making some changes, I fail to start the slapd service, and this is the error log: Mar 31 10:20:30 SRVR-UParentLDAP slapd[16175]: hdb_db_open: database "dc=my,dc=domain,dc=com": alock package is unstable.                                          Mar 31 10:20:30 SRVR-UParentLDAP slapd[16175]: backend_startup_one (type=hdb, suffix=" dc=my,dc=domain,dc=com "): bi_db_open failed! (-1)                            Mar 31 10:20:30 SRVR-UParentLDAP slapd[16175]: slapd stopped.  This error's related to the file permission of ldap db in /var/lib/ldap/ . So, I just change the owner of those files to openldap: # cd /var/lib/ldap/ # chown openldap:openldap -R ./* Then, start the slapd service again: # service slapd start It works like a charm! Reference:  http://serverfault...

Life's Manifesto

Image
(source: http://www.holstee.com/pages/manifesto) “This is your life. Do what you want and do it often.  If you don't like something, change it.  If you don't like your job, quit. If you don't have enough time, stop watching TV. If you are looking for the love of your life, stop; they will be waiting for you when you start doing things you love. Stop over-analysing, life is simple. All emotions are beautiful. When you eat, appreciate every last bite. Life is simple. Open your heart, mind and arms to new things and people, we are united in our differences. Ask the next person you see what their passion is and share your inspiring dream with them. Travel often; getting lost will help you find yourself. Some opportunities only come once, seize them. Life is about the people you meet and the things you create with them, so go out and start creating. Life is short, live your dream and wear your passion.”

Free

Image

Vietnamese input in Skype with ibus-bogo

ibus-bogo is a Vietnamese input engine targeting IBus, an input method manager in GNU/Linux environments created by a group of talented Vietnamese developers. You can install it in Ubuntu by the following command: $ sudo apt-get install ibus-bogo Its github repo:  https://github.com/BoGoEngine/ibus-bogo-python It works really well in the current release of  xUbuntu (13.10, 14.04) in comparison with ibus-unikey which is buggy. But,  there are still some annoying issues with ibus-bogo. One of them is Vietnamese input in Skype. The official documentations of ibus-bogo instructs us how to solve this problem by adding these lines to ~/.profile : export GTK_IM_MODULE=ibus export QT4_IM_MODULE=xim export QT_IM_MODULE=xim export XMODIFIERS=@im=ibus Log out and log in again. Then, restart the ibus-daemon: $ ibus-daemon -xdr Notes: In Xubuntu 14.04, I have to do this every time the system startup/reboot or turn off / turn on Skype.

Debugging djangosaml2

I'm using the djangosaml2 app to add the Single Sign On functionality using  SAML2 to my Django projects. I followed the official manual at  https://bitbucket.org/lgs/djangosaml2/overview  to make my project work with a SimpleSAMLphp instance as an IdP but I got this error: cannot serialize IdpUnspecified('No IdP to send to given the premises',) (type IdpUnspecified) I have no idea why this error showed up?! I have a very little knowledge about SAML2 and the PySAML2 module. The only thing I can think about is to enable logging for the djangosaml2 app. So, I added these following lines in the settings.py of my project: import logging logging.basicConfig() I reloaded the website and a logging message appeared in the console: ERROR:djangosaml2:Unable to know which IdP to use Yessss, that is the problem!

Great lessons From Winnie The Pooh

Image
Source:  http://9gag.com/gag/a1A2RBP

Upgrade to Xubuntu 14.04 (beta) from 13.10

Image
Right now, March 24, 2014, you can try the Trusty Tahr release of Ubuntu. But, for the Xubuntu distro, I did the do-release-upgrade and found no new release. So, here is the trick to upgrade to Xubuntu 14.04: 1. Open the source list file and change saucy to trusty : $ sudo nano /etc/apt/sources.list deb http://archive.ubuntu.com/ubuntu/ trusty main restricted deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb http://archive.ubuntu.com/ubuntu/ trusty universe deb-src http://archive.ubuntu.com/ubuntu/ trusty universe deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates universe deb http://archive.ubuntu.com/ubuntu/ trusty multiverse deb-src http://archive.ubuntu.com/ubuntu/ trusty multiverse deb http://archive.ubuntu.com/ubuntu/ trusty-updates mult...