/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
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 )
- Download the plugin from http://labs.adobe.com/downloads/flashplayer10_64bit.html . Direct download link
- Extract libflashplayer.so from the downloaded file
- copy libflashplayer.so to /home/<username>/.mozilla/plugins/
- restart Firefox !
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:
- 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
- The script must provide a NAME_config() function to read the options and do whatever it takes to put those options in place
- The script must provide a NAME_restore() function to restore original configuration state when dhclient stops
- 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:
- ${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
- 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
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
vsftpd : Allowing access to folders outside home when “chroot_local_user=YES”
With ‘chroot_local_users=YES’ vsftpd locks a user to his/her home directory, but every now and then you have a few users who need access to more that one user’s home for some reason or other
Getting around chroot
For the record “ls -s /home/user1 /home/user2″ does not work. chroot will not allow you to get out
Starting for kernel 2.4.Something a filesystem could be mounted on multiple mount points using the –bind option. hence:
$sudo mount --bind /home/user1/ /home/user2/user1
That’s it, log in as user2 and you should be able to see user1’s home. Add it to rc.local so that its mounted on reboot
Set display name of outgoing Emails send by phpBB311
phpBB3 [version 3.0.3] by default cannot set the display name in the headers of outgoing emails. You could try all you want from the administration control panel but a look under the hood in the source code will tell you its almost impossible.
Fixing it is pretty easy.
open file phpBB3_root_path/includes/functions_messenger.php find: $headers[] = 'From: ' . $this->;from; replace with: $headers[] = 'From: Display Name ' . $this->;from; find: $headers[] = 'Reply-To: ' . $this->;replyto; replace with: headers[] = 'Reply-To: Display Name ' . $this->;replyto; find: $headers[] = 'Return-Path: <' . $config['board_email'] . '>;'; replace with: $headers[] = 'Return-Path: Display Name <' . $config['board_email'] . '>;'; find: $headers[] = 'Sender: <' . $config['board_email'] . '>;'; replace with: $headers[] = 'Sender: Display Name <' . $config['board_email'] . '>;';
That should do the trick. Did it work for you ?
CHIP.in gets a forum update
The week that went by saw a lot of activity on the CHIP forum. It was high time we updated forum. After a talk over “chai” with the new one point of contact for web development I got to work. Migration of the database was the concern. Fortunately there is a tried and tested way that comes bundled along with the new installation of pphBB3 that converts the underlining database schema. Coming to think of it, an installation of phpBB3 would be incomplete without the database conversation scripts
Migration hung midway complaining “duplicate usernames in the user table”. A quick, crude, home brewed php script looked up the user table for duplicate username entries and deleted them. Migration was in business again trashing the database with insert queries. At the end of day one [monday] we had a vanilla installation of phpBB3 serving migrated data. Released it to the mods/admins for alpha testing
Over the next two days it was time to play with CSS to make it look and feel like CHIP.
Thursday dawned and it was time to go live. The forum went offline at 10am. Work work work, some serious typing on the keyboard and nine hours later, as scheduled we were online at 7pm. By the time I wrapped up for the day it was 12:45am Friday. With Electron Blue blaring loud I walked out of the office. It felt like I was on cloud #9. Its getting obvious that this is what I live for
Been fixing minor bugs over the weekend
Search engine optimization and mods are on the table this week. Coupled with server administration, this is going to be another long fun week
printf(“Hello Monday”);
UPDATE: 5th December
Awwwww, that is so sweet Brian and thank you for the first run copy


