You are here: Home >Archive for the ‘Linux’ Category

Rebuild a corrupted RPM database

Strange things sometimes happen,one of them is a rpm database got corrupted . This means that the computer tells you something is installed and it really is not. i personally encountered this few times before and usually this happens when the ssh session/connection to the server cut off(i used to ssh to the server , [...]

Tags: , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Send email notification on successful ssh login using ssmtp

Sometime i wants to know who is login and when user login to my server  but i don’t want to setup and run my own mail server, this can be done easily by using tcpwrapper and ssmtp , first make sure ssmtp is installed # dpkg -l|grep ssmtp iF  ssmtp                                  2.64-4fakesync1                                 extremely simple MTA to [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

ip_conntrack: table full, dropping packet

Today i found this message in one of my server, although the server’s load is quite low. using dmesg , i kept getting this, and it kept coming ip_conntrack: table full, dropping packet I’d seen this message before, but I headed over to Red Hat’s site for more details. Generally, the ip_conntrack_max is set to [...]

Tags: , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Resizing LVM Logical Volume

——————- Reducing(Offline):: ——————- Scenario: -There is existing LVM partition 50GB in total and has been used up 5GB -We will reduce the LVM partition from 50GB to 10GB -We need to unmount the FS before we can proceed -Please do proper backup before proceed as there might be chances that you would lose your data [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Log all DNS queries to my DNS server

We can log all the  DNS queries , type this single command (as root) on your DNS server (Bind) ————- rndc querylog ————- once this done, all DNS queries will be logged in /var/log/messages, the results will be similar to Oct 24 03:01:43 ns1 named[30660]: client 200.23.242.196#35545: query: parentsascoaches.net IN MX Oct 24 03:01:43 ns1 [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

How to change mysql parameter without restart mysql?

Try these single and simple command from your mysql cli, to change mysql global parameter on the fly (it’s means no need to restart the service) mysql> set global max_connections=400; you can check the results using this command mysql> show global variables; always be reminded that parameter has been setup using above command will be [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

compex wlu54G [finally] on centos 5.2

i got that usb wifi adapter from my sis few months back, thanks sis , but i was figured it out how to make it works on my machine running centos 5.2, it’s working fine with windows based os Hmmmmm…from lsusb i got , it’s a ————————————————– Bus 001 Device 002: ID 148f:2570 Ralink Technology, [...]

Tags: ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Reboot your Linux Machine automatically after a kernel panic

Someday and somehow your Linux machine stuck and when you consoling that machine, there is kernel panic message appears on the screen, here’s little tips , by default the kernel will not reboot after a panic , but this option will cause a kernel reboot after ‘N’ seconds Tools required: -)Linux OS running on your [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Kernel panic an Virtuozzo4

On 10 Oct 2009, early morning , one of our server was not accessible while our monitoring system keeps altering us, looks like there was something gone wrong happening, yup i was right, called up DC guy and asked them to console in that server, they saw Kernel panic messages on console, yuck…., this server [...]

Tags: , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS