Archive for guides

What a nice day to begin with, reading these lines

// January 27th, 2010 // No Comments » // guides, life

Got it from forwarded email. It made me feel good at where I am now. Anything better, it’s a privilege. Anything less, I don’t feel like I’ll lose anything. I already have what I want.

Siapakah orang yang sibuk? Orang yang sibuk adalah orang yang tidak mengambil berat akan waktu solatnya seolah-olah ia mempunyai kerajaan seperti kerajaan Nabi Sulaiman a.s

Siapakah orang yang manis senyumanya? Orang yang mempunyai senyuman yang manis adalah orang yang ditimpa musibah lalu dia kata “Inna lillahi wainna illaihi rajiuun.” Lalu sambil berkata,”Ya Rabbi Aku redha dengan ketentuanMu ini”, sambil mengukir senyuman.

Siapakah orang yang kaya? Orang yang kaya adalah orang yang bersyukur dengan apa yang ada dan tidak lupa akan kenikmatan dunia yang sementara ini.

Siapakah orang yang miskin? Orang yang miskin adalah orang tidak puas dengan nikmat yang ada sentiasa menumpuk-numpukkan harta.

Siapakah orang yang rugi? Orang yang rugi adalah orang yang sudah sampai usia pertengahan namun masih berat untuk melakukan ibadat dan amal-amal kebaikan…

Siapakah orang yang paling cantik? Orang yang paling cantik adalah orang yang mempunyai akhlak yang baik.

Siapakah orang yang mempunyai rumah yang paling luas? Orang yang mempunyai rumah yang paling luas adalah orang yang mati membawa amal-amal kebaikan di mana kuburnya akan di perluaskan saujana mata memandang.

Siapakah orang yang mempunyai rumah yang sempit lagi dihimpit? Orang yang mempunyai rumah yang sempit adalah orang yang mati tidak membawa amal-amal kebaikkan lalu kuburnya menghimpitnya…

Siapakah orang yang mempunyai akal? Orang yang mempunyai akal adalah orang-orang yang menghuni syurga kelak kerana telah mengunakan akal sewaktu di dunia untuk menghindari siksa neraka..

Siapakah org yg KEDEKUT ? Orang yg kedekut ialah org yg membiar atau membuang email ini begitu sahaja, malah dia tidak menyampaikan pula pada org lain.

Vista in Ubuntu

// January 14th, 2010 // 1 Comment » // guides, tech

I had Windows Vista Home Premium installed last night on my Ubuntu machine. I have 2GB RAM and 250GB of hardisk. Initially I wanted to install XP but turned out the only original DVD we have is Vista Home Premium, so be it! I’ve been wanting to try virtual machine for a long time already but then yesterday that very geek kernel hacker, Nur Hussein, triggered the apt-get move in me with a line “VirtualBox is so cool!”.

What’s VirtualBox? In layman terms, you can have multiple OS running at the same time on your pc without rebooting. Those of you who only know Windows all their life, yes there are alot of other alternative OS you can try, like Ubuntu. Hey install Ubuntu on your Windows using VirtualBox, that’s possible too.

Installing another OS (guest OS) on your existing OS (host OS) will take space and consume memory. In my case, I have allocated 1GB of RAM and 40GB of space for Vista according to its recommended system requirement. So that’s 40GB off of my 250GB and if I switch on Vista I have only 1GB left for Ubuntu, which is ok for me (it only takes 384MB of RAM for Ubuntu). So you have to plan your memory allocation carefully as you must allocate as much as you can to let the guest OS run properly but do not do it until your host OS is left with not enough for it to run either.

What do you need for virtual machine?
1. PC that can meet the minimum requirement
2. VirtualBox
3. Guest OS installation CD/DVD

Install VirtualBox
Add deb http://download.virtualbox.org/virtualbox/debian karmic non-free in /etc/apt/sources.list then sudo apt-get update.

$ sudo apt-get install dkms
$ wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
$ sudo apt-get install virtualbox-3.1

Install Vista on Ubuntu Karmic
1. Insert installation CD/DVD.
2. Follow instructions here. It’s well documented!

And then finally.

Windows Vista Home Premium on Ubuntu Karmic

Windows Vista Home Premium on Ubuntu Karmic

I think 40GB of hardisk is abit overkill for me. And 2GB of RAM is kinda limiting for virtual machines. Well, despite all that, I’m going to have fun first and then think. That’s the way to go in this crazy days. You’ll never know when you’re going to be hit with molokov cocktails….

SVN upgrade to 1.6.6

// December 17th, 2009 // No Comments » // guides, work

After being pointed out by ejat about the OSCC SVN server was being slow (or something, along the line of should upgrade to 1.5 for faster process) so I went out and check out SVN was indeed of version 1.4.2, the latest is 1.6.6.

On CentOS machine:

Stop any service that’s running httpd, svnserve, etc.

Add RPMForge repository as that’s where the latest SVN is

# i386
$ wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
$ rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

This will create /etc/yum.repo.d/rpmforge.repo file. Edit this file, change enable=0 as RPMForge contains bleeding edge, often unstable packages. You don’t want to do $ yum update accidentally and put your entire system at risk if you don’t know what you’re doing.

You may not need this but just in case, backup your SVN repo.

$ svnadmin dump /path/to/repository > dumpfile.txt

If anything goes wrong, even if you install a new copy of SVN, you can recover you data with this:

$ svnadmin create /path/to/newrepository
$ svnadmin load /path/to/newrepository < dumpfile.txt

Now check for SVN update

$ yum --enablerepo=rpmforge check-update subversion

It should display the latest version like this

subversion.x86_64    1.6.6-0.1.el5.rf  rpmforge

Then upgrade

$ yum --enablerepo=rpmforge update subversion

This will update SVN from the RPMForge.

Restart the service httpd, svnserve, etc.

DNS resolving to 1.0.0.0

// November 27th, 2009 // 3 Comments » // guides, tech

I’ve had the most peculiar thing happened today at home. I think it’s Karmic issue since I never had this problem before.

Well what happened was, I was unable to browse the internet (Firefox and Chrome both had problems but Opera worked fine). Pinging worked. Other Windows machines didn’t have problems at all. Sudo apt-get update didn’t worked because it was looking up 1.0.0.0 for every mirrors I tried. I tried this with Firefox at first:

In address bar, type in about:config, filter for ipv6. There should be only 1 listed – network.dns.disableIPv6. Double click to change the value to true. Problems solved for Firefox.

I continued googling around and did this:

#in /etc/resolv.conf, changed nameserver to those of streamyx
#previously it was 192.168.1.1 which points to my router
#Generated by NetworkManager
nameserver 202.188.0.133

And now everything works again. Only that if I reboot it will change back to 192.168.1.1

Html Validator on FF3.5 on Karmic

// November 2nd, 2009 // 2 Comments » // guides

Note to self:

[1] Add PPA https://launchpad.net/~bdrung/+archive/ppa
[2] sudo apt-get update
[3] sudo apt-get source htmlvalidator
[4] change 3.1.* to 3.5.* (in xpi/install.rdf.in, change maxVersion 3.1.* to 3.5.*)
[5] Install some build dependencies – libxul-dev
[6] in htmlvalidator directory, ./configure and make
[7] open up just created .xpi in FF, install

http://users.skynet.be/mgueury/mozilla/index.html (more…)