how to – enable spell check in firefox on fedora 12

Quick fix:

$sudo yum install hunspell-en

Further reading:

Firefox does not spell check at Redhat’s Bugzilla

Be the first one to comment »

Aurora (webdev server) gets a breath of new life

Another day, another server that needs special attention. I keep moving operating systems from old hardware to new, from bare metal to virtual and vice-versa every now and then, but today was different.

What makes Aurora so special is – its the first server I setup at my current workplace while I was four months into the job, hired as a Web Programmer. Running on a Intel Celeron, 20GB hdd and 256MB RAM it served us very well until a few months ago, when it started to randomly freeze and could not handle the load the dev guys threw at it. Complaints followed. In the past two day it had to be restarted twice! Unscheduled restarts are irritating because it only means one thing – bad reliability.

Aurora was long over due for a hardware upgrade so I took this as an opportunity to process it. At around five in the evening when it hung, instead of going to restart it, I went over to the admins who were kind enough to give me a commodity DELL desktop( yes we run most of our in-house servers on commodity DELL boxes, some have their CPU’s upgraded to support hardware virtualization ). This was supposed to a quick cp -parv old_hdd new_hdd and grub-install but turned out to be a seven hours exercise. The damn thing took five and a half hours to copy 15GB from the old IDE drive to the new SATA. On booting it on the new hardware, the kernel kept restarting while at boot. Turns out I had to pass “ro” as a parameter so that the root file system could be checked before being used as root file system. Quite straight forward but the kernel rebooting without telling me this did not help. “noreboot and pause” as parameters to the kernel did not help either. “maxcpus=1″ got it to boot successfully and do a disk check without going into a reboot cycle. I don’t know how and why, but it did. I used it because I had a feeling that the kernel could not support the new Core2 Duo’s dual cores. That was not the end of the evening, the new hardware’s network chipset needed the e1000e driver which was not included in the kernel. Went over to the stores and got a old network card, which worked out of the box. Migration complete!

Aurora was perhaps when I went from being a “Web Programmer” to a “Web Administrator”. I would like to thank my ex-managers Seshadri and Krishnan for recognising my potential and nurturing it. Cheers you guys !

~Francis

1 loenly comment »

Where have all the Virar trains gone ?

Where have all the Virar trains gone ?

2 comments »

/lib/ld-linux.so.2: bad ELF interpreter

Running apps/binaries compiled for 32bit enviornments seems to throw up “/lib/ld-linux.so.2: bad ELF interpreter” on a 64bit platform.

Quick note  – glibc provides the libraries required to run 32bit apps on 64bit platform, so the next time you come across this on a distro that uses the rpm package manager simply:

$sudo yum install glibc.i686

1 loenly comment »

How-to: Flash Player 10 for 64-bit Linux ( in 4 easy steps )

Adobe’s newly released 64bit flash plugin for Firefox running on GNU+Linux makes installation on 64-bit operating systems a walk in the park ( like I said – 4 easy steps )

  1. Download the plugin from http://labs.adobe.com/downloads/flashplayer10_64bit.html . Direct download link
  2. Extract libflashplayer.so from the downloaded file
  3. copy libflashplayer.so to /home/<username>/.mozilla/plugins/
  4. restart Firefox !
BlackBerry website running in Flash mode on 64 bit Firefox on Linux

BlackBerry website running in Flash mode on 64 bit Firefox on Linux

1 loenly comment »

dhclient triggers / hooks with dhclient-script

dhclient overwrites custom network configuration (read routes) with the defaults provided from the dhcp server. dhclient-script can be used to set custom rules for dhclient. It provides a way to hook into dhclient before and after updating network configuration.

Application specific DHCP options can be handled by creating a script with two functions and placing it in /etc/dhcp/dhclient.d

The script must follow a specific form:

  1. The script must be named NAME.sh. NAME can be anything, but it makes sense to name it for the service it handles. e.g., network_routes.sh
  2. The script must provide a NAME_config() function to read the options and do whatever it takes to put those options in place
  3. The script must provide a NAME_restore() function to restore original configuration state when dhclient stops
  4. The script must be ‘chmod +x’ or dhclient-script will ignore it

The scripts execute in the same environment as dhclient-script. That means all of the functions and variables available to it are available to your NAME.sh script.

Things of note:

  1. ${SAVEDIR} is where original configuration files are saved. Save your  original configuration files here before you take the DHCP provided values and generate new files
  2. Variables set in /etc/sysconfig/network, /etc/sysconfig/networking/network, and /etc/sysconfig/network-scripts/ifcfg-$interface are available to you

Took me a while to find this documentation. No more surprises from now on when dhclient updates the lease

Be the first one to comment »

phplist 2.10.10 : fixing FCK editor’s image upload problem

I spent the last hour fixing this trivial bug. Posting it so that it helps save someone’s time

Open file :

PHPListRoot/admin/FCKeditor/editor/filemanager/connectors/phplist/config.php 

on line number 28 change:

} elseif (is_file('../../../../../../../../config/config.php')) {  

to:

} elseif (is_file('../../../../../../config/config.php')) { 

and on line number 29, change:

  include "../../../../../../../../config/config.php"; 

to

  include "../../../../../../config/config.php"; 

Thats it! Save the file and you should be able to instantly upload images using the FCK editor

6 comments »