Category Archives: admin

Funny PHP article headline

Aaw cannot resist myself writing about this: DZone RSS just served me with an article about getting [the] latest PHP source without having to wait for the official releases. After spending a whole lot of time reading about PHP being a fractal of bad design the headline is just funny. It makes me think of the people who will now try to run php binaries straight from the git repo on their production servers without allowing the devs to mark code ready for production use (release).

Continue reading


VirtualBox in ubuntu 12.04; usb devices for guests

Again I found myself googling why can’t I enable any USB filters for my guests.

  • No, I’m not using virtualbox-ose package
  • No, I don’t need any registry hacks (this is Ubuntu host)

Finally I found “vboxusers” group. Are you in it? (Run the code below in bash/zsh).

( groups | grep -q vboxusers && echo "Yes you are. Move along pls." ) || echo "No you aren't."

If you aren’t, add yourself to /etc/group. Simple as that. I wish this was the first hit for “virtualbox usb ubuntu no devices” google search.

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

Experiences with Smart Array E200i

TL;DR: Smart Array E200i should not be trusted; HP Array Configuration Utilities are horrible, always prefer Linux’s md.

About four years ago we purchased a ML350 G5 server with some SATA disks and a small BBWC, put them into RAID 10 with a spare. Everything went peachy until about a week ago when we had a full server lockup.

Post-lockup, there was nothing interesting in the logs (from cpqarrayd) or any other obvious cause. Next lockup came a few days later, now I noticed that a spare had been activated successfully; replacement disks were ordered and I started preparing a replacement server.
Continue reading

Windows 7 installation vs. Kubuntu 11.10

I just received my new Asus 1215B notebook. On the first start there’s an Windows 7 installation that will begin without any questions asked.

Few funny notes on the installer; there’s this point where you are asked about the country, timezone and some third question about your locale question. If you select your timezone BEFORE selecting country it will nicely reset the your timezone selection.

Installing the Windows 7 from disk took as long as Kubuntu 11.10 from USB3 stick with network updates (through a highspeed network connection).

Looking how my Asus does not have a DVD drive I couldn’t find any way to do full Windows backup, for example a bootable USB stick in under 5 minutes. I guess if or when I need to reinstall windows I’m going to have to call Asus and ask for a … well it cannot be a recovery disc for sure.

Number of clickthrough license agreements:

Windows 7: 2 (Windows and Bing Bar — WTF?)
Kubuntu 11.10: 0, zero

Why the hell I had to agree to Bing Bar terms? I tried to go without agreeing to those, but it was required for me to use my computer (but it empahized how great it is that Bing is pre-installed and ready to go). What does one even use Bing Bar for?

Downloading Kubuntu 11.10 64-bit image was my first ever experience of using Windows 7 and the latest Internet Explorer. It wasn’t comforting to see that Internet Explorer is still a bitch to use. It’s very sluggish even compared against Firefox, which in turn is hell to use compared to Chromium. Why on earth can’t they fix the damn browser, or just realize they need to shut it down?

kubuntu cups client-error-forbidden?

To configure your brand new printer you just need to make sure you are in the “lpadmin” group.

Open a terminal, execute “groups” and if that list doesn’t contain “lpadmin” add your username to /etc/groups “lpadmin:xyz:” line, logout, login and you are ready to go!

If that doesn’t help, post a comment or keep googling.

nouveau ftw

Recently I got tired of gradually slowing down performance of my entire desktop at work. It’d seem that the culprit was *drumroll* closed source nvidia driver.

After changing to nouveau everything is even better. In case I forget, the device is 8500GT. Though no DRI or AIGLX and wrong DPI. I tried to fix the DPI, nouveau says it configures it per EDID data but xpdyinfo tells otherwise) but didn’t get around it.

I also noticed that the only way to get “persisted” multihead configuration in Kubuntu 10.10 is to write xorg.conf manually.

Flash fullscreen on rv730 with latest x-swat updates

Amazing performance upgrades as I finally switched to x-swat (stable) ppa for Kubuntu 10.10.

Composition works and is pretty fast, for example compared to another my workstation with 8500GT using closed source nvidia drivers.

It’d seem that even GTK performance upgraded a bit. I was already using qt raster engine which made qt apps seem snappier. Too bad I code in eclipse and surf with firefox. With the driver and Xorg updates even GTK apps seem faster.

Side note; at home using this rv730, using qt raster does not mean any graphics artifacts. With nvidia stock 10.10 drivers qt raster didn’t work so well.

Setting up artifactory, hudson, sonar

Today I added hudson and sonar next to our existing artifactory setup.

Nothing special really. All three tomcat instances on a single host. Some important notes:

  • hudson has incredibly ugly UI (though still usable enough) but great features; automatic maven installation and nice spring context refreshing after configuration changes
  • sonar isn’t quite as administrable as I had guesses from it’s sleek UI; LDAP authentication costs money, but then again; it isn’t that useful, once you use it through hudson sonar plugin you really don’t need user accounts (if in intranet)

Sonar setting up was the most difficult job. I just copy-pasted common maven2 settings.xml which included artifactory mirroring of all repositories. However, sonar has a built-in nexus repository, documentation of which wasn’t so easily found. It all comes down to this:

Don’t mirror the sonar repo.

As in: <mirrorOf>*,!sonar</mirrorOf>; don’t waste your time trying with !localhost or !myhostname.

The closing tip, have a small (even temporary project) you send through hudson to sonar — not your behemoth that’ll take the first 10 minutes to build, forever to test.