My new gadget.

HTC Snap

Up and running in less than 5 minutes!

Together with Zarafa and Z-Push, you have a nice Blackberry alternative.

Quote of the day

cloud computing
A colleague of mine on cloud computing:

Clouds are good in one thing only……in producing rain.

ERROR 1045 (28000): Access denied for user ‘root’@'localhost’

After installing Mysql, I ran into following error:

ERROR 1045 (28000): Access denied for user ‘root’@'localhost’ (using password: YES)

This error can be bypassed by issuing following commands:

1. service mysql stop
2. mysqld_safe –skip-grant-tables &
3. log in with : mysql -u root mysql
4. In MySQL command line prompt issue the following command:
UPDATE user SET password=PASSWORD(”abcd”) WHERE user=”root”;
FLUSH PRIVILEGES;
exit
5. Restart mysql (service mysqld restart)

Nice way to tackle a biased opinion on Linux/open source

When discussing Linux or open source solutions, some people are really biased.

A nice way to tackle this is to ask this question:

How many of you use Linux? Probably some people will raise their hand.
Next ask the following question..

How many of you use Google? And ask them why? Most likely the majority of people will raise their hands stating it the best search engine.

Now explain that Google is by far the largest Linux installation in the world!!

Conclusion? Stop thinking in terms of products. Start thinking in terms of solutions.

Sendmail and hosts file.

SendMail

By default, Sendmail uses DNS to perform name resolution. However, in some circumstances, it is feasible to use the /etc/hosts file for name resolution.

To change the default behaviour, you need to use the /etc/mail/service.switch file.
For example, if you want to consult first the hosts file, followed by any DNS, you need to create the /etc/mail/service.switch file with following content:

hosts files dns
aliases files

In /etc/mail/sendmail.cf uncomment following lines:

# service switch file (name hardwired on Solaris, Ultrix, OSF/1, others)- UNCOMMENTED BY LVS
O ServiceSwitchFile=/etc/mail/service.switch

# hosts file (normally /etc/hosts) – UNCOMMENTED BY LVS
O HostsFile=/etc/hosts

Once done, rebuilt your sendmail configuration by issuing:

make -C /etc/mail

To active this change you restart your Sendmail server by issuing following command:

service sendmail restart

Changes are now active.

Migrated to Zarafa.

Zarafa
Some time ago I migrated mailservers to Zarafa, and I’m impressed on the quality of this product.

In times of economic downturn, alternatives to established solutions gain momentum.
If you need an easy to manage mail system and don’t want to invest money in Microsoft Exchange or Domino, Zarafa is a viable alternative.

With their Outlook “Look & Feel” webaccess, support for all ActiveSync compatible mobile devices and Blackberry via the Blackberry Enterprise Server, Zarafa is definitely worth considering for your corporate email.

More information on www.zarafa.com

Making Wordpress 2.8.x run faster

Wordpress

This week I performed a necessary upgrade to 2.8.X and experienced some nasty time-outs.
Loading pages was extremely slow.

Here are some tricks I used to make it a bit faster:

1. Add following lines to /etc/my.cnf:

query_cache_type = 1
query_cache_size = 26214400

2. Use WP-SUPER-CACHE Plugin

Just go to wordpress.org and check the installation instructions.

3. Add the hostname of your blog to /etc/hosts

4. Enable default wp-caching by adding following line to wp-config.php:

define(ENABLE_CACHE, true);

Now restart mysql server and the http server.
You will notice an improvement!

Domino 8.5 service not starting on Windows Server 2008

When running Domino 8.5 (64 bit) on Windows 2008 Server, it can happen that the Domino Service is not starting at all even it is well configured.
After some investigation, I resolved the issue by entering the TCPIP settings of the server in the notes.ini even I don’t have a partitioned server.

So when you Domino Service does not start on a Windows 2008 Server just add the following lines to the server’s notes.ini

TCPIP_TcpIpAddress=0,serveripaddress:1352
TCPIP_ControllerTcpIpAddress=serveripaddress:2050

Music!

For the record…this record is NOT about me. :-)

Enjoy ‘Openbare weg’ from Mira


Resize online your LVM partition

harddisk
I love making appliances. What I do is making a correct setup in VirtualBox, image it with G4L and restore/deploy it on other machines.
The drawback is that the size of my image is not always the same as the size of my new disk. The unallocated space must be made part of the partition.

Here is how I do it.

Step 1: Install the image on the new server.

Just restore image with G4L.

Step 2: Resize LVM partition

2.1 Create a new partition on the allocated space

* From command prompt -> parted
* (parted) print
This will display the partition information you need. Mind the begin/end values (IN MB)
* (parted) mkpartfs
This will create a new partition (primary/ext2). Make sure you allocate the unallocated space
* Exit parted by entering ‘quit’
* From command prompt -> fdisk
Write down the /dev/hdxx

2.2 Resize the LVM Partition

* From prompt -> vgscan
Write down the logical volume name you need to extend.
* From prompt -> pvcreate /dev/hdxx
* From prompt -> vgextend VolGroup00 /dev/hdxx
* From prompt -> lvextend -L+xxG /dev/VolGroup00/LogVol00
This will extend the volume by xx Gigabyte
* From prompt -> resize2fs /dev/VolGroup00/LogVol00
* You are all done

about my life, my work, my interests, technical stuff, ….