Posts

MySQL Apache Failover System with DRBD, Pacemaker, Corosync 2.x

Configuration The configuration for this system is equal with my previous article , the differences are on the corosync config and the way to start pacemaker and drbdlinks. In the corosync version newer than 2.x, pacemaker is no longer started by corosync, so pacemaker should be loaded automatically during start up. Below is the example configuration of the corosnyc.conf:

Tvheadend on cubieboard1 with Terratec Cinergy HTC stick HD (0ccd:00b2)

Image
The USB stick doesn't automatically recognized by the Cubieboard1 linux sdcard image. You must compile the kernel and enable em28xx config as module. Here is the example of working config file for this stick and compiled kernel and module. 1. config . 2. uImage . 3. kernel-module . To install above kernel or if you want to compile the kernel yourself, please follow this instruction from this website . We also need a firmware for the stick, download  dvb-usb-terratec-htc-stick-drxk.fw from here and put in /lib/firmware directory.

Apache2 LDAPS Auth config against eDirectory

Apache2 LDAPS Auth Config against eDirectory Create cert directory in apache conf directory: mkdir /etc/apache2/cert Download LDAP cert from eDirectory server and copy to /etc/apache2/cert: cp CA.b64 /etc/apache2/cert/ Create config file /etc/apache2/conf.d/ldaps and add this line: LDAPTrustedGlobalCert CA_BASE64 "/etc/apache2/cert/CA.b64" Edit ssl config file /etc/apache2/sites-enabled/default-ssl and add these lines to protect the directory: Alias /phpmyadmin /usr/share/phpmyadmin/ <Directory "/usr/share/phpmyadmin"> AuthName "Access to phpMyAdmin: Login using LDAP user" AuthType basic AuthBasicProvider ldap AuthLDAPUrl ldaps://ldaps.server.com/ou=IT,o=company?cn Require ldap-user username1 username2 </Directory> Restart apache2: service apache2 restart References : http://think.io/?p=90 http://archive09.linux.com/feature/120050

Adding a mobile version to your typo3 site with css and jquery mobile

You already have a complex and huge typo3 site and want to add a mobile version to it. At the beginning, you didn't have such a plan to have different layout for the mobile devices, so it will cost you a lot of time and work to create another layout for the mobile devices. But don't worry, with this trick, you will have a friendly mobile layout for your site with just a little effort.

Hideable navigation on Custom Home extension

To make more space in the main column, we can try to wrap the navigation using div, so that it will be hidden  on window load. This example shows how to wrap the navigation using typoscript. In this example, the navigation is defined in left_nav object: page . 10 . subparts   {   left _nav . wrap   =   < div   id = "nav1"   class = "nav" >< div   class = "nav-btn" >< img   width = "16"   height = "16"   alt = "Info"   title = "Info"   src = "../typo3/sysext/t3skin/icons/module_web_list.gif" >< /div >   |   < /div> } The div above will be processed by jquery so that it will be hidden by default, we can hover on the icon to make it visible, and then we can access the navigation.

Changing Shibboleth Hostname

Introduction When we change the hostname, for example: idp.example.com to idp.example2.com, we need to change the definition in configuration file and also the SSL certificate. The information below, lists which files are needed to be changed. Changing IDP hostname When we change the IDP hostname, the following files should be edited: edit shibboleth2.xml on SP server edit relying-party.xml (IDP SSL cert path) edit idp-metadata.xml (hostname and ssl cert) edit apache conf (SSL cert path) After that, restart both IDP and SP services.

Belkin F7D1101 Wireless USB on android Cubieboard

Image
Preconfigured Android Livesuit image from Cubieboard website only support Wireless Usb with RTL8192cu and RTL8188eu chipset. For anyone that have wireless USB with chipset 8712u (8188su) such as Belkin F7D1101  ( list of similar device ) must add the driver manually. Here you can find how to compile the driver and configure it in android cubieboard.