iptables modules for OpenVZ kernel

This is my preferred list of modules for iptables on OpenVZ kernels (set in /etc/vz/vz.conf): ## IPv4 iptables kernel modules to be enabled in CTs by default IPTABLES=”ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp ipt_owner ipt_REDIRECT” ## IPv4 iptables kernel modules …

Unable to login to FTP on CentOS 6 VPS with Virtualmin / ProFTPD?

Does the login to your newly installed CentOS 6 VPS using Virtualmin and ProFTPD fail?

Check your /var/log/secure for errors such as this :
proftpd: PAM unable to dlopen(/lib64/security/pam_stack.so): /lib64/security/pam_stack.so: cannot open shared object file: No such file or directory
proftpd: PAM adding faulty module: /lib64/security/pam_stack.so

If you are logging the above error your /etc/pam.d/proftpd was updated (incorrectly)…

Localization-free IMDB Search Engine for Firefox

IMDB’s automatic language detection has bugged me since it was introduced (more than a year ago).

I’ve recently encountered a solution to skip the automatic language detection while browsing IMDB – by using akas.imdb.com instead of www.imdb.com, but unfortunately this does not work when using the integrated Firefox search engine (which searches automatically on the www domain).

Configure network connection via files in Linux

Setting your hostname, IP address, netmask, gateway, DNS server via files
It is sometimes helpful to know what is going on behind the scenes or if you want to modify the network configuration via changing files.
For example, assume you want to modify the network configuration by modifying files with the following…

How to Repair a Corrupt MBR and boot into Linux

There are times when you inadvertently overwrite your Master Boot Record. The end result being that you are unable to boot into Linux. This is especially true when you are dual booting between windows and Linux OSes. Once when I was working in Windows XP, I accidentally clicked the hibernate button instead of shutdown. And windows somehow overwrote my MBR which housed the GRUB boot loader. At such times, it pays to have this cool tip at hand…

Count occurences of character X in all files in current directory

If you ever need to count the occurences of a character in all (or some) files, this next series of commands would come in handy:

Replace X with the character in question. The command is all in one line. “ls” can be replaced with a more specific list (eg: …

Disable extended media information on videos and images

Windows Xp reads information from media to let you find out properties (width, height, bitrate and/or others) of avi, mpg, asf, etc. files. This “behavior” can lock your avi files from being deleted, moved or renamed, and sometimes it’s just plain annoying. To disable this action, use Regedit to delete …

How to repair Windows Management Instrumentation (WMI)

This error might occur if Windows Management Instrumentation (WMI) components are missing or not registered correctly. This error manifest itself, among others, by not displaying any more processor information in System Properties, and by returning a “Class no registered” error message after running the “systeminfo” command. Registering the WMI components …