Archive for the 'Linux' Category

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

Monday, October 5th, 2009

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 [...]

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

Tuesday, September 15th, 2009

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 [...]

Sendmail and hosts file.

Monday, September 14th, 2009

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 [...]

Migrated to Zarafa.

Sunday, September 6th, 2009

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 [...]

Making Wordpress 2.8.x run faster

Friday, August 7th, 2009

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 [...]

Resize online your LVM partition

Wednesday, May 20th, 2009

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 [...]

Creating a simple restart monitor

Wednesday, October 1st, 2008

My internet connection at home comes down once in a while. To auto restart this service, I have created following script.
#!/bin/bash
# eciadsl-pppoeci Process Monitor
# Restart internet connection when it’s down
RESTART=”service adslconnect restart”
STOP=”killall pppd”
#path to pgrep command
PGREP=”/usr/bin/pgrep”
# eciadsl-pppoeci daemon name
eciadsl=eciadsl-pppoeci
# find eciadsl-pppoeci pid
$PGREP ${eciadsl}
if [ $? -ne 0 ] # if eciadsl-pppoeci not running
then
[...]

Exchange replacement Zarafa releases software Open Source

Sunday, September 28th, 2008

Zarafa open source offering will consist of the Zarafa server, Z-Merge (a new web services API platform for application integration), the Zarafa IMAP/POP3/iCal gateway, the Zarafa Administration Console, the Zarafa WebAccess and many other tools and services. It is the only groupware platform that includes open source ActiveSync compatibility, which enables organizations to have [...]

Iptables settings for IAX with Calliope behind firewall

Tuesday, September 16th, 2008

SIP/RTP are great protocols but when your Calliope (IP Telephony solution of SkillTeam based on Asterisk) is behind a firewall, it’s hard to connect securely.
Using IAX provides the solution. The only thing to do is to open port 4569 (for IAX2 port 5036) and forward this to your internal Calliope Server.
Here is the [...]

Journaling with Sendmail

Friday, June 13th, 2008

Journaling mail messages is a feature that’s available in almost every mail server.
However Sendmail is lacking this, often mandatory, feature.
So how do you enable journaling in combination with Sendmail?
Step 1: Create a user ‘mailjournal’
adduser mailjournal
passwd mailjournal and enter the password
Step 2: Download and install Synonym
wget http://dv8.ro/Synonym/Synonym/source/synonym-0.4-1.i386.rpm
rpm -Uvh synonym-0.4-1.i386.rpm
Step 3: download following /etc/synonym.conf
/etc/synonym.conf
Step 4: Enable [...]

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