Linux Category

Puppet labs debian GPG key import

No Comments »

I experienced problems with adding Puppet Labs apt repository to my Debian 6.0 /etc/apt/sources.list for automated Puppet installs using apt-get. The gpg was not imported and to solve the problem, I had to import Puppet Labs apt gpg key. manually:

apt-key adv –recv-key –keyserver 4BD6EC30


 … Read the rest of this entry »

curl-loader installation from source on Centos 5.6

1 Comment »

For those who are having problems installing curl-loader under Centos platforms please read this guide.

This guide applies to Centos 5.5 and 5.6 versions, 64-bit platforms.

Install the following packages:

yum install libevent libevent-devel

Download curl-loader from:

replace in Makefile

Run with root user:

make install

If you are getting the following error:

curl-loader: error while loading shared libraries: cannot open shared object file: No such file or directory

you are missing c-ares can try to install from Centos yum repository:

yum install c-ares

or download source from:

and curl-loader … Read the rest of this entry »

Problem with installing memcached – x86_64-unknown-linux not recognized

No Comments »

If you are getting the following error when you are installing memcached from the source:

checking build system type… Invalid configuration `x86_64-unknown-linux-‘: machine `x86_64-unknown-linux’ not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux- failed

the problem is that you probably do not have a C compiler available on the system. Please check the server config and make sure you install C compiler with all the required rpms.… Read the rest of this entry »

Installing LUA on Centos Linux

No Comments »

Before you try to install LUA on Centos Linux, make sure you have already installed the following development packages:


or you may experience the following errors while running “make linux

/usr/bin/ld: cannot find -lncurses

gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c
In file included from lua.h:16,
from lua.c:15:
luaconf.h:275:31: error: readline/readline.h: No such file or directory
luaconf.h:276:30: error: readline/history.h: No such file or directory
lua.c: In function ā€˜pushlineā€™:
lua.c:182: warning: implicit declaration of function ā€˜readlineā€™
lua.c:182: warning: assignment makes pointer from integer without a cast
lua.c: In function ā€˜loadlineā€™:
lua.c:210: warning: implicit declaration of function

Read the rest of this entry »

Certified Linux based servers for hosting Oracle database

No Comments »

There are only two Oracle certified operating systems that support hosting Oracle DB:

  • SLES (Novell Suse Enterprise)
  • Redhat (Enterprise Linux)

I have been using both OSes to hosting Oracle DB and so far it’s been working great. My personal choice would be Redhat, but I know you can get better pricing and features (from the licensing point of view) with Novell… if you know how to deal with these guys.… Read the rest of this entry »

Suse Linux SLES 10 SP 3 Oracle problems with missing compat libstdc++ package


If you are trying to install Oracle database product(s) on Suse Novell Linux 10 SP 3 you may experience problem with missing compat rpm package. Novell SLES actually provides all the necessary files via libstdc++33 howerver Oracle installation doesn’t really recognize it and reports missing compat libstdc++ package.

If you have installed you may remove the following packages running the following rpm command:

rpm -e libstdc++33
rpm -e libstdc++33-32bit

A good alternative is to find a compat libstdc++ package from SLES 10 SP 2 and it works perfectly. The compact-libstdc++ package you need is as follows:


Download it and … Read the rest of this entry »

Quick server security configuration

1 Comment »

By default Centos, RedHat and Fedora starts multiple daemons that are actually not needed, for example:


and I am suggesting you disable these services asap. You can turn it off via chkconfig command or even remove from the execution at init levels as well.

chkconfig –del cups

chkconfig –level 3 cups off

The above line with –del will simply remove it

the second line with –level 3 option will turn off in init #3… Read the rest of this entry »

Monitoring your Linux server load

No Comments »

You can easily monitor your Linux server load using built-in bash commands like




However, many folks prefer sysstat package (can be downloaded here, or from your Linux distribution site) package that provides even further performance monitoring utilities:





Login into your Linux server shell and execute the above commands. iostat, sar, vmstat can be run like

vmstat 1 10

where 1 is the time between monitoring load, 10 is the count  how many times the data need to be read.… Read the rest of this entry »

Settings for tcp_fin_timeout tcp_keepalive_time


We got an email last night from a fellow reader asking what tcp_fin_timeout and tcp_keepalive_time we are usually using from small to medium blogs.

At this time, we keep the following settings:

net.ipv4.tcp_fin_timeout = 60
net.ipv4.tcp_keepalive_time = 60

Read the rest of this entry »

Nic card bug e1000_acquire_swflag_ich8lan

No Comments »

Getting the following bug…. bad luck :(
Running Centos, 32 bit

BUG: warning at drivers/net/e1000e/ich8lan.c:361/e1000_acquire_swflag_ich8lan() (Not tainted)
[] e1000_acquire_swflag_ich8lan+0x6e/0x86 [e1000e]
[] e1000e_read_kmrn_reg+0x10/0x4e [e1000e]
[] e1000e_gig_downshift_workaround_ich8lan+0x23/0x66 [e1000e]
[] e1000_intr_msi+0x46/0xd4 [e1000e]
[] handle_IRQ_event+0x23/0x49
[] __do_IRQ+0x84/0xd6
[] do_IRQ+0x93/0xae
[] common_interrupt+0x1a/0x20
[] e1000e_mc_addr_list_update_generic+0x95/0x148 [e1000e]
[] e1000_mc_addr_list_update+0xe/0x12 [e1000e]
[] e1000_set_multi+0xcd/0xd5 [e1000e]
[] __dev_mc_upload+0x1d/0x1e
[] dev_mc_upload+0x28/0x3b
[] dev_open+0x44/0x62
[] dev_change_flags+0x47/0xe4
[] devinet_ioctl+0x24e/0x542
[] sock_ioctl+0x191/0x1b3
[] sock_ioctl+0x0/0x1b3
[] do_ioctl+0x1c/0x5d
[] vfs_ioctl+0x24a/0x25c
[] sys_ioctl+0x48/0x5f
[] syscall_call+0x7/0xb
pci0000:00: eth0: Link is Up 100 Mbps Full Duplex, Flow Control: RX
pci0000:00: eth0: 10/100 speed: disabling TSO… Read the rest of this entry »