Monthly Archives: July 2012

Eclipse 4.2 in Kubuntu 12.04

Quickly get Eclipse 4.2 looking somewhat ok under Kubuntu 12.04:

  1. Change GTK+ style to oxygen-gtk from KDE System Settings
  2. Change KDE color scheme from default (which has greyish background) to Zion (was bundled for me)
  3. Install jeeeyul’s themes
    1. Use “chrome” theme
    2. Use “Thin Sash (Classic)” from Layout tab of the Chrome Theme Configuration
  4. Pray that your eyes can take the all-white screen

I also tried to replace all fonts from “monospace” to “inconsolata” and “Sans” to “Ubuntu”. Now if I only could get Solarized Light colorization to java and xml editors…

Advertisements

rsyslogd high precision timestamps and logcheck

After commenting out the default traditional rsyslogd format ($ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat) I noticed that none of the logcheck ignores will work.

To fix it, simply:

cd /etc/logcheck/ &&
( [ ! -e '/var/backups/logcheck.d.tar.gz' ] || \
  { echo 'err: backups already made'; exit 1;} ) && \
tar cfzv /var/backups/logcheck.d.tar.gz cracking.d cracking.ignore.d \
    ignore.d.paranoid ignore.d.server \
    ignore.d.workstation violations.d violations.ignore.d && \
find cracking.d \
    cracking.ignore.d \
    ignore.d.paranoid \
    ignore.d.server \
    ignore.d.workstation \
    violations.d \
    violations.ignore.d \
  -type f \
  -exec sed -i \
    -e 's/^\^\\w{3} \[ :\(0-9\|\[:digit:\]\)\]{11}/^[0-9T:+.-]+/' {} \;

Basically you can/should reuse the pattern matching hostname/fqdn, but only replace the timestamp matching with a simpler one.

Note: this only works for me, no guarantees.

EDIT: 2012-07-20: Added support for [:digit:] used by some ignore.d files.

Learning openldap 2.4 cn=config usage

Last time I setup a OpenLDAP server to provide authentication for a small group of servers and services I configured it using slapd.conf which is now referred as “old style”. As such, packages in Ubuntu Server 12.04 ship with cn=config and no legacy slapd.conf. Well, apparently a lot has changed, but the documentation is lagging for an almost first time ldap-admin.
Continue reading