System administration

Securing Drupal admin pages with http authentication

You can add of layer of security to your Drupal installation by requiring http authentication to access Drupal's admin pages. This authentication would happen outside of drupal and as such, may be less susceptible to certain types of attacks. Certainly, if there is a security hole in Drupal that can be exploited without any interaction with the admin interface, this technique won't help at all. But it may act as a deterrent in some cases.

Tuning Apache's MaxClients setting

In apache 2, the MaxClients directive in your apache configuration will determine the maximum number of server processes allowed to start. As you probably guessed, it's a very important directive. If you reach the limit, you'll get a very friendly message in your apache error log saying:

[Thu Oct 18 06:22:19 2007] [error] server reached MaxClients setting, consider raising the MaxClients setting

Script to change the file extension on multiple files

Sometimes it becomes necessary to change the file extension on multiple files. For example, you may be migrating a website and want to change all the extensions from .htm to .html. Or perhaps you have installed a php application like phpBB and want to use a different file extension from the default (.html instead of .php). This script can accomplish this for you in one quick step.

You can grab the script here:

http://www.nixer.org/eb/chg_ext.sh

Anti-aliasing of MS TrueType fonts in Linux

If you use Microsoft TrueType fonts in Linux, you've probably noticed that X Windows anti-aliases them by default. Generally speaking, this is not a problem. However, if you spend a lot of time in front of the computer (like me), you want to make sure that the fonts you use look as good as possible. That said, you may find that Microsoft fonts look better when they are not anti-aliased at small sizes.

Consider the following examples. The first image shows what Gnome and Firefox (Iceweasel) menus look like using an anti-aliased MS font:

Installing Amarok on Centos 5

Although Centos is often considered a server OS (it is indeed a very good server OS), it can be used quite successfully as a desktop. In fact, I use it as one of my primary desktop OS's (the other being Debian Lenny). As of this writing, Centos 5.2 is the latest version of Centos. Because Centos is supposed to be 100% binary compatible with Red Hat Enterprise Linux, this article applies to RHEL 5 as well.

Encoding problem in ID3 tags of international MP3 files

For those of you who do not listen to music from other countries, this article may not have much meaning or relevance. But for those of you who do listen to international MP3 files from countries with character sets outside of standard ASCII like Japan, Korea and China, you have probably dealt with ID3 tags that display mojibake in your music player or operating system. Basically, instead of seeing the song name and artist in the appropriate language (even with the correct fonts installed), you see gibberish.



Syndicate content