debian 5 lenny openvz template with wrong /etc/apt/sources.list

I was getting 404 Not found errors using my new openvz with debian lenny

elephant:~# apt-get update
Hit http://ftp.debian.org lenny Release.gpg
Ign http://ftp.debian.org lenny/volatile Release.gpg
Ign http://ftp.debian.org lenny/updates Release.gpg
Hit http://ftp.debian.org lenny Release
Ign http://ftp.debian.org lenny/volatile Release
Ign http://ftp.debian.org lenny/updates Release
Ign http://ftp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.debian.org lenny/contrib Packages/DiffIndex
Ign http://ftp.debian.org lenny/non-free Packages/DiffIndex

Read more »

queues not working after reboot on trixbox 2.8.0.4

There is a bug in trixbox 2.8.0.4. After a reboot, queues won’t parse calls to agents.

The solution is quite easy. All you need to do is edit modules.conf

Read more »

howto setup lnmp on centOS

lnmp is an alternative setup to lamp. The difference between lamp & lnmp is the web server, lamp uses apache whereas lnmp uses nginx. lnmp stands for

Read more »

Network error: could not connect to server: ip:5925

I was getting the above error message whenever I was trying to get console access to my kvm vps from vnc either from the java client from solusvm or vnc client from my pc.

when you turn on or off vnc in solusvm, a notification appears saying : “you need to reboot the virtual server for the changes to take affect”.

Read more »

stress test your web server with httperf

Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance.

NOTE : for accurate results, it’s best to run httperf from a remote machine and not from the localhost

to install httperf in red-hat based distributions (additional repo are needed. For centos you’ll need rpmforge, see here for installation)

yum install httperf

in debian based

apt-get install httperf

or install from source, here is the download page

Read more »

lightword problems with ie9

just recently I discovered that my blog wasn’t displaying right in internet explorer 9. All headers were invisible. All you need to do to fix it,  is to replace your cufon script with the latest one.

 

move to the script directory and backup cufon-yui.js

cd wp-content/themes/lightword/js
mv cufon-yui.js cufon-yui.js.bak

fetch the latest version of the script and rename it

wget --no-check-certificate  https://github.com/sorccu/cufon/raw/master/js/cufon.js
mv cufon.js cufon-yui.js

seagate is acquiring samsung storage

As part of an alignment between Seagate and Samsung, Seagate will take over Samsung’s storage department. Looks like an answer to western digital acquiring hitachi storage, which took place a couple of months ago.

This means there are three companies left manufacturing mechanical hdd. These are Western Digital, Seagate and Toshiba. While Seagate and Western Digital have a large share of the market, Toshiba has small and is not considered a “threat” to both Seagate and Western Digital.

While there were many companies in the hdd industry, over the years they have either been merged or acquired by another company. Western digital owns IBM storage and Hitachi storage while Seagate has Quantum, Maxtor and Samsung storage.

Anyone seen “Demolition man” with Sylvester Stallone? Remember the part where all restaurants were taken over by pizza hut ?

CentOS 5.6

CentOS 5.6 released today. Some of it’s features :

  • ext4 is now a fully supported file system
  • Many packages updated to newer versions
  • New packages that were not present in 5.5
  • New repositories
  • php53 is available as a php replacement Read more »

firefox 4 download stats

In 2008 the mozilla foundation organized “firefox download day” to break the world record for the “largest number of software downloads in 24 hours”, for the release of firefox3.

Here is the certificate I was given for taking part of it

Read more »

installing suphp on virtualmin

One thing I don’t like about virtualmin is the absence of suphp. After a few modifications, I managed to integrade it and make it the default php handler for new virtual hosts. This howto is based on centOS 5.5 32bit and virtualmin 3.83 gpl, you may have to change some things if you’re on another linux distribution such as paths or update manager commands, but the procedure will be more or less the same. Read more »