jump to navigation

Apache Redirection – http to https 24 March 2008

Posted by Maulvi Bakar in : Linux, Work , add a comment

Many times have you encountered situation where you want to automatically redirect a page from one site to another. Simple problem of having a http://example.com/Some/Url/resource and http://www.example.com/Some/Url/resource to a https://www.example.com/Some/Url/resource

Actually, it is as simple as a single line in the http.conf file like thus -

Redirect permanent / https://www.example.com/

Therefore, anything that you put there will be redirected to the other site preserving the same resource url locations. It was so simple that I got disgusted! Darn!

Inhouse Celebrity 16 March 2008

Posted by Maulvi Bakar in : Home , 2 comments

Well, today I’ve been blessed with a daughter. My first-born child – Farah Farzana.

From Farah Farzana

Happy New Year – 2008 1 January 2008

Posted by Maulvi Bakar in : Home, Society , add a comment

Hmm..

The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

George Bernard Shaw, Man and Superman (1903) “Maxims for Revolutionists”
Irish dramatist & socialist (1856 – 1950)

Let’s greet the new year with hope of progress for a better future..

Enjoy!

New HDD, enlarging Red Hat/Centos ext3/lvm partition 16 December 2007

Posted by Maulvi Bakar in : Home, Linux, System , 2 comments

Hmmm,

Suddenly, I’ve run out of space on one of my servers at home. Solution, add a new harddisk, extend existing partition onto the new harddisk.. Simple right? Right…

Firstly, fix the new harddisk onto the machine. Fdisk it like thus -

# fdisk /dev/sdb

Create a new ’sdb1′ partition using type 8, which is Linux LVM.

Next, we need to create a Physical Volume within the newly created sdb1 partition.

# pvcreate /dev/sdb1

After that we will extend the existing volume ‘VolGroup00′ onto the newly created physical volume.

# vgextend VolGroup00 /dev/sdb1

Once done, the next step is to extend the Logical Volume within the volume group to use the free space newly made available when you extend the volume group previously.

# lvextend -L 40G /dev/VolGroup00/LogVol00

And finally, we’ll enlarge the ext3 partition to make use of the newly available free space in the logical volume.

# resize2fs /dev/VolGroup00/LogVol00

Enjoy!

Gnome-RDP, Terminal Server Client, vncviewer – Fullscreen woes! 12 December 2007

Posted by Maulvi Bakar in : Linux, System , 2 comments

Well, I am using Ubuntu 7.10 Gutsy Gibbon.  Feeling gutsy right?  ;-)

Anyway, it seems that whenever I connect to a remote machine via VNC protocol, doesn’t matter what my client of choice, if I am using ‘Fullscreen’, I’ll be ‘Full Screaming’.  Seems that the CTRL-ALT-ENTER does not work for me to switch windows.  I’ll be stuck to the remote machine screen.

Fortunately, there’s hope yet.  Press ‘F8′ button and voila! There’s a host of options in the menu revealed.

Enjoy!

unknown nfs status return value: -1 11 December 2007

Posted by Maulvi Bakar in : Linux, System, Unix, Work , 1 comment so far

I’m trying to mount an NFS export from an AIX machine to a Linux client.

Had encountered the above problem.  Apparently the NFS exports on AIX requires the client’s hostname and IP address within the /etc/hosts file.

Enjoy!

MITI MATRIIX II – Project Team Dinner 10 August 2007

Posted by Maulvi Bakar in : Work , add a comment


Some of the SE Team with our EVP


Well, I had a grand night.. Firstly, I got my first real digital camera. A Fujifilm Finepix 3800. Bought it off Amazon refurbished. Reason I got it is because I wanna try some amateur photographing. ;-)

Anyway, at my workplace, with project dateline fast approaching, our CEO organized a pep-talk session and dinner for the whole project team! This is sort of an exhortation gesture for everyone to pull their socks and really “up and at ‘em” attitude. Oh yeah, XYBASE, Do it!

All I can say is, “What a grand dinner it was!”. I really stuffed myself until I couldn’t gorge a bit more.. ;-)

Anyway, the whole photoshoot can be viewed here – XYBASE Matriix II Dinner (Flickr)

Lastly, I would like to thank Mr Islah, Trade Commissioner for Matrade Miami Office for the camera.

PHP with Informix IDS support via IFX Module – Centos5 / RHEL5 12 June 2007

Posted by Maulvi Bakar in : Linux, Work , 1 comment so far

Hello everyone, sorry for the long silence..

These are drafts mainly, careful with the syntax until I fix the coding code of my wordpress.. :-P
Firstly, install the Informix Client SDK for Linux..
Get the Client SDK from here – http://www-306.ibm.com/software/data/informix/linux/csdk.html

Download, untar it to a folder, then follow the instructions below -

# useradd informix
# passwd informix

./installclientsdk

install to /opt/IBM/informix

ensure “/etc/hosts” have these entry -

x.x.x.x informix_server_hostname

ensure that “/opt/IBM/informix/etc/sqlhost” have these entry -

database_instance_name onsoctcp informix_server_hostname 9088

add these at line number 38 in file “/etc/init.d/httpd”, which should be before the “# check for 1.3 configuration” line -

export INFORMIXDIR=/opt/IBM/informix
export INFORMIXSERVER=mtx2informix_prod
export ONCONFIG=onconfig
export PATH=$PATH:$INFORMIXDIR/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql

Download this -

http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/php-5.1.6-5.el5.src.rpm

and install it

rpm -ivh php-5.1.6-5.el5.src.rpm

go to /usr/src/redhat/SPECS/

edit the php.spec file at line 428 (approximately after the xml, before $*, add this line -

–with-informix=/opt/IBM/informix \

Then, run this command -

rpmbuild -ba php.spec

and also, prior to rebuilding the RPM, may need to export the environments -

export INFORMIXDIR=/opt/IBM/informix
export INFORMIXSERVER=mtx2informix_prod
export ONCONFIG=onconfig
export PATH=$PATH:$INFORMIXDIR/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql

Run this command to identify whatever php packages that you’ve installed -

rpm -qa | grep php

uninstall them using this command

rpm -e package_name1 package_name2

and re-install them using newly recompiled RPMs from this location -

“/usr/src/redhat/RPMS/i386/”

May need to use “–nodeps” option – the .so files required are actually Informix libraries already found within the ld_library_lib path

Hope it is useful to someone else someday ;-)

New Year Resolutions.. 14 January 2007

Posted by Maulvi Bakar in : Home, Linux, Society, Work , 2 comments

A week or so ago, I was asked by a journalist-friend to comment on my technological resolutions from last year and this year.  Particularly those made, kept and broken.  ;-)

Well, I did some and eventually, it appears in the local daily’s tech section!  8-O

I am nowhere really an expert, but that was something that I really strive for, with the grace of god, and assistance from friends and colleagues alike – god-willing..

Below are part of the article which appears in full here -

Resolutions made, kept, and broken

A system engineer with XyBase Sdn Bhd, Maulviridha Abu Bakar, is the resident Linux expert at work. Maulviridha is also into self-initiated awareness programs on Linux.
Last year, his resolution was to enhance his personal knowledge of Linux and Free and Open Source software. He had also intended to migrate all internal servers at work to Linux and Free and Open Source Software.
He had initiated the process last year at work and had been successful with some recognition from his employers.
They even let him conduct training internally and for customers, and Maulviridha intends to accomplish more this year.
He had also wanted to make Linux as the main operating system on his desktop for everyday use but to this day, he has only Linux installed on his desktop on a dual-boot configuration with Windows.
There appears to be a snag in the plan to go totally Linux both at work and home, says Maulviridha. “I seem to go back to Windows for some crucial usage and applications. For example, in the case of Microsoft Visio, there seems to be no quality alternative.”

Nonetheless, there’s much for me still to learn..  “Life is a lifelong learning experience”

Enjoy!

Enabling JAVA plugin after installing JPackage JDKs 27 November 2006

Posted by Maulvi Bakar in : Linux, Work , add a comment

If you’ve installed java-1.5.0-sun-plugin and you want to use it with Firefox or any other mozilla-based browser, you’ll need to set up the link manually as there is a small bug in the java-1.5.0-sun-plugin package that causes it not to set up the link properly.

Please take note of the period (“.”) on the last line!

# cd /usr/lib/mozilla/plugins
# rm -f libjavaplugin_oji.so
# ln -s  ../../../lib/jvm/java/jre/plugin/i386/ns7/libjavaplugin_oji.so .