Skip to main content


Showing posts from 2009

How to change KDE 4 startup sound

It may not obvious for beginner. These are the steps on how to change startup sound in KDE 4.

1. Open KDE System Setting

2. Double click on the notifications to open it.

3. For Event source, select KDE System Notifications as below.

4. From the list, select Login and click browse button to change the sound file.

From here, there are lots of options for you to try. Have fun!

Google Chrome 64-bit for Linux

After searching for hours for Google Chrome 64-bit for Mandriva 2010, I found this one works great. Please expect some bugs. At least flash plugin works with the help of Mozilla's. This package may work for other distro too. You have to try it yourself.

Mandriva Linux 2010 released

Announced on Nov 4th 2009, the release of Mandriva 2010. It is available in three editions : One, Powerpack and Free, for architectures i586 and x86-64. One and Free can be downloaded for free from official Mandriva mirrors and via BitTorrent.

To know what this edition has to offer, read here.

What really attracts me is this:

Mandriva Linux 2010 includes Go-OO branch of the popular That means more features, like SVG support, 3D transitions, VBA support, KDE 4 integration and Includes useful extensions.

So for those who *really* need these features of Go-OO, should consider use this edition of Mandriva Linux.

Have fun!

how to solve urpmi or rpm database locked error?

I'm sure for those using package manager for rpm-based distro had encountered "rpm database locked". For Mandriva users, they will encounter similar error such as "urpmi database locked". Those errors are produced when other application is using rpm or urpmi database and to prevent simultaneous access to those databases. In many cases though, there is no application accessing rpm/urpmi database simultaneously but the stale locks are still there. This could happen when the application accessing the database terminated abnormally.

To overcome this problem, you have to remove the lock files manually. For rpm lock file it is in /var/lib/rpm/.RPMLOCK and urpmi lock file is in /var/lib/urpmi/.LOCK. Depends on what error produced, you need to remove either one. Obviously, for error "urpmi database locked", you need to remove file in /var/lib/urpmi/.LOCK and afterthat if you receive error "rpm database locked", you need to remove the other one. Usual…

Slackware 13 is ready

Slackware, the first distribution I have been using since 1995 , one of the oldest distributions, has released version 13. One of the most important to note is that this is the first version that comes with 64-bit port. Slackware Linux known as a stable and rock-solid distribution has its unique fans even there are many modern distributions suitable for beginners and experts.

More details about the release can be found in the release notes and in the changes and hints and packages text files.

KDE 4.3 released

KDE 4.3 (Caizen) was released on 4th August 2009. KDE 4.3 is the latest major release in the KDE 4 series, delivering a more polished user experience. The KDE community has fixed over 10,000 bugs and implemented almost 2,000 feature requests in the last 6 months. Close to 63,000 changes were checked in by a little under 700 contributors. Read on for an overview of the changes in the KDE 4.3 Desktop Workspace, Application Suites and the KDE 4.3 Development Platform.

More info can be read on

Maatkit: A great MySQL toolbox

What is Maatkit? (copied verbatim from its website)
Maatkit makes MySQL easier and safer to manage. It provides simple, predictable ways to do things you cannot otherwise do. It would be nice if these features were included with MySQL, but they are not. That's why Maatkit is now shipping by default with many GNU/Linux distributions such as Debian and CentOS. Unfortunately, it isn't included in Mandriva repo. In that case, we can download it here or read here for more ways to download it. You can use Maatkit to prove replication is working correctly, fix corrupted data, automate repetitive tasks, speed up your servers, and much, much more.Maatkit is sponsored by Percona, who releases it under the GPL and offers paid support and sponsorship of new features. Maatkit is hosted on Google Code and free support is available in the Maatkit Discuss Google Group.What can Maatkit do and more can be read on the websi…

Mozilla Firefox 3.5 released

Yeah. You've heard it. The latest firefox has been released. It supports the new HTML elements such as audio and video tags. It also supports Ogg Vorbis and Ogg Theora natively and speed improvements. I haven't experience it myself though because I'm waiting for it to be in Mandriva Cooker's repositories and it will be there soon. You guys can download it from Mozilla's mirror if you don't want to wait.

Release notes can be read here.
Download latest firefox here.

Permanently redirect your client to https using apache webserver

If your webserver has no problem with https service, this is a working solution that I found to permanently redirect your visitors (clients) to https port of your webserver. I found many solutions but this one worked for me as I tested it. Why permanent secure connection? This is really important for applications that need higher security to protect your data. For more info on this topic please google. :)

These 3 lines are needed to put in /etc/httpd/conf/httpd.conf :

RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Where to put them? Search Directory directive in httpd.conf. Below is sample from httpd.conf
on Mandriva.

# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
# The Options dir…

Handling tif image produced by MS Office Document Scanning

I scanned a paper using MS Office Document Scanning (on Windows XP) and the output was a tiff image file. Using file command, I could see the file type as below:

image.tif: TIFF image data, little-endian

As usual, I wanted to open it with a image editing software like gimp or imagemagick or krita or even with document viewer like okular but to no avail. The error produced by GIMP was: unsupported layout, No RGBA loader. The error produced by Krita was: Cannot create storage. I tried convert a utility packaged with imagemagick to convert the image to jpg :

[zamri@triniton KINGSTON]# convert image.tif -quality 90 kpd.jpg

I got this error:
convert: image.tif: unknown field with tag 512 (0x200) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: image.tif: unknown field with tag 513 (0x201) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: image: unknown field with tag 514 (0x202) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

Mounting Mac OS X partition from Linux

My friend asked me to save his data on a Mac OS X partition since his machine couldn't boot properly into Mac OS X GUI mode. So I booted the machine with Ubuntu 5.04 Live CD. I know it was an old version but who cares as long as it supports hfsplus filesystem used by Mac OS X.

So I mounted one of the partitions where he saved his work with this:

sudo mount -t hfsplus /dev/hda5 /mnt (for Ubuntu)

(If you are using other distro and logged in as root, just omit the sudo from above command.)

where /dev/hda5 is the partition and /mnt is the mount point.

From now, insert usb drive and copy file to it. After this, he can wipe out all partitions and/or reinstall Mac OS X.

KDE 4.3 Beta 1 released for testing announced the release of KDE 4.3 Beta 1 for testing. This is the first review of the 3rd iteration of KDE 4 desktop.

Some highlights of this beta release are:
1.Integration of PolicyKit and Geolocation services
2.More usable Run command pop-up (press alt+F2 to activate)
3. Many new and improved add-ons for plasma
4. Many bugfixes and improvements across all applications and more integration of features coming with the KDE 4 platform
5. New tree mode in System Settings

and many more. For a complete list of changes, you can browse subversion log.


Mandriva Linux 2009 Spring released

Mandriva has announced the launch of the final version of Mandriva Linux 2009 Spring (codename Pauillac). This new version comes with a host of improvements and changes, as always. Fun fact: this is the first release reported to us by Anne Nicolas instead of Adam Williamson. For those that keep score.
The Mandriva Linux 2009 Spring comes in the flavour of your choice, KDE, GNOME or LXDE, in more than 70 languages. There's the Free edition (100% open source software) in 2 DVDs for 32 and 64 architecture and the One edition (installable live CD, available in KDE and GNOME versions). Major updates includes KDE 4.2.2, GNOME 2.26, Xorg server 1.6, Linux kernel 2.6.29, Xfce 4.6, Qt Creator 1, Tcl/Tk 8.6, syslinux 3.75, and much more.
Mandriva Linux 2009 Spring comes with an improvement in boot time. The tools of Mandriva Control Center have also been optimised. Network center now supports advanced network configuration together with additional pre-configured Internet providers, integrat…

Firefox 3.0.10 fixes critical vulnerability

The Mozilla developers have announced the release of version 3.0.10 of their open source Firefox web browser. The security and stability release addresses a critical security vulnerability introduced in Firefox 3.0.9. The vulnerability is a regression which in some cases caused frequent crashes. Users running the HTML Validator add-on were particularly affected, although other users also experienced the crashes. The problem was due to memory corruption, similar to problems identified as security vulnerabilities in the past.More details about the release can be found in the release notes. Firefox 3.0.10 is available to download, or Firefox users can use the Firefox update service by selecting Help, then Check For Updates.Source

Testing Red Alert 2 with wine

I had unsuccessful attempt to run (old) Red Alert 2 game with sound using wine 1.x.x. After ignoring to test it for a few months due to my busy work, yesterday I decided to try it again. It worked. My wine version is 1.1.17. My Red Alert 2 is Yuri's Revenge with no-cd patch. Below is how I set wine to make sound works. The graphics setting is just an additional setting to set virtual destop to make the game runs in a window (and not in full screen as default).

Audio Setting
Run winecfg to change audio setting for wine.

Click on the Audio tab. Make sure PulseAudio (recent wine support PulseAudio driver) and OSS driver checked and in DirectSound section make sure Hardware Acceleration is set to Emulation. And then click OK button to save the settings.

Graphics Settings
Click on Graphics tab and check Emulate a virtual desktop setting and set Desktop size to 800 x 600 or 1024 x 768.

Now it's ready to be run. See screenshots below.

postfix can't connect to MySQL

I got this error in syslog when postfix was trying to connect to MySQL:

Apr 13 17:34:53 webmail postfix/smtpd[6726]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Apr 13 17:34:53 webmail postfix/smtpd[6726]: NOQUEUE: reject: RCPT from[]: 451 4.3.0 : Temporary lookup failure; from= to= proto=ESMTP helo=

I got a reference to MySQL database in my which triggered the error:

local_recipient_maps = mysql:/etc/postfix/

From the error it was obvious postfix couldn't connect to MySQL. Email from outside wouldn't be received properly by dbmail. I checked MySQL service and it was running and I could log into MySQL manually. I found a solution after googling a bit. The cause was in file /etc/postfix/ I got smtp service of postfix to run chroot'ed (see y below).

#service type …

CUPS: Unable to open device and permission denied

I use CUPS for my printer system and I got this error:

toopendevice "hal:///org/freedesktop/Hal/devices/usb_device_3f0_217_00SGKGB09615_if0_printer_noserial": Permissiondenied

How to solve this problem? The settings of the printer was correct and was just a permission problem. Googling a bit, I found this site.

These steps what I did to solve it:
1. cd /usr/lib/cups/backend
2. chmod 700 hal (previously 755)
3. chmod 700 usb (previously 755)

For step 2 and 3, I found out that you have to change the mod to 700 although the file hal and usb has 'rwx' on them on the 'user' part. The culprit was the 'group' and the 'other' part of the permission. They should be chmod'ed to 0. On my system, the 'group' and 'other' part of both files was 5 (r-x) previously.

I hope this saves some people's time of head scratching.

clamav detects conficker

Taken from
Some of you may have heard of a current major outbreak of a virus known as Downadup that has been reported at and It has been estimated that move than 9 million PCs are infected across the world. ClamAV detects Downadup, also known as Conficker, as Worm.Downadup. Once on a system it downloads components that ClamAV detects as members of the Trojan.Downloader- family of signatures.The virus primarily exploits MS08-067; it can also spread through USB sticks. Since the virus is not spread by email we don’t expect to see much activity in our core user-base, which tends to use ClamAV to scan emails. We are, nevertheless, keeping an eye out for it through freshclam’s statistics gathering system – we are yet to see any obvious spike of activity from it. If we hear anything we’ll let you know.

Saving date and time to hardware clock manually

If you change date and time in console, the hardware clock may not be updated instantly. There's a script usually find in many distros that save the date and time to hardware clock before the computer off or restart. Some GUI apps changed the hardware clock if you change the software clock. If you want to change the hardware clock manually, here's the command:

hwclock --systohc

and obviously, you have to run it as root.

dbmail and database default character set

I migrated my mailserver to another server recently. I installed dbmail from scratch and restored my database into new mysql server. When I started dbmail to connect to the database server, I found out in syslog (see below) that the dbmail-imapd couldn't connect to the server because of the different character set. It's a FATAL error!. I found out that my old database used latin1 as the default character set and dbmail used utf8 as I defaulted in /etc/dbmail.conf. So I just change the default character set of my dbmail database in MySQL to utf8 (see below). This solved the problem.

In syslog before changing the character set:
Mar 14 13:01:54 dbmail-imapd[13986]: Error:[sql] dbmysql.c,db_mysql_check_collations(+138): collation mismatch, your MySQL configuration specifies a different charset than the data currently in your DBMail database.
Mar 14 13:01:54 dbmail-imapd[13986]: FATAL:[server] server.c,StartServer(+129): Unable to co…

packagekit and Mandriva Cooker

I use Mandriva Cooker. A bleeding edge distro. packagekit is the latest offering from Mandriva for package management. Coupled with KDE's kpackagekit, it integrates nicely with KDE 4. It's still not recommended for general though. The interface is confusing for first time user. Every button can be clicked while the other process running and it crashes often. Please use Mandriva Control Center for it.

Let's see some screenshots of it.

Login with admin privilege can make matters worse

Many windows users don't know that they login with administrator privileges. When viruses or worms attack, they use the user's privileges and they can make a catastrophe.

A new analysis claims that over 90% of the Windows security vulnerabilities reported last year were made worse by users logged in with administrative privileges -- an issue Microsoft has been hotly debating recently.

BeyondTrust Corp. (BTC), a software development company specializing in enterprise rights management, has indicated that the act of giving users administrative rights may leave systems more open to risk. The report issued by BTC was prepared by assessing security vulnerability bulletins released by Microsoft in 2008, and identifying specific "mitigating factors" (those that could reduce or negate the risk of an attack) within the bulletin. If Microsoft reported that having fewer security privileges would negate or eliminate risk, BTC concluded that the vulnerability was admin-privileg…

Linux 2.6.28's five best features

By Steven J. Vaughan-Nichols Created Jan 9 2009 - 3:29pm While you were likely to be opening up Christmas presents, Linus Torvalds was giving Linux users around the world a special present: the release of the next major Linux kernel: Linux 2.6.28 [1]. We had some time to tinker with this latest and greatest Linux, and it's my kind of Christmas present: solid improvements to my favorite operating system. Here are the five features that I think most of us will appreciate the most as we move into the New Year.

1) Ext4 The next step up in Linux file systems, has finally arrived. Ext4 [2] improves, well, everything about hard drive storage. It gives you larger file-system and file sizes, faster I/O, better journaling, and it can defragment your drive on the fly. In particular, its delayed allocation functionality greatly improves hard disk write performance. This won't help your PC hard drive that much, but if you're running a database server, you'll see…